MCPcopy
hub / github.com/pingcap/tidb / SetSQLMode

Method SetSQLMode

pkg/parser/lexer.go:343–345  ·  view source on GitHub ↗

SetSQLMode sets the SQL mode for scanner.

(mode mysql.SQLMode)

Source from the content-addressed store, hash-verified

341
342// SetSQLMode sets the SQL mode for scanner.
343func (s *Scanner) SetSQLMode(mode mysql.SQLMode) {
344 s.sqlMode = mode
345}
346
347// GetSQLMode return the SQL mode of scanner.
348func (s *Scanner) GetSQLMode() mysql.SQLMode {

Callers 15

TestSQLModeANSIQuotesFunction · 0.95
ParseParameterizedSQLFunction · 0.45
sysvar.goFile · 0.45
parseMethod · 0.45
TestSimpleFunction · 0.45
TestSpecialCommentsFunction · 0.45
RunTestInRealAsFloatModeFunction · 0.45
TestSQLModeANSIQuotesFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestSQLModeANSIQuotesFunction · 0.76
TestSimpleFunction · 0.36
TestSpecialCommentsFunction · 0.36
RunTestInRealAsFloatModeFunction · 0.36
TestSQLModeANSIQuotesFunction · 0.36
TestTableStructEqualFunction · 0.36
TestCompressChunkRestoreFunction · 0.36
TestGetColumnsNamesFunction · 0.36