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.
1 parent f55f153 commit b84eb83Copy full SHA for b84eb83
src/main/java/com/alibaba/druid/pool/ElasticSearchResultSetMetaDataBase.java
@@ -26,11 +26,24 @@ public ElasticSearchResultSetMetaDataBase(List<String> headers) {
26
public List<ColumnMetaData> getColumns() {
27
return columns;
28
}
29
+
30
+ @Override
31
+ public int findColumn(String columnName) throws SQLException {
32
+ ColumnMetaData column;
33
+ for (int i = 0; i < columns.size(); ++i) {
34
+ column = columns.get(i);
35
+ if (column.getColumnName().equals(columnName)) {
36
+ return i + 1;
37
+ }
38
39
40
+ throw new SQLException("column '" + columnName + "' not found.");
41
42
43
@Override
44
public int getColumnCount() throws SQLException {
45
return columns.size();
46
47
-
48
49
0 commit comments