Re: Possible to insert quoted null value into integer field?
В списке pgsql-general по дате отправления:
| От | Gaetano Mendola |
|---|---|
| Тема | Re: Possible to insert quoted null value into integer field? |
| Дата | |
| Msg-id | 412E573A.3010500@bigfoot.com обсуждение исходный текст |
| Ответ на | Re: Possible to insert quoted null value into integer field? (Jan Wieck <JanWieck@Yahoo.com>) |
| Ответы |
Re: Possible to insert quoted null value into integer field?
|
| Список | pgsql-general |
Jan Wieck wrote:
> On 8/26/2004 4:27 AM, gnari wrote:
>
>> "Pablo S" <pablo_tweek@yahoo.com> wrote:
>>
>>
>>> Hi all, I have search high and low on this -
>>> Take for instance the statement :
>>> insert into foo (text1, text2, int1) values ('Foo', 'Bar', '');
>>>
>>> On Pg 7.2.x, the db would happily insert the null val into the int
>>> field. HOWSOMEVER, 7.4.x will explode and error back with:
>
>
> You aren't inserting an SQL NULL value. You try to insert an empty
> string, which is not a valid integer representation.
>
>
> Jan
And IIRC for oracle an empty string is a NULL value :-(
Regards
Gaetano Mendola
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера