We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4063fce + 5e3e4fb commit fa897d3Copy full SHA for fa897d3
jdbc/src/main/java/tech/ydb/jdbc/impl/BaseYdbResultSet.java
@@ -91,10 +91,10 @@ private ValueReader readValue(int columnIndex) throws SQLException {
91
throw new SQLException(YdbConst.COLUMN_NUMBER_NOT_FOUND + columnIndex);
92
}
93
94
- ValueReader value = getValue(columnIndex - 1);
+ ValueReader v = getValue(columnIndex - 1);
95
ColumnInfo type = columns[columnIndex - 1];
96
- wasNull = type == null || type.isNull() || (type.isOptional() && !value.isOptionalItemPresent());
97
- return value;
+ wasNull = type == null || v == null || type.isNull() || (type.isOptional() && !v.isOptionalItemPresent());
+ return v;
98
99
100
@Override
0 commit comments