pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Peter Galbavy <peter.galbavy@knowtion.net>
To: pgsql-sql@postgresql.org
Subject: how do i insert an empty string ?
Date: Tue, 15 Oct 2002 11:01:47 +0100
Message-ID: <000901c27431$e02a8e20$4528a8c0@cblan.mblox.com> (raw)
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
view thread (3+ messages) latest in thread
Message-ID: <000901c27431$e02a8e20$4528a8c0@cblan.mblox.com> Permalink: ../000901c27431$e02a8e20$4528a8c0@cblan.mblox.com/ Also on: postgresql.org/message-id/000901c27431$e02a8e20$4528a8c0@cblan.mblox.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: peter.galbavy@knowtion.net Subject: Re: how do i insert an empty string ? In-Reply-To: <000901c27431$e02a8e20$4528a8c0@cblan.mblox.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox