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
JSONB queries have different behavior on pg and postgres.js drivers. On postgres.js it works correctly (If change to jsonb from #666 is present), but it gives an error on pg (without any change to internals)
LeonAlvarez
changed the title
[BUG]: JSOB select behaviour difference in drivers
[BUG]: JSONB select behaviour difference between postgres drivers
Jun 15, 2023
BUG: jsonb always inserted as a json string when using postgres-js: This issue reports a bug where inserting an object into a postgres jsonb field with db.insert only inserts a string when using the postgres-js adapter. The link is relevant because it is a similar bug related to JSONB behavior in drizzle-orm and may provide insights or potential solutions for the issue at hand.
What version of
drizzle-orm
are you using?0.26.5
What version of
drizzle-kit
are you using?No response
Describe the Bug
JSONB queries have different behavior on
pg
andpostgres.js
drivers. On postgres.js it works correctly (If change to jsonb from #666 is present), but it gives an error onpg
(without any change to internals)Query produced is the same in both cases.
pg
error:Expected behavior
When using pg driver select should work as it works on postgres.js
Environment & setup
Can use the following table to execute the above test
The text was updated successfully, but these errors were encountered: