Re: how do i insert an empty string ? - Mailing list pgsql-sql

From Peter Galbavy
Subject Re: how do i insert an empty string ?
Date
Msg-id 001001c27432$293bd8d0$4528a8c0@cblan.mblox.com
Whole thread Raw
In response to how do i insert an empty string ?  ("Peter Galbavy" <peter.galbavy@knowtion.net>)
List pgsql-sql
Sorry: 7.3 beta 2 on OpenBSD 3.2

Peter
----- Original Message -----
From: "Peter Galbavy" <peter.galbavy@knowtion.net>
To: <pgsql-sql@postgresql.org>
Sent: Tuesday, October 15, 2002 11:01 AM
Subject: [SQL] how do i insert an empty string ?


> FAQ: A search yielded nothing explicit...
>
> I have an INSERT statement:
>
> INSERT INTO metadata (md5, origin, name, value)
>               VALUES ('fd859f263bd0579935f2146a22d24f32', 'EXIF',
> 'UserComment', '')
>
> but this fails (using Perl DBI, DBD::Pg) because $dbh->quote() returns two
> single quotes, which fails because something along the way thinks this is
a
> single quote. I do NOT want to insert a NULL but an empty string...
>
> (This is either doing a $dbh->do(...) or a prepare ... execute without
> $dbh->quote())
>
> Peter
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>



pgsql-sql by date:

Previous
From: "Peter Galbavy"
Date:
Subject: how do i insert an empty string ?
Next
From: "Peter Galbavy"
Date:
Subject: Re: IGNORE ME how do i insert an empty string ?