Troubleshooting
Problem
select文のwhere節で、date型のカラムに "9999-12-31" を指定すると 1204 エラーになります。ただし、"9999-12-30" を指定した場合は問題ありません。 create database testdb; create table testtbl (col1 datetime year to second); insert into testtbl values (current year to second); % dbaccess testdb - Database selected. > select * from testtbl where date(col1) <= "9999-12-31"; 1204: Invalid year in date Error in line 1 Near character position 53 > select * from testtbl where date(col1) <= "9999-12-30"; col1 2016-06-23 18:17:08 1 row(s) retrieved. >
Cause
既知の障害である、IT11576 が原因です。 最新版の 12.10.FC6 で修正されています。
IT11576 : ERROR -1204 RETURNED WHEN RIGHT HAND DATE VALUE OF EQUALITY EXPRESSION CONTAINS DECEMBER 31ST, 9999
- Fix list for Informix Server 12.10.xC6
http://www-01.ibm.com/support/docview.wss?uid=swg27046898
Was this topic helpful?
Document Information
Modified date:
24 February 2020
UID
swg21985939