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
Hi,
I'm trying to store a Vector{UInt8} in a bytea column but am getting unexpected results. Maybe you have an idea of what I'm doing wrong or if this is a bug?
createdatabasetest;
createtabledata (
id int8 primary key generated always as identity,
content byteanot null
);
using LibPQ
c = LibPQ.Connection("dbname=test host=/var/run/postgresql")
tostore =Vector{UInt8}([1,2,3,4])
execute(c, "insert into data (content) values (\$1)", [tostore])
When doing select * from data;, I then expect the content column to print \x01020304, but it shows \x7b312c322c332c347d, and I'm a little bit lost as to why that happens...
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to store a Vector{UInt8} in a bytea column but am getting unexpected results. Maybe you have an idea of what I'm doing wrong or if this is a bug?
When doing
select * from data;
, I then expect the content column to print\x01020304
, but it shows\x7b312c322c332c347d
, and I'm a little bit lost as to why that happens...The text was updated successfully, but these errors were encountered: