Skip to content

Commit

Permalink
Modified the Connection Interface to return java.sql.ResultSet for ex…
Browse files Browse the repository at this point in the history
…ecuteSelect
  • Loading branch information
prash-mi committed Sep 9, 2021
1 parent e35ad7d commit 22af3f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.google.cloud.bigquery;

import com.google.api.services.bigquery.model.QueryParameter;
import java.sql.ResultSet;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -46,7 +47,7 @@ public interface Connection {
* @return a BigQueryResultSet that contains the data produced by the query
* @exception BigQuerySQLException if a database access error occurs
*/
BigQueryResultSet executeSelect(String sql) throws BigQuerySQLException;
ResultSet executeSelect(String sql) throws BigQuerySQLException;

/**
* Execute a SQL statement with query parameters that returns a single BigQueryResultSet
Expand All @@ -64,7 +65,6 @@ public interface Connection {
* @return a BigQueryResultSet that contains the data produced by the query
* @exception BigQuerySQLException if a database access error occurs
*/
BigQueryResultSet executeSelect(
String sql, List<QueryParameter> parameters, Map<String, String> labels)
ResultSet executeSelect(String sql, List<QueryParameter> parameters, Map<String, String> labels)
throws BigQuerySQLException;
}

0 comments on commit 22af3f3

Please sign in to comment.