Dates greater than 2040-01-01 shown as null
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
Dates greater than 2040-01-01 shown as null
Also, Dates less than 1940 are shown as null
Is there a fix for this?
Sorry, I don't have access to DB2/400 and I can't reproduce this problem on other RDBMS's. I'm pretty sure it is an RDBMS/JDBC driver related issue.
Hi,
this may be your solution:
https://www-01.ibm.com/support/docview.wss?uid=nas8N1017268
"jdbc:as400://RCHASSLH;date format=iso;time format=iso;"
Greetings
Claus
Thanks, Claus, for your hint. Hope it will be useful.
Thanks to PUB400.COM I now have access to DB2 on AS400. I still couldn't reproduce the problem. I used the JT400 JDBC driver, see http://jt400.sourceforge.net/.
I just received a private mail that Claus's hint worked.
So thanks again, Claus.
Gerd
I have full access to a AS400 System i (currently 7r3).
I had tested it using the following SQL:
First one returns NULL, second one a date:
If you change
If you change JDBC-URL to
You will get the following result:
Only "Bugfix" for SQuirreL could be an Option for a AS400 (Plugin) so you can change this in SQuirreL itself as a option. Otherwise - close the Ticket as "It is not a bug its a feature of JDBC-Driver"
Closed on request.