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

Method ParseSQL

pkg/util/sqlexec/restricted_sql_executor.go:162–162  ·  view source on GitHub ↗
(ctx context.Context, sql string, params ...parser.ParseParam)

Source from the content-addressed store, hash-verified

160// thus avoid allocating new parser. See session.SQLParser for more information.
161type SQLParser interface {
162 ParseSQL(ctx context.Context, sql string, params ...parser.ParseParam) ([]ast.StmtNode, []error, error)
163}
164
165// Statement is an interface for SQL execution.

Callers 15

TestPreprocessCTEFunction · 0.65
ParseParameterizedSQLFunction · 0.65
sysvar.goFile · 0.65
TestGBKEncodingFunction · 0.65
TestIssue45898Function · 0.65
ParseSQLMethod · 0.65
ParseFunction · 0.65
getColDefaultExprValueFunction · 0.65
parseExprFunction · 0.65
NextMethod · 0.65
setWatchOptionFunction · 0.65
extractPartitionColumnsFunction · 0.65

Implementers 2

Parserpkg/parser/yy_parser.go
sessionpkg/session/session.go

Calls

no outgoing calls