× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I had a similar issue recently. The fix that IBM suggested (and that worked)
was to append the "date format" parameter to the connection string.

For example:
jdbc:as400://{db}/{db};prompt=false;translate binary=true;date format=iso;


Hope this helps!

-Jessica
-----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 10: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


**************************************************************************************************
The contents of this email and any attachments are confidential.
They are intended for the named recipient(s) only.
If you have received this email in error please notify the system manager or  
the 
sender immediately and do not disclose the contents to anyone or make copies.

** eSafe scanned this email for viruses, vandals and malicious content. **
**************************************************************************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 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.