Export to GitHub

h2sharp - issue #8

Invalid column index in H2DataReader.GetOrdinal


Posted on Jul 8, 2013 by Grumpy Giraffe

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.

Status: New

Labels:
Type-Defect Priority-Medium