Skip to content

Commit da01bfd

Browse files
committed
Small bug fix to nameToIndex
1 parent 3d7fecc commit da01bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client-v2/src/main/java/com/clickhouse/client/api/metadata/TableSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public int nameToIndex(String name) {
125125
if (index == null) {
126126
throw new NoSuchColumnException("Result has no column with name '" + name + "'");
127127
}
128-
return colIndex.get(name).intValue();
128+
return index;
129129
}
130130

131131
@Override

0 commit comments

Comments
 (0)