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>
> 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 по дате отправления