From: Roland Roberts <roland@astrofoto.org>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: Inserting Null Value or String Value
Date: 01 Oct 2002 14:00:07 -0400
Message-ID: <m265wmujiw.fsf@kuiper.rlent.pnet> (raw)
In-Reply-To: <B9BF3960.13CA7%hierophant@pcisys.net>
References: <B9BF3960.13CA7%hierophant@pcisys.net>
>>>>> "Keary" == Keary Suska <hierophant@pcisys.net> writes:
Keary> If I surround the date with single quotes it should be
Keary> fine, but I can't do that when I want to insert a null
Keary> value. I know that I can do an "IF <use quotes> ELSE
Keary> <don't use quotes>" in the SQL string, by I am entering
Keary> many values and this would really get messy. I was hoping
Keary> that there was a better solution. Thanks for any help.
Why is this too difficult? You *are* doing some sort of input
validation before you send the data to posgres aren't you?
roland
--
PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
roland@rlenter.com 76-15 113th Street, Apt 3B
roland@astrofoto.org Forest Hills, NY 11375
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: roland@astrofoto.org
Subject: Re: Inserting Null Value or String Value
In-Reply-To: <m265wmujiw.fsf@kuiper.rlent.pnet>
References: <B9BF3960.13CA7%hierophant@pcisys.net> <m265wmujiw.fsf@kuiper.rlent.pnet>
* 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