I I write { 'v', 255, 0, 'a', 1, 'b', 0 } to the db and using an INSERT statement I get 118, 255, 0, 97, 1, 98, 0 which is correct (?).
If i write the same data using a table writer i get 125, 48, 48, 48, 48, 54, 55, 48, 49, 54, 56, 48, 48 .
I tried changing the column type to TEXT and insert two strings instead, this seems work.
Am I doing something wrong?
I'm using a621cbba1f63c599819466f3da7ef7d352bdaf0d
I think that BYTEA colums are not written correctly to the database when using a table writer.
I created a small example, mostly copied from the bytea tests:
I I write
{ 'v', 255, 0, 'a', 1, 'b', 0 }
to the db and using anINSERT
statement I get118, 255, 0, 97, 1, 98, 0
which is correct (?). If i write the same data using a table writer i get125, 48, 48, 48, 48, 54, 55, 48, 49, 54, 56, 48, 48
.I tried changing the column type to TEXT and insert two strings instead, this seems work.
Am I doing something wrong?
I'm using a621cbba1f63c599819466f3da7ef7d352bdaf0d