Re: Datetime conversion in WHERE clause

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Datetime conversion in WHERE clause
Дата
Msg-id 200409091142.41872.josh@agliodbs.com
обсуждение исходный текст
Ответ на Datetime conversion in WHERE clause  ("Philippe Lang" <philippe.lang@attiksystem.ch>)
Список pgsql-sql
Philippe,

> Is there a way to force the date conversion to fail sliently, and simply
> return a null in case the parameter is not a valid date?

You'd need to write a custom function, using an external language that allows 
you to test for valid date values.   I prefer using PL/perlU with 
Date::Manip, but use what you like.

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: aggregate function stddev
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Isnumeric function?