Skip to content

Commit 4941a0b

Browse files
authored
Merge pull request #1976 from ClickHouse/null-values-handling
Update ResultSetImpl.java
2 parents 05a9985 + b14f2c0 commit 4941a0b

File tree

2 files changed

+214
-50
lines changed

2 files changed

+214
-50
lines changed

client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/AbstractBinaryFormatReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public double[] getDoubleArray(String colName) {
519519

520520
@Override
521521
public boolean hasValue(int colIndex) {
522-
return currentRecord.containsKey(getSchema().indexToName(colIndex));
522+
return currentRecord.containsKey(getSchema().indexToName(colIndex - 1));
523523
}
524524

525525
@Override

0 commit comments

Comments
 (0)