enhydrator
enhydrator copied to clipboard
ColumnCounter starts with 1 on JDBCSource
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.