Skip to content
New issue

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

Postgres $ dollar placeholder support. #32

Open
gmhafiz opened this issue Sep 17, 2021 · 0 comments
Open

Postgres $ dollar placeholder support. #32

gmhafiz opened this issue Sep 17, 2021 · 0 comments

Comments

@gmhafiz
Copy link

gmhafiz commented Sep 17, 2021

The library isn't able to parse postgres query with $ placeholders.

tree, err := sqlparser.Parse("INSERT INTO users (email, name) VALUES ($1, $2)")
if err != nil {
    fmt.Println(err)
    // err = syntax error at position 52 near '$'
}

I can see the variable yyDollar being used so not sure if this dollar placeholder is supported or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant