[BUG]: inserting json does not work when using sql
template string
#3171
Labels
bug
Something isn't working
db/postgres
driver/postgresjs
has-pr
This issue has one or more PRs that that could close the issue when merged
priority
Will be worked on next
qb/crud
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: