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
In short, PostggreSQL treats \0 as the string termination. The only proper way to pass string data with zeros is as binary, i.e. as bytea, which then will use Buffer as input, which will be escaped correctly. But regular strings cannot contain zeros.
Expected behavior
be able to insert data
Actual behavior
"invalid message" error is thrown with error code 08P01
Steps to reproduce
String value contains following record
"value\0"
pgp.helpers.insert(values, columnsSet);
Environment
The text was updated successfully, but these errors were encountered: