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
This query does work as expected directly in the db, but is throwing an exception when executed with this library.
We are receiving events from external devices and want to persist those events including event data directly into the db.
Expected Behaviour
Inserting column directly into the table with result
Problem Description
Trying to insert
[true, false]
into ajsonb
column like the following sql:This query does work as expected directly in the db, but is throwing an exception when executed with this library.
We are receiving events from external devices and want to persist those events including event data directly into the db.
Expected Behaviour
Inserting column directly into the table with result
result:
Current Behaviour
Error output:
PostgresError: cannot cast type boolean to jsonb
Local fix
Table Description
Table "public.device_events"
The text was updated successfully, but these errors were encountered: