PreparedStatement#getMetaData executes query #387
Labels
api: spanner
Issues related to the googleapis/java-spanner-jdbc API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Calling
PreparedStatement.getMetaData()
will execute the query of thePreparedStatement
. That is both inefficient and does not work if the prepared statement has unbound parameters. Executing the query inPLAN
mode is enough to retrieve the metadata, and also works if there are unbound parameters.The text was updated successfully, but these errors were encountered: