Re: SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-12 Thread Andrew Gierth
> "Matthias" == Matthias Apitz writes: Matthias> Hello, Matthias> I can SELECT && print a column in hex with: Matthias> pos71=# select d02name::bytea from d02ben where d02bnr = '1048313' ; If your intention is to see the raw bytes of the stored text value, for example to check the

Re: SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-12 Thread Christoph Moench-Tegeder
## Matthias Apitz (g...@unixarea.de): > Hmm. But *I* do need the content in hex to see if the varchar column > contains correct encoded UTF-8 data. select 'Hello'::bytea::text; Regards, Christoph -- Spare Space

Re: SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-12 Thread Francisco Olarte
Matthias: On Thu, Oct 10, 2019 at 7:26 PM Matthias Apitz wrote: > Hmm. But *I* do need the content in hex to see if the varchar column > contains correct encoded UTF-8 data. We're on the way to port a huge > database application from Sybase to PostgreSQL and are facing any kind of > problems one

Re: SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-10 Thread Matthias Apitz
El día jueves, octubre 10, 2019 a las 06:46:02p. m. +0200, Francisco Olarte escribió: > Matthias: > > On Thu, Oct 10, 2019 at 1:25 PM Matthias Apitz wrote: > > I can SELECT && print a column in hex with: > > pos71=# select d02name::bytea from d02ben where d02bnr = '1048313' ; > > ... > >

Re: SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-10 Thread Francisco Olarte
Matthias: On Thu, Oct 10, 2019 at 1:25 PM Matthias Apitz wrote: > I can SELECT && print a column in hex with: > pos71=# select d02name::bytea from d02ben where d02bnr = '1048313' ; > ... > \x50c3a46461676f67697363686520486f6368736368756c65205765696e67617274656e2020 > ... > > but when I use

SELECT d02name::bytea FROM ... && DBI::Pg

2019-10-10 Thread Matthias Apitz
Hello, I can SELECT && print a column in hex with: pos71=# select d02name::bytea from d02ben where d02bnr = '1048313' ; ... \x50c3a46461676f67697363686520486f6368736368756c65205765696e67617274656e2020 ... but when I use the same in Perl DBI::Pg with: ... $sth=$dbh->prepare( "select d02n