-
It seems to me that there is encoding checking during argument bind-in to a parameter corresponding to a text column.
when $1 corresponds to a text column, it will issue an error:
If I add type cast as follows:
Insertion would work fine. And if I put a Is there a way to set the behavior to not check the encoding? My scenario is for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
If I understand correctly your 4th column in the I would also suggest double checking that the |
Beta Was this translation helpful? Give feedback.
If I understand correctly your 4th column in the
files
table istext
? If so, it's not a the parameter binding that's the issue, it's that PostgreSQL literally will not store invalid UTF8 in a UTF8 collated text column.I would also suggest double checking that the
bytea
literal is doing what you expect. It might actually be storing that text.