Closed anmonteiro closed 1 year ago
The think the only PostgreSQL syntax for unnamed parameters is $1::varchar
. The liked code is maybe using a system which translates the ?
to $n
, like Caqti, but without the restriction on what can follow directly after a ?
? The error can be avoided by adding a space between the ?
and the first :
. The reason for the restriction is to avoid accepting something which we in a future version might want to interpret, but I can be convinced to lift it.
Fixed by making an exception to the exception: ?
can now be followed by a colon if that colon is followed by another one.
Works great after testing, thanks!
Caqti doesn't parse the following query:
It errors with:
Though e.g. Postgres should have no issue with it (e.g. a github search yields many results for this pattern https://github.com/search?q=%3F%3A%3Avarchar&type=code )