db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Newsham" <jnews...@referentia.com>
Subject RE: SqlException With Returning Data For First Row
Date Wed, 05 Dec 2007 20:52:50 GMT

In JDBC, column indices start at 1.

> -----Original Message-----
> From: digi_pixel [mailto:napperley@gmail.com]
> Sent: Wednesday, December 05, 2007 10:46 AM
> To: derby-user@db.apache.org
> Subject: SqlException With Returning Data For First Row
> 
> 
> When running my Java program a SqlException is thrown when trying to
> return
> data from the ResultSet. What is really strange is that the first row is
> reported as being present using the ResultSet's first method. I am using
> the
> "sample" DB that comes with NB 5.5.1. Upon a closer inspection of the rows
> with the Customer table using NB's DB Explorer I can see all the rows and
> what they contain of course.
> 
> http://www.nabble.com/file/p14180306/Derby%2BSqlException.txt Derby
> SqlException
> 
> If my program was successful in retrieving the data from the first col (0)
> of the first row then I should not expect to get the following:
> 
>     Invalid argument: parameter index 0 is out of range
> --
> View this message in context: http://www.nabble.com/SqlException-With-
> Returning-Data-For-First-Row-tf4952206.html#a14180306
> Sent from the Apache Derby Users mailing list archive at Nabble.com.
> 




Mime
View raw message