Skip to content

Commit

Permalink
metadata adjustments for compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasHafner committed Aug 23, 2023
1 parent 89815ce commit cfa75c3
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 67 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/polypheny/jdbc/PolyhenyResultSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

public class PolyhenyResultSet implements ResultSet {

private boolean isMeta = false;

private PolyphenyStatement statement;

private PolyphenyResultSetMetadata metadata;
Expand Down Expand Up @@ -79,6 +81,7 @@ public PolyhenyResultSet( ArrayList<PolyphenyColumnMeta> columnMetas, ArrayList<
this.lastRead = null;
this.isClosed = false;
this.isInInsertMode = false;
this.isMeta = true;
}


Expand Down Expand Up @@ -979,6 +982,9 @@ public void moveToCurrentRow() throws SQLException {
@Override
public Statement getStatement() throws SQLException {
throwIfClosed();
if (isMeta) {
throw new ProtoInterfaceServiceException( ProtoInterfaceErrors.OPERATION_ILLEGAL, "This operation cannot be applied to a dummy result set of a meta request." );
}
return statement;
}

Expand Down
Loading

0 comments on commit cfa75c3

Please sign in to comment.