:-) You are right
I previously tried 

   - with 0 but it complained "Invalid value 0 for parameter columnIndex"
   - while with 1 it complained "No data is available"
   

At the end I also missed calling ResultSet.next(). I was using a spring 
ResultSetExtractor on JdbcTemplate.query (), I supposed the framework was 
calling my callback for every entry into the ResultSet while it was my 
responsibility... so I collected two faults in a single code line. Sorry 
(what a bad day)

On Wednesday, June 12, 2013 2:55:42 PM UTC+2, Noel Grandin wrote:
>
>  
> On 2013-06-12 14:44, Davide Cavestro wrote:
>  
>
>  On Wednesday, June 12, 2013 2:41:38 PM UTC+2, Noel Grandin wrote: 
>>
>>  
>> On 2013-06-12 14:38, Davide Cavestro wrote:
>>  
>> ResultSet.getString(0)
>>
>>
>> getString(0) is your problem
>>  
>   
>  
> I'm being deliberately opaque :-) 
>
> Re-read the documentation for ResultSet#getString(int).
>  

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to