MCPcopy Index your code
hub / github.com/pingcap/tidb / SetParserConfig

Method SetParserConfig

pkg/parser/yy_parser.go:142–146  ·  view source on GitHub ↗

SetParserConfig sets the parser config.

(config ParserConfig)

Source from the content-addressed store, hash-verified

140
141// SetParserConfig sets the parser config.
142func (parser *Parser) SetParserConfig(config ParserConfig) {
143 parser.EnableWindowFunc(config.EnableWindowFunction)
144 parser.SetStrictDoubleTypeCheck(config.EnableStrictDoubleTypeCheck)
145 parser.lexer.skipPositionRecording = config.SkipPositionRecording
146}
147
148// ParseSQL parses a query string to raw ast.StmtNode.
149func (parser *Parser) ParseSQL(sql string, params ...ParseParam) (stmt []ast.StmtNode, warns []error, err error) {

Callers 15

ParseParameterizedSQLFunction · 0.80
createPlannerSuiteFunction · 0.80
TestFDSet_ExtractFDFunction · 0.80
TestFDSet_MakeOuterJoinFunction · 0.80
sysvar.goFile · 0.80
ParseSQLMethod · 0.80
ParseFunction · 0.80
TestFetchShowBRIEFunction · 0.80

Calls 2

EnableWindowFuncMethod · 0.95

Tested by 8

createPlannerSuiteFunction · 0.64
TestFDSet_ExtractFDFunction · 0.64
TestFDSet_MakeOuterJoinFunction · 0.64
TestFetchShowBRIEFunction · 0.64
TestBRIEBuilderOptionsFunction · 0.64