lzek / h2sharp

Automatically exported from code.google.com/p/h2sharp
1 stars 0 forks source link

Invalid column index in H2DataReader.GetOrdinal #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Make a call to GetOrdinal with any column name.

What is the expected output? What do you see instead?

Expected zero-based column index of the column with the specified name, or -1 
if column does not exist.  Instead, an exception is thrown:

org.h2.jdbc.JdbcSQLException : Invalid value "0" for parameter "columnIndex"

Please provide any additional information below.

JDBC column indexes are 1-based instead of zero-based.

Original issue reported on code.google.com by acton...@gmail.com on 8 Jul 2013 at 8:49