use of org.apache.ignite.internal.processors.odbc.jdbc.JdbcQueryMetadataResult in project ignite by apache.
the class JdbcThinResultSet method meta.
/**
* @return Results metadata.
* @throws SQLException On error.
*/
private List<JdbcColumnMeta> meta() throws SQLException {
if (finished && (!isQuery || autoClose))
throw new SQLException("Server cursor is already closed.", SqlStateCode.INVALID_CURSOR_STATE);
if (!metaInit) {
JdbcQueryMetadataResult res = stmt.conn.sendRequest(new JdbcQueryMetadataRequest(cursorId), stmt, stickyIO).response();
meta = res.meta();
metaInit = true;
}
return meta;
}
Aggregations