Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java @ 709:bdeabbd46ec6
Resolve javac and javadoc warnings when compiled with JDK19.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 15 Dec 2022 19:31:53 +0100 (2022-12-15) |
parents | 78253fdb3c3f |
children | aeb268156580 |
comparison
equal
deleted
inserted
replaced
708:5022a57f9d97 | 709:bdeabbd46ec6 |
---|---|
4207 | 4207 |
4208 /** | 4208 /** |
4209 * Internal utility method to create a Statement object, execute a query and return the ResulSet object which allows scrolling. | 4209 * Internal utility method to create a Statement object, execute a query and return the ResulSet object which allows scrolling. |
4210 * As the Statement object is created internally (the caller does not see it and thus can not close it), | 4210 * As the Statement object is created internally (the caller does not see it and thus can not close it), |
4211 * we set it to close (and free server resources) when the ResultSet object is closed by the caller. | 4211 * we set it to close (and free server resources) when the ResultSet object is closed by the caller. |
4212 * | |
4213 * @param query the SQL query to execute | |
4214 * @return a scrollable ResulSet or null when query failed to be executed | |
4215 * @throws SQLException if a database access error occurs | |
4212 */ | 4216 */ |
4213 private final ResultSet executeMetaDataQuery(final String query) throws SQLException { | 4217 private final ResultSet executeMetaDataQuery(final String query) throws SQLException { |
4214 final Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); | 4218 final Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); |
4215 ResultSet rs = null; | 4219 ResultSet rs = null; |
4216 if (stmt != null) { | 4220 if (stmt != null) { |