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
Minimal example:
package main import ( "fmt" "github.com/xwb1989/sqlparser" ) func main() { sql := "SELECT DATE_SUB(NOW(), INTERVAL 1 MONTH)" tree, err := sqlparser.Parse(sql) if err != nil { fmt.Println("Error: ", err) panic("oh no") } fmt.Println(tree) }
$ go run main.go Error: syntax error at position 34 near 1 panic: oh no [trace info]
Looks like it's failing to handle the MONTH after INTERVAL.
MONTH
INTERVAL
The text was updated successfully, but these errors were encountered:
Added tests for each of the Github query parsing issues. xwb1989#9 xw…
2e040eb
…b1989#12 xwb1989#14 xwb1989#15 xwb1989#16
This issue seems fixed by d093d02 (Imported the latest https://github.com/youtube/vitess sqlparser)
Sorry, something went wrong.
Closing this issue. Feel free to reopen with an example if you still encounter the issue.
No branches or pull requests
Minimal example:
Looks like it's failing to handle the
MONTH
afterINTERVAL
.The text was updated successfully, but these errors were encountered: