Skip to content

Error using a colon in Select As #22

@AcerLaurinum

Description

@AcerLaurinum

Thanks for making such an awesome library! I'm using yesql 4.2.1 and am trying to run a query with a colon in a "Select As" but get a missing value error. For example,

pg.query(named('SELECT :usercount AS "Number of users: ";')({usercount: 5}), (err, result) => {...})

Not sure if this is a bug or I need to be escaping the colon somehow. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions