Search in sources :

Example 1 with JdbcQueryMetadataResult

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;
}
Also used : JdbcQueryMetadataRequest(org.apache.ignite.internal.processors.odbc.jdbc.JdbcQueryMetadataRequest) SQLException(java.sql.SQLException) JdbcQueryMetadataResult(org.apache.ignite.internal.processors.odbc.jdbc.JdbcQueryMetadataResult)

Aggregations

SQLException (java.sql.SQLException)1 JdbcQueryMetadataRequest (org.apache.ignite.internal.processors.odbc.jdbc.JdbcQueryMetadataRequest)1 JdbcQueryMetadataResult (org.apache.ignite.internal.processors.odbc.jdbc.JdbcQueryMetadataResult)1