Re: A creepy story about dates. How to prevent it?

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: A creepy story about dates. How to prevent it?
Дата
Msg-id 1056035574.592.119.camel@haggis
обсуждение исходный текст
Ответ на Re: A creepy story about dates. How to prevent it?  (Jonathan Bartlett <johnnyb@eskimo.com>)
Список pgsql-general
On Thu, 2003-06-19 at 09:54, Jonathan Bartlett wrote:
> > > The problem is that you can't do the check on the _field_ since it has
> > > already been converted to a date.
> >
> > You're right.  How about a "before insert" trigger?
>
> This suffers from the same problem, I believe.  If I weren't a lazy
> bastard, I check it :)

But you could code programatic to validate the date.

--
+-----------------------------------------------------------+
| Ron Johnson, Jr.     Home: ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson |
|                                                           |
| "Oh, great altar of passive entertainment, bestow upon me |
|  thy discordant images at such speed as to render linear  |
|  thought impossible" (Calvin, regarding TV)               |
+-----------------------------------------------------------


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

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: Re: A creepy story about dates. How to prevent it?
Следующее
От: greg@turnstep.com
Дата:
Сообщение: Re: A creepy story about dates. How to prevent it?