Hi,

if the user calls "getObject" before calling wasNull then wasNull returns 
either the "wasNull" value of the previous called get<DataType> call, or 
it throws an Exception, if it is called the first time.


How to replicate this bug:

DBConnection conn = ....
DatabaseMetaData md = conn.getMetaData();

ResultSet rs = md.getTables(null, null, null, new String[] {"TABLE});


if (rs.next()) {
   Object anyData = rs.getObject(1)
   // the following statement will throw an exception: "column -1 out of 
bounds [1,10]"
   if (rs.wasNull()) {
      ... 
   }
 
}


I saw in the source code that getObject does not set the lastCol variable 
in the ResultSet class "RS".


The expected behavior is that the getObject function sets the "lastCol" 
variable so that cosecutive function calls to "wasNull" do not fail with 
an exception.


Would be nice to hear from you.

Regards,
Burkhard.
E-world 2014
11.-13..2.2013 Essen/Germany

Besuchen Sie uns auf der E-world 2014 | Halle 3 | Stand 131
Wir freuen uns auf Ihren 
Besuch.--------------------------------------------------------------------------------------------------------------------------------------------
 Burkhard Losch - KISTERS AG - Charlottenburger Allee 5 - 52068 Aachen - Germany
Handelsregister Aachen, HRB-Nr. 7838 | Vorstand: Klaus Kisters, Hanns Kisters | 
Aufsichtsratsvorsitzender: Dr. Thomas Klevers
Tel.: +49 241 9671 -112 | Mobil: +49 176 19671041 | E-Mail: 
burkhard.lo...@kisters.de | WWW: http://www.kisters.de
--------------------------------------------------------------------------------------------------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht 
gestattet. 
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to