Skip to content

Commit

Permalink
Add query-ID-less constructor for backwards compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
goomrw committed Dec 15, 2023
1 parent 3636f18 commit b861a6c
Showing 1 changed file with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,41 @@ public class BQForwardOnlyResultSet implements java.sql.ResultSet {
*/
private int Cursor = -1;

/**
* Constructor without query ID for backwards compatibility.
*
* @param bigquery Bigquery driver instance for which this is a result
* @param projectId the project from which these results were queried
* @param completedJob the query's job, if any
* @param bqStatementRoot the statement for which this is a result
* @throws SQLException thrown if the results can't be retrieved
*/
public BQForwardOnlyResultSet(
Bigquery bigquery,
String projectId,
@Nullable Job completedJob,
String queryId,
BQStatementRoot bqStatementRoot)
throws SQLException {
this(
bigquery,
projectId,
completedJob,
null,
bqStatementRoot,
null,
false,
null,
0L,
false,
null,
null);
}

public BQForwardOnlyResultSet(
Bigquery bigquery,
String projectId,
@Nullable Job completedJob,
@Nullable String queryId,
BQStatementRoot bqStatementRoot)
throws SQLException {
this(
Expand Down

0 comments on commit b861a6c

Please sign in to comment.