Postgres BYTEA problems

Ivan Voras ivoras at __geri.cc.fer.hr
Thu Mar 4 16:00:39 EST 2004


Steve wrote:

> a character that must be escaped.
> so if I should be getting
> "\x00\x01"
> I'll get
> "\\x00\\x01"

Are you sure that it's the dbapi driver that is doing it, or maybe the 
data was written to the database in that way (e.g. not chr(00)+chr(01) 
but '\' 'x' '0' '0' ...)?




More information about the Python-list mailing list