Re: Insert Text

From: Michael Glaesemann <grzm(at)myrealbox(dot)com>
To: <operationsengineer1(at)yahoo(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Insert Text
Date: 2006-01-31 01:13:01
Message-ID: D976150C-0628-4D60-AE49-0B08E638523A@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Jan 31, 2006, at 10:04 , <operationsengineer1(at)yahoo(dot)com> wrote:

> i allow my users to insert notes. when they leave the
> note blank, "" gets inserted into the db. is this
> expected behavior? tia...

What do *you* expect? How are you inserting into the database? Look
at the INSERT statement that is being used. I suspect you're using
some kind of scripting language for your front-end, and your variable
that holds the note is an empty string. In this case, inserting an
empty string is to be expected. If you want it to insert something
else (or not insert anything at all), you're probably going to have
to modify your front-end or perhaps write a stored procedure to
handle your insert.

Michael Glaesemann
grzm myrealbox com

In response to

  • Insert Text at 2006-01-31 01:04:18 from operationsengineer1

Browse pgsql-novice by date

  From Date Subject
Next Message Derrick Betts 2006-01-31 04:01:37 Dynamic column names in plpgsql
Previous Message operationsengineer1 2006-01-31 01:04:18 Insert Text