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
camc314
changed the title
[BUG]:
[BUG]: inserting json does not work when using sql string literal
Oct 21, 2024
camc314
changed the title
[BUG]: inserting json does not work when using sql string literal
[BUG]: inserting json does not work when using sql template string
Oct 21, 2024
What version of
drizzle-orm
are you using?drizzle-orm
What version of
drizzle-kit
are you using?No response
Describe the Bug
I tried this morning with the latest drizzle-orm version.
It appears that this broke in #1785 .
Attempting to insert a JS object using the
sql
template lit does not work correctlyThe following error is thrown:
I added the following, minimal test case to
integration-tests/tests/pg/postgres-js.test.ts
Expected behavior
I expect the json to be inserted correctly into the database an no error to be thrown
Environment & setup
I am using MacOS however this issue is also reproducable in GH actions/linux CI
The text was updated successfully, but these errors were encountered: