Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FlagIgnoreTruncate indicates if truncate error should be ignored. // Read-only statements should ignore truncate error, write statements should not ignore truncate error. FlagIgnoreTruncate uint64 = 1 // FlagTruncateAsWarning indicates if truncate error should be returned as warning. // This flag only matters if FlagIgnoreTruncate is not set, in strict sql mode, truncate error should // be returned as error, in non-strict sql mode, truncate error should be saved as warning. FlagTruncateAsWarning uint64 = 1 << 1 // FlagPadCharToFullLength indicates if sql_mode 'PAD_CHAR_TO_FULL_LENGTH' is set. FlagPadCharToFullLength uint64 = 1 << 2 )
Flags are used by tipb.SelectRequest.Flags to handle execution mode, like how to handle truncate error.
Variables ¶
View Source
var ScanBreak = errors.New("scan break")
ScanBreak is returnd by ScanFunc to break the scan loop.
Functions ¶
This section is empty.
Types ¶
type CopHandler ¶
type CopHandler struct{}
func (*CopHandler) HandleCopAnalyzeRequest ¶
func (svr *CopHandler) HandleCopAnalyzeRequest(reader storage.StorageReader, req *coprocessor.Request) *coprocessor.Response
func (*CopHandler) HandleCopDAGRequest ¶
func (svr *CopHandler) HandleCopDAGRequest(reader storage.StorageReader, req *coprocessor.Request) *coprocessor.Response
Click to show internal directories.
Click to hide internal directories.