Re: Insert Text

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Insert Text
Дата
Msg-id D976150C-0628-4D60-AE49-0B08E638523A@myrealbox.com
обсуждение исходный текст
Ответ на Insert Text  (<operationsengineer1@yahoo.com>)
Список pgsql-novice
On Jan 31, 2006, at 10:04 , <operationsengineer1@yahoo.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




В списке pgsql-novice по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Insert Text
Следующее
От: "Derrick Betts"
Дата:
Сообщение: Dynamic column names in plpgsql