diff --git a/documentation/changelog.creole b/CHANGELOG.md similarity index 53% rename from documentation/changelog.creole rename to CHANGELOG.md index 54654fce2..67a01b626 100644 --- a/documentation/changelog.creole +++ b/CHANGELOG.md @@ -1,273 +1,324 @@ -== 2.5.0 - Released on 02 Oct. 2019 +# Change Log +## [2.5.2](https://github.com/MariaDB/mariadb-connector-j/tree/2.5.2) (22 Nov. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.5.1...2.5.2) -* [CONJ-663] Client authentication plugins are now defined as services. The driver has 2 new plugins `caching_sha2_password` and `sha256_password plugin` for MySQL compatibility -* [CONJ-733] Credential service: AWS IAM authentication -* [CONJ-727] Support configuration of custom SSLSocketFactory -* [CONJ-561] JDBC 4.3 partial implementation java.sql.Statement methods isSimpleIdentifier, enquoteIdentifier, enquoteLiteral and enquoteNCharLiteral -* [CONJ-692] ConnectionPoolDataSource interface addition to MariaDbPoolDataSource -* [CONJ-563] closing possible option batch thread on driver deregistration. -* [CONJ-732] Driver getPropertyInfo returns no options information when url is empty -* [CONJ-734] DatabaseMetaData.getSchemaTerm now return "schema", not empty string +* CONJ-745 - use pool reset only for corrected COM_RESET_CONNECTION +* CONJ-743 - byte signed value wrong serialization for text protocol +* CONJ-742 ensure plugin using Driver classloader -== 2.4.4 - Released on 14 Sept. 2019 -* [CONJ-724] Do not ignore the Calendar parameter in ResultSet#getTime(int, Calendar) -* [CONJ-725] Connection Failure when using PAM authenticated user on 10.4 MariaDB server -* [CONJ-729] master-slave regression: commit on read-only server Executed only when there is an active transaction on master connection -* [CONJ-726] removing possible NPE after failover on aurora cluster +## [2.5.1](https://github.com/MariaDB/mariadb-connector-j/tree/2.5.1) (15 Oct. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.5.0...2.5.1) -== 2.4.3 - Released on 02 Jul. 2019 +* CONJ-736 - OSGI compliance +* CONJ-737 - Error packet caching_sha2_password not handled when not having a password +* CONJ-738 - PAM authentication multiple exchanges permitting multiple step in connection string +* CONJ-735 - Multi insert regression correction returning multi generated keys -* [CONJ-717] conversion function support for other data type than default MariaDB conversion type -* [CONJ-722] Permit suppression of result-set metadata getTableName for oracle compatibility -* [CONJ-719] Saving values using Java 8 LocalTime does not store fractional parts of seconds -* [CONJ-716] Correcting possible NPE on non thread safe NumberFormat (logging) -== 2.4.2 - Released on 17 Jun. 2019 +## [2.5.0](https://github.com/MariaDB/mariadb-connector-j/tree/2.5.0) (02 Oct. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.4.4...2.5.0) + +* CONJ-663 - Client authentication plugins are now defined as services. The driver has 2 new plugins `caching_sha2_password` and `sha256_password plugin` for MySQL compatibility +* CONJ-733 - Credential service: AWS IAM authentication +* CONJ-727 - Support configuration of custom SSLSocketFactory +* CONJ-561 - JDBC 4.3 partial implementation java.sql.Statement methods isSimpleIdentifier, enquoteIdentifier, enquoteLiteral and enquoteNCharLiteral +* CONJ-692 - ConnectionPoolDataSource interface addition to MariaDbPoolDataSource +* CONJ-563 - closing possible option batch thread on driver deregistration. +* CONJ-732 - Driver getPropertyInfo returns no options information when url is empty +* CONJ-734 - DatabaseMetaData.getSchemaTerm now return "schema", not empty string + +## [2.4.4](https://github.com/MariaDB/mariadb-connector-j/tree/2.4.4) (14 Sep. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.4.3...2.4.4) + +* CONJ-724 - Do not ignore the Calendar parameter in ResultSet#getTime(int, Calendar) +* CONJ-725 - Connection Failure when using PAM authenticated user on 10.4 MariaDB server +* CONJ-729 - master-slave regression: commit on read-only server Executed only when there is an active transaction on master connection +* CONJ-726 - removing possible NPE after failover on aurora cluster + +## [2.4.3](https://github.com/MariaDB/mariadb-connector-j/tree/2.4.3) (02 Jul. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.4.2...2.4.3) + +* CONJ-717 - conversion function support for other data type than default MariaDB conversion type +* CONJ-722 - Permit suppression of result-set metadata getTableName for oracle compatibility +* CONJ-719 - Saving values using Java 8 LocalTime does not store fractional parts of seconds +* CONJ-716 - Correcting possible NPE on non thread safe NumberFormat (logging) + +## [2.4.2](https://github.com/MariaDB/mariadb-connector-j/tree/2.4.2) (17 Jun. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.4.1...2.4.2) Security -* [CONJ-679] parse Query when receiving LOAD LOCAL INFILE +* CONJ-679 - parse Query when receiving LOAD LOCAL INFILE Bugs -* [CONJ-703] ClassNotFoundException when trying to connect using two-authentication in an OSGI environment. -* [CONJ-711] Xid format id is unsigned integer, currently sending as signed value. -* [CONJ-700] autoReconnect=true on Basic Failover doesn't reconnect -* [CONJ-707] failover might throw an unexpected exception with using "failover"/"sequential" configuration on socket error -* [CONJ-709] includeThreadDumpInDeadlockExceptions is thrown only if option includeInnodbStatusInDeadlockExceptions is set -* [CONJ-710] Throw complete stackTrace when having an exception on XA Commands -* [CONJ-714] Error on connection on galera server when in detached mode. -* [CONJ-701] typo in error message in SelectResultSet.java - -== 2.4.1 - Released on 15 Mar. 2019 +* CONJ-703 - ClassNotFoundException when trying to connect using two-authentication in an OSGI environment. +* CONJ-711 - Xid format id is unsigned integer, currently sending as signed value. +* CONJ-700 - autoReconnect=true on Basic Failover doesn't reconnect +* CONJ-707 - failover might throw an unexpected exception with using "failover"/"sequential" configuration on socket error +* CONJ-709 - includeThreadDumpInDeadlockExceptions is thrown only if option includeInnodbStatusInDeadlockExceptions is set +* CONJ-710 - Throw complete stackTrace when having an exception on XA Commands +* CONJ-714 - Error on connection on galera server when in detached mode. +* CONJ-701 - typo in error message in SelectResultSet.java + +## [2.4.1](https://github.com/MariaDB/mariadb-connector-j/tree/2.4.1) (15 Mar. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.4.0...2.4.1) Evolutions -* [misc] enabled running of 'SHOW ENGINE INNODB STATUS' for error code 1213 (@mtykhenko) -* [misc] reduce mutex using select @@innodb_read_only for aurora (@matsuzayaws) +* misc - enabled running of 'SHOW ENGINE INNODB STATUS' for error code 1213 (@mtykhenko) +* misc - reduce mutex using select @@innodb_read_only for aurora (@matsuzayaws) Bugs -* [misc] updating checkstyle version dependency -* [misc] permit using SSL on localsocket -* [CONJ-687] addition of option "useMysqlMetadata" to permit MySQL meta compatibility -* [misc] java PID using java 9 ProcessHandle if existing, relying on JNA if present -* [CONJ-682] internal pool correction: when receiving an RST during connection validation, the pool will end up throwing connection timeout exception in place of reusing another connection. +* misc - updating checkstyle version dependency +* misc - permit using SSL on localsocket +* CONJ-687 - addition of option "useMysqlMetadata" to permit MySQL meta compatibility +* misc - java PID using java 9 ProcessHandle if existing, relying on JNA if present +* CONJ-682 - internal pool correction: when receiving an RST during connection validation, the pool will end up throwing connection timeout exception in place of reusing another connection. -== 2.4.0 - Released on 28 Jan. 2019 +## [2.4.0](https://github.com/MariaDB/mariadb-connector-j/tree/2.4.0) (28 Jan. 2019) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.3.0...2.4.0) Evolutions -* [CONJ-675] permit multiple alternative authentication methods for the same user (future MariaDB 10.4 feature) -* {CONJ-678] permit indication of truststore/keystore type (JKS/PKCS12), then not relying on java default type -* [CONJ-378] GSSAPI: client can provide SPN -* [CONJ-667] Support MYSQL_TYPE_JSON datatype -* [CONJ-652] faster results buffering socket available -* [CONJ-659] improve text performance reading date/time/timestamp resultset -* [CONJ-670] ability to Refresh SSL certificate +* CONJ-675 - permit multiple alternative authentication methods for the same user (future MariaDB 10.4 feature) +* CONJ-678 - permit indication of truststore/keystore type (JKS/PKCS12), then not relying on java default type +* CONJ-378 - GSSAPI: client can provide SPN +* CONJ-667 - Support MYSQL_TYPE_JSON datatype +* CONJ-652 - faster results buffering socket available +* CONJ-659 - improve text performance reading date/time/timestamp resultset +* CONJ-670 - ability to Refresh SSL certificate New options -|=useReadAheadInput|use a buffered inputSteam that read socket available data. \\//Default: true//| -|=keyStoreType|indicate key store type (JKS/PKCS12). default is null, then using java default type.| -|=trustStoreType|indicate trust store type (JKS/PKCS12). default is null, then using java default type| -|=servicePrincipalName|when using GSSAPI authentication, SPN (Service Principal Name) use the server SPN information. When set, connector will use this value, ignoring server information| + +|Option|Description| +|---|---| +|useReadAheadInput|use a buffered inputSteam that read socket available data.
Default: true| +|keyStoreType|indicate key store type (JKS/PKCS12). default is null, then using java default type.| +|trustStoreType|indicate trust store type (JKS/PKCS12). default is null, then using java default type| +|servicePrincipalName|when using GSSAPI authentication, SPN (Service Principal Name) use the server SPN information. When set, connector will use this value, ignoring server information| Bugs -* [CONJ-646] possible NullPointerException when connection lost to database using aurora configuration with one node -* [CONJ-672] batch using multi-send can hang when using query timeout -* [CONJ-544] disable SSL session resumption when using SSL -* [CONJ-589] correcting Clob.length() for utf8mb4 -* [CONJ-649] datasource connectTimeout URL parameter is not honoured -* [CONJ-650] Correction on resultset.getObject(columnName, byte[].class) when value is NULL -* [CONJ-665] old MySQL (<5.5.3) doesn't support utf8mb4, using utf8 on 3 bytes as connection charset by default -* [CONJ-671] MariaDb bulk threads occupy full cpu(99%) while db connections broken -* [CONJ-673] abording a connection while fetching a query still does read whole resultset -* [CONJ-669] SQLSyntaxErrorException when querying on empty column name -* [CONJ-674] make dumpQueriesOnException = false by default as per documentation +* CONJ-646 - possible NullPointerException when connection lost to database using aurora configuration with one node +* CONJ-672 - batch using multi-send can hang when using query timeout +* CONJ-544 - disable SSL session resumption when using SSL +* CONJ-589 - correcting Clob.length() for utf8mb4 +* CONJ-649 - datasource connectTimeout URL parameter is not honoured +* CONJ-650 - Correction on resultset.getObject(columnName, byte[].class) when value is NULL +* CONJ-665 - old MySQL (<5.5.3) doesn't support utf8mb4, using utf8 on 3 bytes as connection charset by default +* CONJ-671 - MariaDb bulk threads occupy full cpu(99%) while db connections broken +* CONJ-673 - abording a connection while fetching a query still does read whole resultset +* CONJ-669 - SQLSyntaxErrorException when querying on empty column name +* CONJ-674 - make dumpQueriesOnException = false by default as per documentation minor: -* [CONJ-644] small optimization when validating galera connection -* [CONJ-625] add coverage test -* [CONJ-654] DatabaseMetaData.getDriverName() returns connector/J with a lowercase c +* CONJ-644 - small optimization when validating galera connection +* CONJ-625 - add coverage test +* CONJ-654 - DatabaseMetaData.getDriverName() returns connector/J with a lowercase c -== 2.3.0 - 06 Sep. 2018 +## [2.3.0](https://github.com/MariaDB/mariadb-connector-j/tree/2.3.0) (06 Sep. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.6...2.3.0) -==== [CONJ-398] Improve deadlock debugging capabilities +#### [CONJ-398] Improve deadlock debugging capabilities MariaDB has now 2 new options to permit identifying deadlock : New options -|=includeInnodbStatusInDeadlockExceptions|add "SHOW ENGINE INNODB STATUS" result to exception trace when having a deadlock exception.\\//Default: false// -|=includeThreadDumpInDeadlockExceptions|add thread dump to exception trace when having a deadlock exception.\\//Default: false// -==== [CONJ-639] the option "enabledSslProtocolSuites" now include TLSv1.2 by default +|Option|Description| +|---|---| +|includeInnodbStatusInDeadlockExceptions|add "SHOW ENGINE INNODB STATUS" result to exception trace when having a deadlock exception.
//Default: false| +|includeThreadDumpInDeadlockExceptions|add thread dump to exception trace when having a deadlock exception.
Default: false| + +#### [CONJ-639] the option "enabledSslProtocolSuites" now include TLSv1.2 by default previous default value was "TLSv1, TLSv1.1", disabling TLSv1.2 by default, due to a corrected issue (MDEV-12190) with servers using YaSSL - not openSSL. Server error was . Now, the default value is "TLSv1, TLSv1.1, TLSv1.2". So TLSv1.2 can be use directly. Connecting MySQL community server use YaSSL without correction, and connection might result in SSLException: "Unsupported record version Unknown-0.0". -==== [CONJ-642] disable the option "useBulkStmts" by default +#### [CONJ-642] disable the option "useBulkStmts" by default Using useBulkStmts permit faster batch, but cause one major issue : Batch return -1 = SUCCESS_NO_INFO Different option use this information for optimistic update, and cannot confirm if update succeed or not. This option still makes sense, since for big batch is way more faster, but will not be activated by default. -=== Minor change: -* [CONJ-628] optimization to read metadata faster -* [CONJ-637] java.sql.Driver class implement DriverPropertyInfo[] getPropertyInfo, permitting listing options on querying tools -* [CONJ-639] enabledSslProtocolSuites does not include TLSv1.2 by default -* [CONJ-641] update maven test dependencies for java 10 compatibility -* [CONJ-643] PreparedStatement::getParameterMetaData always returns VARSTRING as type resulting in downstream libraries interpreting values wrongly +##= Minor change: +* CONJ-628 - optimization to read metadata faster +* CONJ-637 - java.sql.Driver class implement DriverPropertyInfo[] getPropertyInfo, permitting listing options on querying tools +* CONJ-639 - enabledSslProtocolSuites does not include TLSv1.2 by default +* CONJ-641 - update maven test dependencies for java 10 compatibility +* CONJ-643 - PreparedStatement::getParameterMetaData always returns VARSTRING as type resulting in downstream libraries interpreting values wrongly -=== Bug correction: -* [CONJ-616] correction on possible NPE on getConnection when using failover configuration and master is down, not throwing a proper exception -* [CONJ-636] Error in batch might throw a NPE and not the proper Exception +##= Bug correction: +* CONJ-616 - correction on possible NPE on getConnection when using failover configuration and master is down, not throwing a proper exception +* CONJ-636 - Error in batch might throw a NPE and not the proper Exception -== 2.2.6 +## [2.2.6](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.6) (19 Jul. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.5...2.2.6) + minor change: -* [CONJ-623] Increase connection logging when Primary node connection fails -* [CONJ-384] Permit knowing affected rows number, not only real changed rows +* CONJ-623 - Increase connection logging when Primary node connection fails +* CONJ-384 - Permit knowing affected rows number, not only real changed rows New options -|=useAffectedRows|default correspond to the JDBC standard, reporting real affected rows. if enable, will report "affected" rows. example : if enable, an update command that doesn't change a row value will still be "affected", then report.\\//Default: false. Since 2.2.6// +|=useAffectedRows|default correspond to the JDBC standard, reporting real affected rows. if + enable, will report "affected" rows. example : if enable, an update command that doesn't change a row value will still be "affected", then report.
Default: false. Since 2.2.6 Bug correction: -* [CONJ-624] MariaDbPoolDataSource possible NPE on configuration getter -* [CONJ-623] Increase connection logging when Primary node connection fails -* [CONJ-622] The option "connectTimeout" must take in account DriverManager.getLoginTimeout() when set -* [CONJ-621] wrong escaping when having curly bracket in table/field name -* [CONJ-618] Client preparestatement parsing error on escaped ' / " in query +* CONJ-624 - MariaDbPoolDataSource possible NPE on configuration getter +* CONJ-623 - Increase connection logging when Primary node connection fails +* CONJ-622 - The option "connectTimeout" must take in account DriverManager.getLoginTimeout() when set +* CONJ-621 - wrong escaping when having curly bracket in table/field name +* CONJ-618 - Client preparestatement parsing error on escaped ' / " in query + +## [2.2.5](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.5) (28 May. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.4...2.2.5) -== 2.2.5 minor change: -* [CONJ-602] Add server hostname to connection packet for proxy -* [CONJ-604] handle support for mysql 8.0 tx_isolation replacement by transaction_isolation +* CONJ-602 - Add server hostname to connection packet for proxy +* CONJ-604 - handle support for mysql 8.0 tx_isolation replacement by transaction_isolation Bug correction: -* [CONJ-613] Connection using "replication" Parameters fail when no slave is available -* [CONJ-595] Create option to configure DONOR/DESYNCED Galera nodes to be unavailable for load-balancing -* [CONJ-605] Newlines where breaking calling stored procedures -* [CONJ-609] Using getDate with function DATE_ADD() with parameter using string format where return wrong result using binary protocol -* [CONJ-610] Option "allowMasterDownConnection" improvement on connection validation and Exceptions on master down +* CONJ-613 - Connection using "replication" Parameters fail when no slave is available +* CONJ-595 - Create option to configure DONOR/DESYNCED Galera nodes to be unavailable for load-balancing +* CONJ-605 - Newlines where breaking calling stored procedures +* CONJ-609 - Using getDate with function DATE_ADD() with parameter using string format where return wrong result using binary protocol +* CONJ-610 - Option "allowMasterDownConnection" improvement on connection validation and Exceptions on master down -== 2.2.4 +## [2.2.4](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.4) (04 May. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.3...2.2.4) Minor changes: -* [CONJ-580] Some options are missing in documentation like default 'autocommit' value -* [CONJ-597] Internal exchanges send utf8mb4 with server even if default server collation is not utf8/utf8mb4 -* [CONJ-600] Upgrading non mandatory Waffle dependency to 1.9.0 (windows GSSAPI authentication) -* [CONJ-575] test addition to ensure YaSSL downgrade TLSv1.2 protocol to TLSv1.1 +* CONJ-580 - Some options are missing in documentation like default 'autocommit' value +* CONJ-597 - Internal exchanges send utf8mb4 with server even if default server collation is not utf8/utf8mb4 +* CONJ-600 - Upgrading non mandatory Waffle dependency to 1.9.0 (windows GSSAPI authentication) +* CONJ-575 - test addition to ensure YaSSL downgrade TLSv1.2 protocol to TLSv1.1 -== 2.2.3 +## [2.2.3](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.3) (08 Mar. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.2...2.2.3) Bug correction: -* [CONJ-583] possible hang indefinitely using master/slave configuration and failover occur -* [CONJ-586] erroneous transaction state when first command result as error -* [CONJ-587] using allowMasterDownConnection option can lead to NPE when using setReadOnly() -* [CONJ-588] using option 'allowMasterDownConnection' won't permit to connect if master is down -* [CONJ-534] Connection.isValid() must be routed to Master and Slave connections to avoid any server timeout +* CONJ-583 - possible hang indefinitely using master/slave configuration and failover occur +* CONJ-586 - erroneous transaction state when first command result as error +* CONJ-587 - using allowMasterDownConnection option can lead to NPE when using setReadOnly() +* CONJ-588 - using option 'allowMasterDownConnection' won't permit to connect if master is down +* CONJ-534 - Connection.isValid() must be routed to Master and Slave connections to avoid any server timeout -== 2.2.2 +## [2.2.2](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.2) (20 Feb. 2018) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.1...2.2.2) Bug correction: -* [CONJ-564] Never ever throw an instance of java.lang.Error -* [CONJ-579] Keywords missing from DatabaseMetaData.getSQLKeywords() -* [CONJ-567] UrlParser.initialUrl gets overwritten -* [CONJ-571] Permit java 9 serialization filtering -* [CONJ-574] forcing using toLowerCase/toUpperCase with Locale.ROOT -* [CONJ-560] Automatic module name for java 9 -* [CONJ-578] windows testing using all mariadb server -* [CONJ-570] Add tests for 10.3.3 INVISIBLE column +* CONJ-564 - Never ever throw an instance of java.lang.Error +* CONJ-579 - Keywords missing from DatabaseMetaData.getSQLKeywords() +* CONJ-567 - UrlParser.initialUrl gets overwritten +* CONJ-571 - Permit java 9 serialization filtering +* CONJ-574 - forcing using toLowerCase/toUpperCase with Locale.ROOT +* CONJ-560 - Automatic module name for java 9 +* CONJ-578 - windows testing using all mariadb server +* CONJ-570 - Add tests for 10.3.3 INVISIBLE column -== 2.2.1 +## [2.2.1](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.1) (22 Dec. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.2.0...2.2.1) -* [CONJ-501] provide support for authentication plugin ed25519 +* CONJ-501 - provide support for authentication plugin ed25519 Bug correction: -* [CONJ-529] failover : the driver will pause for 250ms if no servers are available before attempting to reconnect another time -* [CONJ-548] don't use COM_STMT_BULK_EXECUTE for INSERT ... SELECT statements -* [CONJ-549] correction on connection reset when using MariaDbPoolDataSource with options useServerPrepStmts and useResetConnection enabled -* [CONJ-555] failover caused by client timeout must not reuse connection -* [CONJ-558] removing extra ".0" to resultset.getString() value for FLOAT/DOUBLE fields -* [CONJ-550] fetching state correction when reusing statement without having read all results -* [CONJ-553] RejectedExecutionException was thrown when having large amount of concurrent batches +* CONJ-529 - failover : the driver will pause for 250ms if no servers are available before attempting to reconnect another time +* CONJ-548 - don't use COM_STMT_BULK_EXECUTE for INSERT ... SELECT statements +* CONJ-549 - correction on connection reset when using MariaDbPoolDataSource with options useServerPrepStmts and useResetConnection enabled +* CONJ-555 - failover caused by client timeout must not reuse connection +* CONJ-558 - removing extra ".0" to resultset.getString() value for FLOAT/DOUBLE fields +* CONJ-550 - fetching state correction when reusing statement without having read all results +* CONJ-553 - RejectedExecutionException was thrown when having large amount of concurrent batches -== 2.2.0 +## [2.2.0](https://github.com/MariaDB/mariadb-connector-j/tree/2.2.0) (08 Nov. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.1.2...2.2.0) Evolutions: -==== [CONJ-522] Pool datasource implementation +#### CONJ-522 - Pool datasource implementation MariaDB has now 2 different Datasource implementation : * MariaDbDataSource : Basic implementation. A new connection each time method getConnection() is called. * MariaDbPoolDataSource : Connection pooling implementation. MariaDB Driver will keep a pool of connection and borrow Connections when asked for it. New options -|=pool|Use pool. This option is useful only if not using a DataSource object, but only connection object. \\//Default: false. since 2.2.0//| -|=poolName|Pool name that will permit to identify thread.\\default: auto-generated as MariaDb-pool-//since 2.2.0//| -|=maxPoolSize| The maximum number of physical connections that the pool should contain. \\//Default: 8. since 2.2.0//| -|=minPoolSize| When connection are removed since not used since more than "maxIdleTime", connections are closed and removed from pool. "minPoolSize" indicate the number of physical connections the pool should keep available at all times. Should be less or equal to maxPoolSize.\\//Default: maxPoolSize value. Since 2.2.0//| -|=poolValidMinDelay| When asking a connection to pool, Pool will validate connection state. "poolValidMinDelay" permit to disable this validation if connection has been borrowed recently avoiding useless verification in case of frequent reuse of connection. 0 meaning validation is done each time connection is asked.\\//Default: 1000 (in milliseconds). Since 2.2.0//| -|=maxIdleTime|The maximum amount of time in seconds that a connection can stay in pool when not used. This value must always be below @wait_timeout value - 45s \\//Default: 600 in seconds (=10 minutes), minimum value is 60 seconds. Since 2.2.0//| -|=staticGlobal|Indicate the following global variable (@@max_allowed_packet,@@wait_timeout,@@autocommit,@@auto_increment_increment,@@time_zone,@@system_time_zone,@@tx_isolation) values won't changed, permitting to pool to create new connection faster.\\//Default: false. Since 2.2.0//| -|=useResetConnection|When a connection is closed() (give back to pool), pool reset connection state. Setting this option, session variables change will be reset, and user variables will be destroyed when server permit it (MariaDB >= 10.2.4, MySQL >= 5.7.3), permitting to save memory on server if application make extensive use of variables\\//Default: false. Since 2.2.0//| + +|Option|Description| +|---|---| +|pool|Use pool. This option is useful only if not using a DataSource object, but only connection object.
Default: false. since 2.2.0| +|poolName|Pool name that will permit to identify thread.
default: auto-generated as MariaDb-pool- since 2.2.0| +|maxPoolSize| The maximum number of physical connections that the pool should contain.
Default: 8. since 2.2.0| +|minPoolSize| When connection are removed since not used since more than "maxIdleTime", connections are closed and removed from pool. "minPoolSize" indicate the number of physical connections the pool should keep available at all times. Should be less or equal to maxPoolSize.
Default: maxPoolSize value. Since 2.2.0| +|poolValidMinDelay| When asking a connection to pool, Pool will validate connection state. "poolValidMinDelay" permit to disable this validation if connection has been borrowed recently avoiding useless verification in case of frequent reuse of connection. 0 meaning validation is done each time connection is asked.
Default: 1000 (in milliseconds). Since 2.2.0| +|maxIdleTime|The maximum amount of time in seconds that a connection can stay in pool when not used. This value must always be below @wait_timeout value - 45s
Default: 600 in seconds (=10 minutes), minimum value is 60 seconds. Since 2.2.0| +|staticGlobal|Indicate the following global variable (@@max_allowed_packet,@@wait_timeout,@@autocommit,@@auto_increment_increment,@@time_zone,@@system_time_zone,@@tx_isolation) values won't changed, permitting to pool to create new connection faster.
Default: false. Since 2.2.0| +|useResetConnection|When a connection is closed() (give back to pool), pool reset connection state. Setting this option, session variables change will be reset, and user variables will be destroyed when server permit it (MariaDB >= 10.2.4, MySQL >= 5.7.3), permitting to save memory on server if application make extensive use of variables
Default: false. Since 2.2.0| Other evolutions: -[CONJ-530] Permit Connection.abort() forcing killing the connection, even if connection is stuck in another thread -[CONJ-531] permit cancelling streaming result-set using Statement.cancel. -[CONJ-495] Improve reading result-set data -[CONJ-510] allow execution of read-only statements on slaves when master is down +* CONJ-530 - Permit Connection.abort() forcing killing the connection, even if connection is stuck in another thread +* CONJ-531 - permit cancelling streaming result-set using Statement.cancel. +* CONJ-495 - Improve reading result-set data +* CONJ-510 - allow execution of read-only statements on slaves when master is down Bug : -[CONJ-532] correction Statement.getMoreResults() for multi-queries -[CONJ-533] PrepareStatement.setTime() may insert incorrect time according to current timezone, time and option "useLegacyDatetimeCode" -[CONJ-535] correction on numerical getter for big BIT data type fields -[CONJ-541] Fix behavior of ResultSet#relative when crossing result set boundaries +* CONJ-532 - correction Statement.getMoreResults() for multi-queries +* CONJ-533 - PrepareStatement.setTime() may insert incorrect time according to current timezone, time and option "useLegacyDatetimeCode" +* CONJ-535 - correction on numerical getter for big BIT data type fields +* CONJ-541 - Fix behavior of ResultSet#relative when crossing result set boundaries Misc: -[CONJ-469] Improve Blob/Clob implementation (avoiding array copy from result-set row) -[CONJ-539] better message when server close connection -[misc] resultset.findColumn method use column name if alias not found -[misc] default option "connectTimeout" value to 30 seconds (was 0 = no timeout) -[misc] ensure that enablePacketDebug option works when timer tick is big +* CONJ-469 - Improve Blob/Clob implementation (avoiding array copy from result-set row) +* CONJ-539 - better message when server close connection +* misc - resultset.findColumn method use column name if alias not found +* misc - default option "connectTimeout" value to 30 seconds (was 0 = no timeout) +* misc - ensure that enablePacketDebug option works when timer tick is big + + -== 2.1.2 +## [2.1.2](https://github.com/MariaDB/mariadb-connector-j/tree/2.1.2) (24 Sep. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.1.1...2.1.2) Bug : -* [CONJ-525] Batch result-set return array correction when DELETE statement when bulk option is used -* [CONJ-526] better error message getting metadata information when SQL syntax is wrong -* [CONJ-527] Resultset.last() return wrong value if resultset has only one result -* [CONJ-528] Error executing LOAD DATA LOCAL INFILE when file is larger than max_allowed_packet +* CONJ-525 - Batch result-set return array correction when DELETE statement when bulk option is used +* CONJ-526 - better error message getting metadata information when SQL syntax is wrong +* CONJ-527 - Resultset.last() return wrong value if resultset has only one result +* CONJ-528 - Error executing LOAD DATA LOCAL INFILE when file is larger than max_allowed_packet -== 2.1.1 + +## [2.1.1](https://github.com/MariaDB/mariadb-connector-j/tree/2.1.1) (05 Sep. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.1.0...2.1.1) Bug : -* [CONJ-519] Updatable result-set possible NPE when same field is repeated. -* [CONJ-514] ResultSet method wasNull() always return true after a call on a "null-date" field binary protocol handling -* [CONJ-516] Permit using updatable result-set when fetching -* [CONJ-511] Add legacy SSL certificate Hostname verification with CN even when SAN are set -* [CONJ-515] Improve MariaDB driver stability in case JNA errors +* CONJ-519 - Updatable result-set possible NPE when same field is repeated. +* CONJ-514 - ResultSet method wasNull() always return true after a call on a "null-date" field binary protocol handling +* CONJ-516 - Permit using updatable result-set when fetching +* CONJ-511 - Add legacy SSL certificate Hostname verification with CN even when SAN are set +* CONJ-515 - Improve MariaDB driver stability in case JNA errors misc : * correct typo in error message when setting wrong parameter * add trace to HostnameVerifier implementation * handling connection error when no database is provided -== 2.1.0 -=== CONJ-422 : verification of SSL Certificate Name Mismatch +## [2.1.0](https://github.com/MariaDB/mariadb-connector-j/tree/2.1.0) (29 Jul. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.0.3...2.1.0) + +##= CONJ-422 : verification of SSL Certificate Name Mismatch When using ssl, driver check hostname against the server's identity as presented in the server's Certificate (checking alternative names or certificate CN) to prevent man-in-the-middle attack. A new option "disableSslHostnameVerification" permit to deactivate this validation. -|=disableSslHostnameVerification| When using ssl, driver check hostname against the server's identity as presented in the server's Certificate (checking alternative names or certificate CN) to prevent man-in-the-middle attack. This option permit to deactivate this validation.\\//Default: false. Since 2.1.0// +|=disableSslHostnameVerification| When using ssl, driver check hostname against the server's identity as presented in the server's Certificate (checking alternative names or certificate CN) to prevent man-in-the-middle attack. This option permit to deactivate this validation.
//Default: false. Since 2.1.0// -=== CONJ-400 - Galera validation +##= CONJ-400 - Galera validation When configuration with multi-master, Connection.isValid() will not only validate connection, but primary state. A connection to a node that is not in primary mode will return false (then for pool, connection will be discarded) -=== CONJ-322 - ResultSet.update* methods implementation +##= CONJ-322 - ResultSet.update* methods implementation ResultSet.update* methods aren't implemented statement using ResultSet.CONCUR_UPDATABLE must be able to update record. exemple: @@ -287,54 +338,58 @@ exemple: }}} -=== CONJ-389 - faster batch insert +##= CONJ-389 - faster batch insert Use dedicated [COM_STMT_BULK_EXECUTE |https://mariadb.com/kb/en/mariadb/com_stmt_bulk_execute/] protocol for batch insert when possible. (batch without Statement.RETURN_GENERATED_KEYS and streams) to have faster batch. (significant only if server MariaDB ≥ 10.2.7) A new option "useBulkStmts" permit to deactivate this functionality. -|=useBulkStmts| Use dedicated COM_STMT_BULK_EXECUTE protocol for batch insert when possible. (batch without Statement.RETURN_GENERATED_KEYS and streams) to have faster batch. (significant only if server MariaDB ≥ 10.2.7)\\//Default: true. Since 2.1.0// +|=useBulkStmts| Use dedicated COM_STMT_BULK_EXECUTE protocol for batch insert when possible. (batch without Statement.RETURN_GENERATED_KEYS and streams) to have faster batch. (significant only if server MariaDB ≥ 10.2.7)
//Default: true. Since 2.1.0// other evolution -*[CONJ-508] Connection.getCatalog() optimisation for 10.2+ server using new session_track_schema capabilities -*[CONJ-492] Failover handle automatic reconnection on KILL command +* CONJ-508 - Connection.getCatalog() optimisation for 10.2+ server using new session_track_schema capabilities +* CONJ-492 - Failover handle automatic reconnection on KILL command Bug -*[CONJ-502] isolation leak when using multiple pools on same VM on failover -*[CONJ-503] regression on aurora Connection Connection.isReadOnly() -*[CONJ-505] correcting issue that ended throwing "Unknown prepared statement handler given to mysqld_stmt_execute" -*[CONJ-496] return rounded numeric when querying on a decimal field in place of throwing an exception for compatibility +* CONJ-502 - isolation leak when using multiple pools on same VM on failover +* CONJ-503 - regression on aurora Connection Connection.isReadOnly() +* CONJ-505 - correcting issue that ended throwing "Unknown prepared statement handler given to mysqld_stmt_execute" +* CONJ-496 - return rounded numeric when querying on a decimal field in place of throwing an exception for compatibility -== 2.0.3 +## [2.0.3](https://github.com/MariaDB/mariadb-connector-j/tree/2.0.3) (27 Jun. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.0.2...2.0.3) + Bug -*[CONJ-473] when useServerPrepStmts is not set, the PREPARE statement must not be cached. -*[CONJ-494] Handle PrepareStatement.getParameterMetaData() if query cannot be PREPAREd -*[CONJ-497] escape string correction for big query +* CONJ-473 - when useServerPrepStmts is not set, the PREPARE statement must not be cached. +* CONJ-494 - Handle PrepareStatement.getParameterMetaData() if query cannot be PREPAREd +* CONJ-497 - escape string correction for big query + -== 1.6.1 -report of 2.0.2 corrections for jre 1.7 compatible version. +## [2.0.2](https://github.com/MariaDB/mariadb-connector-j/tree/2.0.2) (05 Jun. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.0.1...2.0.2) -== 2.0.2 Bug -*[CONJ-490] - DataSource connectTimeout is in second, but was set on socket timeout that is in milliseconds -*[CONJ-481] - Buffer overrun reading ResultSet when using option "useServerPrepStmts" -*[CONJ-470] - Error when executing SQL contains "values" and rewriteBatchedStatements=true -*[CONJ-471] - PK_NAME returned by DatabaseMetadata.getPrimaryKeys() should not be null -*[CONJ-477] - Aurora not compatible with option usePipelineAuth. Now automatically disabled when aurora is detected -*[CONJ-479] - ArrayIndexOutOfBoundsException on connect to MySQL 5.1.73 -*[CONJ-480] - Access denied error on connect to MySQL 5.1.73 -*[CONJ-483] - Wrong content of DEFERRABILITY column in MariaDbDatabaseMetaData -*[CONJ-487] - No timeout exception on Client PrepareStatement -*[CONJ-489] - javax.transaction.xa.XAException message error truncated ( near '0x ) +* CONJ-490 - DataSource connectTimeout is in second, but was set on socket timeout that is in milliseconds +* CONJ-481 - Buffer overrun reading ResultSet when using option "useServerPrepStmts" +* CONJ-470 - Error when executing SQL contains "values" and rewriteBatchedStatements=true +* CONJ-471 - PK_NAME returned by DatabaseMetadata.getPrimaryKeys() should not be null +* CONJ-477 - Aurora not compatible with option usePipelineAuth. Now automatically disabled when aurora is detected +* CONJ-479 - ArrayIndexOutOfBoundsException on connect to MySQL 5.1.73 +* CONJ-480 - Access denied error on connect to MySQL 5.1.73 +* CONJ-483 - Wrong content of DEFERRABILITY column in MariaDbDatabaseMetaData +* CONJ-487 - No timeout exception on Client PrepareStatement +* CONJ-489 - javax.transaction.xa.XAException message error truncated ( near '0x ) Task -*[CONJ-478] - Change CI tests to use maxscale 2.1 version -*[CONJ-482] - Connection.setNetworkTimeout don't throw exception if no executor -*[CONJ-488] - Use java.net.URL to read keyStore and trustStore again +* CONJ-478 - Change CI tests to use maxscale 2.1 version +* CONJ-482 - Connection.setNetworkTimeout don't throw exception if no executor +* CONJ-488 - Use java.net.URL to read keyStore and trustStore again + +## [2.0.1](https://github.com/MariaDB/mariadb-connector-j/tree/2.0.1) (10 May. 2017) +[Full Changelog](https://github.com/MariaDB/mariadb-connector-j/compare/2.0.0-RC...2.0.1) -== 2.0.1 * CONJ-467 - changing database metadata to 4.2 * CONJ-460 - Query that contain multiqueries with fetch and EOF deprecation failed * CONJ-464 - Using of "slowQueryThresholdNanos" option with value > Integer.MAX_VALUE results in class cast exception @@ -343,31 +398,27 @@ Task * CONJ-465 - new option "enablePacketDebug" New Options : - |=enablePacketDebug|Driver will save the last 16 MySQL packet exchanges (limited to first 1000 bytes).\\Hexadecimal value of those packet will be added to stacktrace when an IOException occur.\\This options has no performance incidence (< 1 microseconds per query) but driver will then take 16kb more memory.//Default: true. Since 1.6.0//| + |=enablePacketDebug|Driver will save the last 16 MySQL packet exchanges (limited to first 1000 bytes).
Hexadecimal value of those packet will be added to stacktrace when an IOException occur.
This options has no performance incidence (< 1 microseconds per query) but driver will then take 16kb more memory.//Default: true. Since 1.6.0//| * CONJ-468 - autoIncrementIncrement value loaded during connection, avoiding a query for first statement for rewrite -== 1.6.0 -version contain 2.0.0/2.0.1 evolutions, without the Java 8 part with java 8 temporal temporal object - - -== 2.0.0-RC +## [2.0.0-RC](https://github.com/MariaDB/mariadb-connector-j/tree/2.0.0-RC) (20 Apr. 2017) Release candidate version. Java 8 is now minimum required version. -=== CONJ-318 : Handle CLIENT_DEPRECATE_EOF flag +##= CONJ-318 : Handle CLIENT_DEPRECATE_EOF flag Implement some protocol changes that permit to save some bytes.(part of https://jira.mariadb.org/browse/MDEV-8931). -=== CONJ-341 : handle SERVER_SESSION_STATE_CHANGE status flag +##= CONJ-341 : handle SERVER_SESSION_STATE_CHANGE status flag With server with version MariaDB 10.2, MySQL 5.7, ensure driver state : - driver does now always get current database, even database is changed by query. - when using rewriteBatchedStatements does return correct autoincrement ids even when session variable @auto_increment_increment has change during session. -=== CONJ-393 : improve setQueryTimeout to use SET STATEMENT max_statement_time +##= CONJ-393 : improve setQueryTimeout to use SET STATEMENT max_statement_time Previous implementation of query timeout handling (using Statement.setQueryTimeout) will create an additional thread with a scheduler. When timeout is reached, a temporary connection will be created to permit executing "KILL QUERY ", then closing the temporary connection. @@ -375,31 +426,31 @@ When query ended before timeout, the scheduled task will be canceled. If server is > 10.1.2, query timeout will be handle server side using "SET MAX_STATEMENT_TIME FOR" command. -=== [CONJ-315] +##= [CONJ-315] Closing a Statement that was fetching a result-set (using Statement.setFetchSize) and all rows where not read at the time of closing, a kill query command will be executed on close, to avoid having to parse all remaining results. -=== [CONJ-442] +##= [CONJ-442] Memory optimization : streaming query. Very big command now doesn't use any intermediate buffer. Commands are send directly to socket avoiding using memory, This permit to send very large object (1G) without using any additional memory. -=== [CONJ-366] +##= [CONJ-366] Faster connection : bundle first commands in authentication packet Driver execute different command on connection. Those queries are now send using pipeline (all queries are send, then only all results are reads). New Options : |=usePipelineAuth|Fast connection creation.//Default: true. Since 2.0.0//| -=== [CONJ-368] +##= [CONJ-368] Parsing row result optimisation to avoid creating byte array to the maximum for faster results and less memory use. -=== Remaining JDBC 4.2 missing implementation : +##= Remaining JDBC 4.2 missing implementation : - CONJ-414 - support for large update count [CONJ-414] - CONJ-409 - PrepareStatement.setObject(...) support for with java 8 temporal temporal object. - CONJ-411 - support for Statement maxFieldSize -=== Misc +##= Misc * CONJ-443 - NullpointerException when making concurrent procedure calls * CONJ-391 - Improve connection using SELECT in place of SHOW to avoid creating a mutex server side. @@ -416,7 +467,7 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-449 - Permit CallableStatement streaming -== 1.5.9 +## 1.5.9 * CONJ-212 : Implement password encoding charset option * CONJ-423 : Permit to have MySQL driver and MariaDB driver in same classpath * CONJ-431 : multi-values queries return only one generated key @@ -428,7 +479,7 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-429 : ResultSet.getDouble/getFloat may throws a NumberFormatException * CONJ-438 : using option rewriteBatchedStatements, permit rewrite when query has column/table that contain 'select' keyword. -== 1.5.8 +## 1.5.8 * CONJ-424 : getGeneratedKeys() on table without generated key failed on second execution * CONJ-412 : Metadata take in account tinyInt1isBit in method columnTypeClause * CONJ-418 : ResultSet.last() isLast() afterLast() and isAfterLast() correction when streaming @@ -438,13 +489,13 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-426 : Allow executeBatch to be interrupted * CONJ-420 : High CPU usage against Aurora after 2 hours inactivity -== 1.5.7 +## 1.5.7 * CONJ-407 : handling failover when packet > max_allowed_packet reset the connection state. * CONJ-403 : possible NPE on ResultSet.close() correction * CONJ-405 : Calendar instance not cleared before being used in ResultSet.getTimestamp -== 1.5.6 +## 1.5.6 * CONJ-399 : resultSet getLong() for BIGINT column fails if value is Long.MIN_VALUE in Text protocol * CONJ-395 : Aurora does not randomise selection of read replicas * CONJ-392 : Aurora cluster endpoint detection timezone issue @@ -454,7 +505,7 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-391 : Use SELECT in place of SHOW command on connection * CONJ-396 : handling multiple resultSet correctly (was failing if more than 2) -== 1.5.5 +## 1.5.5 * CONJ-386 : Disabling useBatchMultiSend option for Aurora, since can hang connection. * CONJ-385 : Store procedure with resultSet get wrong getUpdateCount() value (0 in place of -1) * CONJ-383 : permit OldAuthSwitchRequest protocol (compatibility with 5.5 server using plugin) @@ -467,13 +518,13 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-369 : Encoding on clob column when useServerPrepStmts=true * CONJ-362 : fix a possible race condition MariaDbPooledConnection -== 1.5.4 +## 1.5.4 * CONJ-363 : Connection.getClientInfo implementation correction to follow JDBC rules * CONJ-361 : PrepareStatement setString() with empty string correction. * CONJ-360 : replacing ManagementFactory.getRuntimeMXBean() that cause possible slow connection depending on JVM / environment * CONJ-359 : Metadata getColumns(...) resultSet doesnt have "IS_GENERATEDCOLUMN" info -== 1.5.3 +## 1.5.3 * CONJ-358 : Permit using private key with password that differ from keyStore password * CONJ-356 : secure connection : use KeyStore private key and associate public keys certificates only * CONJ-342 : Empty clientCertificateKeyStoreUrl option correction @@ -483,7 +534,7 @@ Parsing row result optimisation to avoid creating byte array to the maximum for * CONJ-352 : metadata correction on getPrecision() for numeric fields * CONJ-350 : make prepare fallback to client prepare if query cannot be prepare -== 1.5.2 +## 1.5.2 Release version * CONJ-331 : clearWarnings() now throw exception on closed connection * CONJ-299 : PreparedStatement.setObject(Type.BIT, "1") registered as true. @@ -495,21 +546,21 @@ RC corrections * CONJ-332 : option enabledSslCipherSuites rely on java supportedCipherSuites (replacing enabledCipherSuites) * UTF-8 conversion correction -== 1.5.1 +## 1.5.1 Release candidate version -=== Evolution -==== Aurora host auto-discovery +### Evolution +#### Aurora host auto-discovery (CONJ-325) Aurora now auto discover nodes from cluster endpoint. -===== Aurora endpoints +##### Aurora endpoints Every aurora instance has a specific endpoint, i.e. an URL that identify the host. Those endpoints look like `xxx.yyy.zzz.rds.amazonaws.com`. There is another endpoint named "cluster endpoint" (format `xxx.cluster-yyy.zzz.rds.amazonaws.com`) which is assigned to the current master instance and will change when a new master is promoted. -In previous version, cluster endpoint use was discouraged, since when a failover occur, this cluster endpoint can point for a limited time to a host that isn't the current master anymore. Old recommandation was to list all specific end-points, like : \\ +In previous version, cluster endpoint use was discouraged, since when a failover occur, this cluster endpoint can point for a limited time to a host that isn't the current master anymore. Old recommandation was to list all specific end-points, like :
{{{ jdbc:mariadb:aurora://a.yyy.zzz.rds.amazonaws.com.com,b.yyy.zzz.rds.amazonaws.com.com/db }}} @@ -524,14 +575,14 @@ This discovery append at connection time, so if you are using pool framework, ch (If connections are never discarded, new replicas will begin be used only when a failover occur) -=== Bugfix +### Bugfix * CONJ-329 and CONJ-330 : rewriteBatchedStatements execute single query exceptions correction. -\\\\ +

-== 1.5.0 +## 1.5.0 Release candidate version -=== Use native SSPI windows implementation -CONJ-295.\\ +### Use native SSPI windows implementation +CONJ-295.
Java kerberos implementation is not well implemented with windows : * need a windows registry entry (HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Lsa\Kerberos\Parameters\AllowTGTSessionKey) so windows shared current ticket to java. @@ -539,20 +590,20 @@ Java kerberos implementation is not well implemented with windows : * restriction when client with local admin rights * ... -[[https://bugs.openjdk.java.net/browse/JDK-6722928|see openJDK issue]] for more informations +[see openJDK issue](https://bugs.openjdk.java.net/browse/JDK-6722928) for more informations -Kerberos GSSAPI implementation on windows in now based on [[https://github.com/dblock/waffle|Waffle]] that support windows SSPI based on [[https://github.com/java-native-access/jna|JNA]].\\ +Kerberos GSSAPI implementation on windows in now based on [Waffle](https://github.com/dblock/waffle) that support windows SSPI based on [JNA](https://github.com/java-native-access/jna).
if waffle-jna (and dependencies) is on classpath, native implementation will automatically be used. This removes all those problems -=== Support for TLSv1.1 and TLSv1.2 -CONJ-249/CONJ-301\\ +### Support for TLSv1.1 and TLSv1.2 +CONJ-249/CONJ-301
-Driver before version 1.5 support only TLSv1.\\ +Driver before version 1.5 support only TLSv1.
Default supported protocol are now TLSv1 and TLSv1.1, other protocols can be activated by options. -MariaDB and MySQL community server permit TLSv1 and TLSv1.1.\\ +MariaDB and MySQL community server permit TLSv1 and TLSv1.1.
MariaDB server from version 10.0.15 is using the openSSL library permitting TLSv1.2 (>= 5.5.41 for the 5.5 branch). //YaSSL doesn't support TLSv1.2, so if MariaDB server is build from sources with YaSSL, only TLSv1 and TLSv1.1 will be available, even for version > 10.0.15// @@ -561,11 +612,11 @@ TLSv1.2 can be enabled by setting option {{{enabledSslProtocolSuites}}} to value A new option {{{enabledSslCipherSuites}}} permit to set specific cipher. New Options : - |=enabledSslProtocolSuites|Force TLS/SSL protocol to a specific set of TLS versions (comma separated list). \\Example : "TLSv1, TLSv1.1, TLSv1.2"\\//Default: TLSv1, TLSv1.1. Since 1.5.0//| - |=enabledSslCipherSuites|Force TLS/SSL cipher (comma separated list).\\ Example : "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"\\//Default: use JRE ciphers. Since 1.5.0//| + |=enabledSslProtocolSuites|Force TLS/SSL protocol to a specific set of TLS versions (comma separated list).
Example : "TLSv1, TLSv1.1, TLSv1.2"
//Default: TLSv1, TLSv1.1. Since 1.5.0//| + |=enabledSslCipherSuites|Force TLS/SSL cipher (comma separated list).
Example : "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, TLS_DHE_DSS_WITH_AES_256_GCM_SHA384"
//Default: use JRE ciphers. Since 1.5.0//| -=== Performance improvement -[CONJ-291]\\ +### Performance improvement +[CONJ-291]
Different performance improvement have been done : * Using PreparedStatement on client side use a simple query parser to identify query parameters. This parsing was taking up to 7% of query time, reduced to 3%. @@ -581,9 +632,9 @@ Basically that permit to avoid a lot of 'ping-pong' between driver and server. New Options : |=useBatchMultiSend|PreparedStatement.executeBatch() will send many QUERY before reading result packets.//Default: true. Since 1.5.0//| - |=useBatchMultiSendNumber|When using useBatchMultiSend, indicate maximum query that can be send at a time.\\//Default: 100. Since 1.5.0//| + |=useBatchMultiSendNumber|When using useBatchMultiSend, indicate maximum query that can be send at a time.
//Default: 100. Since 1.5.0//| -=== Prepare + execute in one call +### Prepare + execute in one call CONJ-296 When using MySQL/MariaDB prepared statement, there will be 3 exchanges with server : @@ -591,32 +642,33 @@ When using MySQL/MariaDB prepared statement, there will be 3 exchanges with serv * EXECUTE - Executes a prepared statement preparing by a PREPARE statement. * DEALLOCATE PREPARE - Releases a prepared statement. -See [[https://mariadb.com/kb/en/mariadb/prepare-statement/|Server prepare documentation]] for more information. +See [Server prepare documentation](https://mariadb.com/kb/en/mariadb/prepare-statement/) for more + information. PREPARE and DEALLOCATE PREPARE are 2 additional client-server round-trip. Since MariaDB 10.2, a new functionality named COM-MULTI to permitting to send different task to server in one round-trip. Driver is using this functionality to PREPARE and EXECUTE in one client-server round-trip. -=== Client logging +### Client logging Client logging can be enable, permitting to log query information, execution time and different failover information. This implementation need the standard SLF4J dependency. New Options : - |=log|Enable log information. require Slf4j version > 1.4 dependency.\\//Default: false. Since 1.5.0//| - |=maxQuerySizeToLog|Only the first characters corresponding to this options size will be displayed in logs\\//Default: 1024. Since 1.5.0//| - |=slowQueryThresholdNanos|Will log query with execution time superior to this value (if defined )\\//Default: 1024. Since 1.5.0//| - |=profileSql|log query execution time.\\//Default: false. Since 1.5.0//| + |=log|Enable log information. require Slf4j version > 1.4 dependency.
//Default: false. Since 1.5.0//| + |=maxQuerySizeToLog|Only the first characters corresponding to this options size will be displayed in logs
//Default: 1024. Since 1.5.0//| + |=slowQueryThresholdNanos|Will log query with execution time superior to this value (if defined )
//Default: 1024. Since 1.5.0//| + |=profileSql|log query execution time.
//Default: false. Since 1.5.0//| -=== "LOAD DATA INFILE" Interceptors +### "LOAD DATA INFILE" Interceptors CONJ-305 -LOAD DATA INFILE The fastest way to load many datas is using query [[https://mariadb.com/kb/en/mariadb/load-data-infile/|LOAD DATA INFILE]]. -\\Problem is using "LOAD DATA LOCAL INFILE" (ie : loading a file from client), may be a security problem : +LOAD DATA INFILE The fastest way to load many datas is using query [LOAD DATA INFILE](https://mariadb.com/kb/en/mariadb/load-data-infile/). +
Problem is using "LOAD DATA LOCAL INFILE" (ie : loading a file from client), may be a security problem : * A "man in the middle" proxy server can change the actual file asked from server so client will send a Local file to this proxy. * If someone has can execute query from client, he can have access to any file on client (according to the rights of the user running the client process). -See [[./use-mariadb-connector-j-driver.creole#load-data-infile|load-data-infile documentation]] for more information. +See [load-data-infile documentation](./documentation/use-mariadb-connector-j-driver.creole#load-data-infile) for more information. Interceptors can now filter LOAD DATA LOCAL INFILE query's file location to validate path / file name. Those interceptors: @@ -656,71 +708,71 @@ public class LocalInfileInterceptorImpl implements LocalInfileInterceptor { -=== Minor evolution +### Minor evolution * CONJ-260 : Add jdbc nString, nCharacterStream, nClob implementation -=== Bugfix +### Bugfix * CONJ-316 : Wrong Exception thrown for ScrollType TYPE_SCROLL_INSENSITIVE * CONJ-298 : Error on Callable function exception when no parameter and space before parenthesis * CONJ-314 : Permit using Call with Statement / Prepare Statement -\\\\\\ -== 1.4.6 -* [CONJ-293] Permit named pipe connection without host -* [CONJ-309] Possible NPE on aurora when failover occur during connection initialisation -* [CONJ-312] NPE while loading a null from TIMESTAMP field using binary protocol -* [misc] batch with one parameter correction (using rewriteBatchedStatements option) +


+## 1.4.6 +* CONJ-293] Permit named pipe connection without host +* CONJ-309] Possible NPE on aurora when failover occur during connection initialisation +* CONJ-312] NPE while loading a null from TIMESTAMP field using binary protocol +* misc] batch with one parameter correction (using rewriteBatchedStatements option) -== 1.4.5 -* [CONJ-297] Useless memory consumption when using Statement.setQueryTimeout -* [CONJ-294] PrepareStatement on master reconnection after a failover -* [CONJ-288] using SHOW VARIABLES to replace SELECT on connection to permit connection on a galera non primary node -* [CONJ-290] Timestamps format error when using prepareStatement with options useFractionalSeconds and useServerPrepStmts +## 1.4.5 +* CONJ-297] Useless memory consumption when using Statement.setQueryTimeout +* CONJ-294] PrepareStatement on master reconnection after a failover +* CONJ-288] using SHOW VARIABLES to replace SELECT on connection to permit connection on a galera non primary node +* CONJ-290] Timestamps format error when using prepareStatement with options useFractionalSeconds and useServerPrepStmts -== 1.4.4 -* [CONJ-289] PrepareStatement on master reconnection after a failover -* [CONJ-288] using SHOW VARIABLES to replace SELECT on connection to permit connection on a galera non primary node +## 1.4.4 +* CONJ-289] PrepareStatement on master reconnection after a failover +* CONJ-288] using SHOW VARIABLES to replace SELECT on connection to permit connection on a galera non primary node -== 1.4.3 +## 1.4.3 -* [CONJ-284] Cannot read autoincremented IDs bigger than Short.MAX_VALUE -* [CONJ-283] Parsing correction on MariaDbClientPreparedStatement - syntax error on insert values -* [CONJ-282] Handling YEARs with binary prepareStatement -* [CONJ-281] Connector/J is incompatible with Google App Engine correction -* [CONJ-278] Improve prepared statement on failover +* CONJ-284] Cannot read autoincremented IDs bigger than Short.MAX_VALUE +* CONJ-283] Parsing correction on MariaDbClientPreparedStatement - syntax error on insert values +* CONJ-282] Handling YEARs with binary prepareStatement +* CONJ-281] Connector/J is incompatible with Google App Engine correction +* CONJ-278] Improve prepared statement on failover -== 1.4.2 +## 1.4.2 -* [CONJ-275] Streaming result without result throw "Current position is before the first row" +* CONJ-275] Streaming result without result throw "Current position is before the first row" -== 1.4.1 +## 1.4.1 -* [CONJ-274] correction to permit connection to MySQL 5.1 server -* [CONJ-273] correction when using prepareStatement without parameters and option rewriteBatchedStatements to true -* [CONJ-270] permit 65535 parameters to server preparedStatement -* [CONJ-268] update license header -* [misc] when option rewriteBatchedStatements is set to true, correction of packet separation when query size > max_allow_packet -* [misc] performance improvement for select result. +* CONJ-274] correction to permit connection to MySQL 5.1 server +* CONJ-273] correction when using prepareStatement without parameters and option rewriteBatchedStatements to true +* CONJ-270] permit 65535 parameters to server preparedStatement +* CONJ-268] update license header +* misc] when option rewriteBatchedStatements is set to true, correction of packet separation when query size > max_allow_packet +* misc] performance improvement for select result. -== 1.4.0 +## 1.4.0 -=== Complete implementation of fetch size. +### Complete implementation of fetch size. CONJ-26 JDBC allows to specify the number of rows fetched for a query, and this number is referred to as the fetch size Before version 1.4.0, query were loading all results or row by row using Statement.setFetchSize(Integer.MIN_VALUE). Now it's possible to set fetch size according to your need. Loading all results for large result sets is using a lot of memory. This functionality permit to save memory without having performance decrease. -=== Memory footprint improvement +### Memory footprint improvement CONJ-125 Buffers have been optimized to reduced memory footprint -=== CallableStatement performance improvement. +### CallableStatement performance improvement. CONJ-209 Calling function / procedure performance is now optimized according to query. Depending on queries, difference can be up to 300%. -=== Authentication evolution +### Authentication evolution CONJ-251 Permit now new authentication possibility : [[https://mariadb.com/kb/en/mariadb/pam-authentication-plugin/|PAM authentication]], and GSSAPI/SSPI authentication. GSSAPI/SSPI authentication authentication plugin for MariaDB permit a passwordless login. @@ -728,7 +780,7 @@ GSSAPI/SSPI authentication authentication plugin for MariaDB permit a passwordle On Unix systems, GSSAPI is usually synonymous with Kerberos authentication. Windows has slightly different but very similar API called SSPI, that along with Kerberos, also supports NTLM authentication. See more detail in [[https://github.com/MariaDB/mariadb-connector-j/blob/master/documentation/plugin/GSSAPI|GSSAPI/SSPI configuration]] -=== Connection attributes +### Connection attributes CONJ-217 Driver information informations are now send to [[https://mariadb.com/kb/en/mariadb/performance-schema-session_connect_attrs-table/|connection attributes tables]] (performance_schema must be activated). A new option "connectionAttributes" permit to add client specifics data. @@ -753,12 +805,12 @@ select * from performance_schema.session_connect_attrs where processList_id = 5 }}} -== Minor evolution +## Minor evolution * CONJ-210 : adding a "jdbcCompliantTruncation" option to force truncation warning as SQLException. * CONJ-211 : when in master/slave configuration, option "assureReadOnly" will ensure that slaves are in read-only mode ( forcing transaction by a query "SET SESSION TRANSACTION READ ONLY"). * CONJ-213 : new option "continueBatchOnError". Permit to continue batch when an exception occur : When executing a batch and an error occur, must the batch stop immediatly (default) or finish remaining batch before throwing exception. -== Bugfix +## Bugfix * CONJ-236 : Using a parametrized query with a smallint -1 does return the unsigned value * CONJ-250 : Tomcat doesn't stop when using Aurora failover configuration * CONJ-260 : Add jdbc nString, nCharacterStream, nClob implementation diff --git a/README.md b/README.md index ad182d2fe..058e326b1 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Tracker link https://ji |:------------:|:-------------------------:| | 6 | 1.7.4 | | 7 | 1.7.4 | -| 8+ | 2.5.1 | +| 8+ | 2.5.2 | The driver (jar) can be downloaded from [mariadb connector download](https://mariadb.com/products/connectors-plugins) or maven : @@ -59,7 +59,7 @@ Development snapshot are available on sonatype nexus repository For a Getting started guide, API docs, recipes, etc. see the * [About MariaDB connector/J](/documentation/about-mariadb-connector-j.creole) * [Use MariaDB connector/j driver](/documentation/use-mariadb-connector-j-driver.creole) -* [Changelog](/documentation/changelog.creole) +* [Changelog](/CHANGELOG.md) * [Failover and high-availability](/documentation/failover-and-high-availability-with-mariadb-connector-j.creole) diff --git a/pom.xml b/pom.xml index a0324e92e..26b6c7054 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ mariadb-java-client jar mariadb-java-client - 2.5.2-SNAPSHOT + 2.5.2 JDBC driver for MariaDB and MySQL https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/ @@ -74,7 +74,7 @@ 2 5 2 - -SNAPSHOT + diff --git a/src/main/java/org/mariadb/jdbc/internal/util/constant/Version.java b/src/main/java/org/mariadb/jdbc/internal/util/constant/Version.java index 31ae292e9..2320f7bda 100644 --- a/src/main/java/org/mariadb/jdbc/internal/util/constant/Version.java +++ b/src/main/java/org/mariadb/jdbc/internal/util/constant/Version.java @@ -53,9 +53,9 @@ package org.mariadb.jdbc.internal.util.constant; public final class Version { - public static final String version = "2.5.2-SNAPSHOT"; + public static final String version = "2.5.2"; public static final int majorVersion = 2; public static final int minorVersion = 5; public static final int patchVersion = 2; - public static final String qualifier = "-SNAPSHOT"; + public static final String qualifier = ""; }