Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Colin McGrath — — source: Informix-list mailing list archive (1991-1998)
Thomas B Tatum wrote:
> We have the following SQL:
>
> select date(today - interval(1) year to year) from systables where tabid =
> 1;
>
> and get
>
> 1267: The result of a datetime computation is out of range.>
> Is this a bug with the database? Shouldn't it automatically return
> 02/28/1999 in this case?
And should March 31, 2000 - 1 month = February 29?
Informix does not assume you want the nearest legal date.
Avoid such simplistic calculations involving intervals, they'll bite you!
--
Colin
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.