Mercurial > hg > monetdb-java
diff src/main/java/org/monetdb/jdbc/MonetConnection.java @ 967:5cc071c5c170
Corrected the returned integer values of Statement methods executeUpdate(...), executeLargeUpdate(...), getUpdateCount() and getLargeUpdateCount() and PreparedStatement methods executeUpdate() and executeLargeUpdate(). They returned -2 for DDL statements, which was not in compliance with the JDBC API documentation.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 13 Feb 2025 21:16:20 +0100 (2 months ago) |
parents | ff075ed5ce81 |
children |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/jdbc/MonetConnection.java +++ b/src/main/java/org/monetdb/jdbc/MonetConnection.java @@ -2935,16 +2935,10 @@ public class MonetConnection /** * The SchemaResponse represents an schema modification response. * It is issued on statements like CREATE, DROP or ALTER TABLE. - * This response keeps a field that represents the success state, as - * defined by JDBC, which is currently in MonetDB's case always - * SUCCESS_NO_INFO. Note that this state is not sent by the - * server.<br /> * <samp>&3</samp> */ // {{{ SchemaResponse class implementation class SchemaResponse implements Response { - public final int state = Statement.SUCCESS_NO_INFO; - @Override public String addLine(final String line, final LineType linetype) { return "Header lines are not supported for a SchemaResponse";