MCPcopy Index your code
hub / github.com/XiaoMi/Gaea / ParseSQL

Function ParseSQL

parser/yy_parser.go:272–275  ·  view source on GitHub ↗

ParseSQL only for test, use ClientConn.parser for handling request

(sql string)

Source from the content-addressed store, hash-verified

270
271// ParseSQL only for test, use ClientConn.parser for handling request
272func ParseSQL(sql string) (ast.StmtNode, error) {
273 ps := New()
274 return ps.ParseOneStmt(sql, "", "")
275}
276
277const resultTableNameFlag pformat.RestoreFlags = 0
278

Callers 8

getTestFuncFunction · 0.92
TestBuildPlanFunction · 0.92
TestExecuteInFunction · 0.92
TestSelectStmtCheckShardFunction · 0.92
_TestGroupByRewritingFunction · 0.92
TestASTNodeFunction · 0.85

Calls 2

ParseOneStmtMethod · 0.80
NewFunction · 0.70

Tested by 8

getTestFuncFunction · 0.74
TestBuildPlanFunction · 0.74
TestExecuteInFunction · 0.74
TestSelectStmtCheckShardFunction · 0.74
_TestGroupByRewritingFunction · 0.74
TestASTNodeFunction · 0.68