Re: Re: binary data

From: "Hugh Mandeville" <hughmandeville(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Re: binary data
Date: 2001-06-22 02:43:30
Message-ID: 9gubbo$s6b$1@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

this works
"Alex Pilosov" <alex(at)pilosoft(dot)com> wrote in message
>> what is the correct way to escape 0? \000 doesn't work for me.
>The correct way is \\\\000 (yes really).
>
>If you are using DBD::Pg after 0.98, it will happen for you automatically
>if you bind the variable as SQL_BINARY.

>> i also tried doing an insert and using quote() with perl (DBD::Pg v1.0)
>You must use $dbh->quote($bindata,DBI::SQL_BINARY) (and DBD::Pg after 1.0)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kristoff Bonne 2001-06-22 07:22:44 Re: Changing PL/pgSQL triggers
Previous Message Josh Berkus 2001-06-21 23:53:25 Re: case, new column not found