enhydrator icon indicating copy to clipboard operation
enhydrator copied to clipboard

ColumnCounter starts with 1 on JDBCSource

Open abrueck opened this issue 9 years ago • 0 comments

When using JDBCSource the colums start with index 1 not 0. The reason for this the line 40 and 42 in ResultSetToEntries:

...
            int columnIndex = 0;
            for (int i = 1; i <= columnCount; i++) {
                columnIndex++;
...

The variable columnCount is initialized with 0 in line 40 and get incremented in line 42 bevor the first column added.

abrueck avatar Jan 10 '16 20:01 abrueck