moigagoo / norm

A Nim ORM for SQLite and Postgres
https://norm.nim.town
MIT License
378 stars 34 forks source link

parameter substitution error #201

Closed monocoder closed 6 months ago

monocoder commented 6 months ago

norm v2.81 postgresql v16.1

dbConn.select(user, "id = $1", 3) ------ ok dbConn.select(user, "id = ?", 3) ------ error

moigagoo commented 6 months ago

I don't think the latter is valid PostgreSQL syntax. SQLite supports both variants but PostgreSQL supports only the dollar syntax.