Skip to content

Postgres $ dollar placeholder support.Β #32

@gmhafiz

Description

@gmhafiz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions