Skip to content

Prepared(true) does not work with postgres #427

Open
@veqryn

Description

Describe the bug
When using .Prepared(true) it replaces the interpolated arguments with ?, even though Postgres is expecting $1, $2, etc.

Expected behavior
I expect it to use the correct parameter format.

Dialect:

  • postgres
  • mysql
  • sqlite3

Additional context

  1. Why is interpolation the default?
  2. Why did goqu go to all the trouble to write an interpolation layer, when every database takes parameters? It seems much much safer to let Postgres do the interpolation, rather than just a library to do it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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