You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT company FROM company WHERE approved = ${approved}
instead of SELECT company FROM company WHERE approved = $1
thanks in advance
The text was updated successfully, but these errors were encountered:
vladyslav2
changed the title
Is it possible to pass select query with named parameters ?
Is it possible to execute select query with named parameters ?
Jan 8, 2017
asyncpg uses native PostgreSQL syntax for parameters, unlike other database drivers, it does not do any sort of parameter interpolation. Hence only the $n syntax is supported.
A possible future enhancement to enable handling of named parameters is tracked in #9.
Lets say i want to do:
SELECT company FROM company WHERE approved = ${approved}
instead of
SELECT company FROM company WHERE approved = $1
thanks in advance
The text was updated successfully, but these errors were encountered: