We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func Parse(sql string) (*ast.StmtNode, error) { p := parser.New() stmtNode, err := p.ParseOneStmt(sql, "", "") if err != nil { return nil, err } return &stmtNode, nil }
sql: with tmp_table as (select * from t1) select * from tmp_table result: syntax error
sql: with tmp_table as (select * from t1) select * from tmp_table
The text was updated successfully, but these errors were encountered:
hi. which version of pingcap/parser are you using?
pingcap/parser
Sorry, something went wrong.
version: v4.0.2
MacBook-Pro:~ ftlynx$ cat go.mod | grep ping github.com/pingcap/parser v0.0.0-20200623164729-3a18f1e5dceb github.com/pingcap/tidb v1.1.0-beta.0.20200630082100-328b6d0a955c
CTE parser was implemented in #1207 & #1217, you'll need a parser version of at least 20210429.
thanks
No branches or pull requests
Question
func Parse(sql string) (*ast.StmtNode, error) { p := parser.New() stmtNode, err := p.ParseOneStmt(sql, "", "") if err != nil { return nil, err } return &stmtNode, nil }
sql: with tmp_table as (select * from t1) select * from tmp_table
result:
syntax error
The text was updated successfully, but these errors were encountered: