|
Paul, sorry, that didn't work...I'm still gettin the same error... Shane Cessna iSeries Programmer iSeries WAS Administrator North American Lighting, Inc. (618) 662-4483 x2776 shane_cessna@xxxxxxx "Clapham, Paul" <pclapham@xxxxxxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 06/16/2005 10:04 AM Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx> To "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> cc Subject RE: JDBC question... Here: ResultSet rs2 = queryCKWORKCD.executeQuery(); wcnonw = rs2.getString(1); you are missing a call to rs.next(). After executeQuery(), the cursor is positioned before the start of the ResultSet and the next() method moves it to the first record (if there is one). PC2 -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Shane_Cessna@xxxxxxx Sent: June 16, 2005 07:42 To: Java Programming on and around the iSeries / AS400 Subject: JDBC question... Cursor position not valid. java.sql.SQLException: Cursor position not valid. at java.lang.Throwable.<init>(Throwable.java:96) at java.lang.Exception.<init>(Exception.java:44) at java.sql.SQLException.<init>(SQLException.java:45) at com.ibm.as400.access.JDError.throwSQLException(JDError.java:395) at com.ibm.as400.access.AS400JDBCResultSet.getValue(AS400JDBCResultSet.java:3519) at com.ibm.as400.access.AS400JDBCResultSet.getString(AS400JDBCResultSet.java:3173) at DailyLaborHours.addDay(DailyLaborHours.java:395) at DailyLaborHours.getdata(DailyLaborHours.java:84) at DailyLaborHours.main(DailyLaborHours.java:53) Do I have to do something special to be able to use a ResultSet of one query inside the ResultSet of another query?...Thanks in advance... Shane Cessna iSeries Programmer iSeries WAS Administrator North American Lighting, Inc. (618) 662-4483 x2776 shane_cessna@xxxxxxx
As an Amazon Associate we earn from qualifying purchases.
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.