Re: Record

From: wsheldah(at)lexmark(dot)com
To: "Aasmund Midttun Godal" <postgresql(at)envisity(dot)com>
Cc: Private_User(at)lexmark(dot)com, julio(at)bntsoft(dot)com(dot)br, pgsql-general(at)postgresql(dot)org, alvherre(at)atentus(dot)com
Subject: Re: Record
Date: 2001-10-25 12:57:48
Message-ID: 200110251258.IAA01386@interlock2.lexmark.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

[Checking memory... can't remember ... checking code...]

Looks like I'm using DBI's bind_param instead, after the prepare and before the
execute statement. TMTOWTDI. :-)

$sth->bind_param(1, $my_binary_data, SQL_BINARY);

--Wes

"Aasmund Midttun Godal" <postgresql%envisity(dot)com(at)interlock(dot)lexmark(dot)com> on
10/24/2001 06:41:11 PM

To: "Wesley_Sheldahl/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com
cc: julio%bntsoft(dot)com(dot)br(at)interlock(dot)lexmark(dot)com,
pgsql-general%postgresql(dot)org(at)interlock(dot)lexmark(dot)com,
alvherre%atentus(dot)com(at)interlock(dot)lexmark(dot)com (bcc: Wesley
Sheldahl/Lex/Lexmark)
Subject: Re: [GENERAL] Record

It handles the unescaping, but you have to escape to update/insert, I use:

s/([^\w])/sprintf("\\%03o", ord($1))/eg;

On Wed, 24 Oct 2001 11:42:31 -0400, wsheldah(at)lexmark(dot)com wrote:
>
>
> If you're using Perl and the DBD::Pg driver, then you can use bytea without
> worrying about escaping anything, since the driver takes care of it.
>

Browse pgsql-general by date

  From Date Subject
Next Message Lee Kindness 2001-10-25 13:01:26 createuser -HELP!!
Previous Message Einar Karttunen 2001-10-25 12:51:26 Re: optimizing record matching