Skip to content
Snippets Groups Projects
Commit cba1645e authored by serebrserg's avatar serebrserg
Browse files

METR-20494: expose name->columnNum metadata

parent 8263a0a9
No related branches found
No related tags found
No related merge requests found
......@@ -125,12 +125,15 @@ public class CHStatementImpl implements CHStatement {
@Override
public boolean execute(String sql) throws SQLException {
executeQuery(sql);
ResultSet rs = null;
try {
rs = executeQuery(sql);
} finally {
CopypasteUtils.close(rs);
}
return true;
}
@Override
public void close() throws SQLException {
if (currentResult != null) {
......
......@@ -127,7 +127,7 @@ public class CHResultSet extends AbstractResultSet {
return columns;
}
Map<String, Integer> getCol() {
public Map<String, Integer> getCol() {
return col;
}
......@@ -440,4 +440,8 @@ public class CHResultSet extends AbstractResultSet {
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
return getObject(asColNum(columnLabel), type);
}
public ByteFragment[] getValues() {
return values;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.