From: Eric Carpenter <postgresql@slacker.to>
To: pgsql-sql@postgresql.org
Subject: Inserting values into numeric fields
Date: Thu, 11 Apr 2002 17:16:37 -0500
Message-ID: <NHEMKPHJPKCCFEHFMEJIKECKCEAA.postgresql@slacker.to> (raw)
In-Reply-To: <200204111109.12ab@th00.opsion.fr>
Greetings all,
I'm trying to insert values into a numeric field which may be optional. I'm
using perl's DBI and bind parameters to do this. However, psotgresql
complains that '' is not a numeric, since the DBI quotes everything before
inserting.. I've tried inserting NULL as well, but that gets quoted and
rejected as well.
Is there any way to do this without hard coding "NULL" into the prepared
statement handle?
Thanks!
Eric Carpenter
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: postgresql@slacker.to
Subject: Re: Inserting values into numeric fields
In-Reply-To: <NHEMKPHJPKCCFEHFMEJIKECKCEAA.postgresql@slacker.to>
* 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