Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28]) by postgresql.org (8.11.3/8.11.1) with SMTP id f5MCfpa50510 for ; Fri, 22 Jun 2001 08:41:51 -0400 (EDT) (envelope-from pgsql-sql-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5M31fa83702 for ; Thu, 21 Jun 2001 23:01:41 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f5M2h6k28878 for pgsql-sql@postgresql.org; Thu, 21 Jun 2001 22:43:06 -0400 (EDT) (envelope-from news) From: "Hugh Mandeville" X-Newsgroups: comp.databases.postgresql.sql Subject: Re: Re: binary data Date: Thu, 21 Jun 2001 22:43:30 -0400 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 12 Message-ID: <9gubbo$s6b$1@news.tht.net> References: <9gtovc$mnr$1@news.tht.net> Reply-To: "Hugh Mandeville" X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-sql@postgresql.org X-Archive-Number: 200106/365 X-Sequence-Number: 3652 this works "Alex Pilosov" 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)