Check the job log it will tell on which record you have the problem.  It
seems like date field has null value.  SQL is not very good with nulls in
date columns :-)


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Lára Björk Erlingsdóttir
Sent: Tuesday, November 29, 2005 8:52 AM
To: java400-l@xxxxxxxxxxxx
Subject: Corrupt date value in Resultset

I have a problem with date value from a Resultset which is returned from an
SQL procedure, the date value is corrupt and all the fields and records
after the first date value also contain corrupt data.  

 

I run a JDBC Sql statement from Java calling an sql procedure, using
com.ibm.as400.access.AS400JDBCDriver driver.  The table on my iSeries
contains 4 fields:  2 integer field, a date field and a sting field.  The
value of the date fields in the table is 2005-11-28.  If I call the same sql
procedure from the iSeries Navigator, the resultSet returns correct data and
if I execute the same query, as the sql procedure contains, from a Java code
(not using the sql procedure) the result is correct.  

 

Does anyone have an idea what is the solution for this problem?

 

Thanks in advance,

Lara





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.