implicit cast of empty string to timestamp

Поиск
Список
Период
Сортировка
От James Harper
Тема implicit cast of empty string to timestamp
Дата
Msg-id AEC6C66638C05B468B556EA548C1A77DAF0811@trantor
обсуждение исходный текст
Ответы Re: implicit cast of empty string to timestamp  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Список pgsql-general
Is there anything I can do to make postgres allow an implicit cast of an
empty string to a timestamp, so that a badly behaved application can do:

INSERT INTO SomeTable (timestampfield) VALUES ('')

Where timestampfield is of type typestamp. ?

From what I understand of the 'CREATE CAST' command, I can't just create
a cast that only kicks in on empty strings whilst leaving casts of other
strings as is...

Thanks

James

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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: How to use pg_stat_activity correctly ?
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: implicit cast of empty string to timestamp