Re: Inserting NULL into Integer column

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Inserting NULL into Integer column
Дата
Msg-id Pine.LNX.4.33.0402181357470.3399-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Re: Inserting NULL into Integer column  (Rod Taylor <pg@rbt.ca>)
Ответы Re: Inserting NULL into Integer column  (Rod Taylor <pg@rbt.ca>)
Список pgsql-sql
On Wed, 18 Feb 2004, Rod Taylor wrote:

> > and then you can foreach across the input:
> > 
> > foreach($fields as $f){
> >   if (!$_POST[$f]){
> >     $_POST[$f]='DEFAULT';
> >   } else {
> >     $_POST[$f] = "'".$_POST[$f]."'";
> >   }
> > }
> 
> Default in quotes isn't going to work, and please tell me you escape
> those things with pg_escape_string() at some point.

Note that the ' marks aren't part of the string, they are the delimiter of 
the string, and I always run every server with magic_quotes_gpc on.

anything else? :-)



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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: Inserting NULL into Integer column
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Inserting NULL into Integer column