Re: Error in the date field (with NULL value...).Thanks!

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Error in the date field (with NULL value...).Thanks!
Дата
Msg-id 3AC4261D.4B452415@alumni.caltech.edu
обсуждение исходный текст
Ответ на Error in the date field (with NULL value...).Thanks!  (Maurizio Ortolan <crix98__@tin.it>)
Список pgsql-patches
> How can I "binds" PostgreSQL to consider '' as null ?

You can modify src/backend/utils/{datetime,date,timestamp}.c to accept
an empty string as a null value. But imho it is better to fix this in
your input file, perhaps using sed:

  sed "s/''/NULL/g" < informix.dump > pg.dump

                        - Thomas

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