mrpostiga / h2sharp

H2Sharp is an Ado.Net wrapper for the H2 Database Engine written in C#.
1 stars 3 forks source link

Invalid column index in H2DataReader.GetOrdinal #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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