vitess-sqlparser icon indicating copy to clipboard operation
vitess-sqlparser copied to clipboard

Postgres `$` dollar placeholder support.

Open gmhafiz opened this issue 4 years ago • 0 comments

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.

gmhafiz avatar Sep 17 '21 08:09 gmhafiz