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
Drizzle throws an error: syntax error at or near \"$1\. The code works when I execute the prepared query without the sql.placeholder, hardcoding an argument inside prepQuery - the error is not reproduced anyway else. Do I need to pass the array of strings there differently? I tried converting it into a string, but that does not work neither.
It would also be awesome if this case was handled by the ORM, so that no workarounds are needed.
Expected behavior
array is converted by the prepared query into something acceptable by postgres sql statement
What version of
drizzle-orm
are you using?0.33.0
What version of
drizzle-kit
are you using?No response
Describe the Bug
when executing this code:
Drizzle throws an error:
syntax error at or near \"$1\
. The code works when I execute the prepared query without the sql.placeholder, hardcoding an argument insideprepQuery
- the error is not reproduced anyway else. Do I need to pass the array of strings there differently? I tried converting it into a string, but that does not work neither.It would also be awesome if this case was handled by the ORM, so that no workarounds are needed.
Expected behavior
Environment & setup
No response
The text was updated successfully, but these errors were encountered: