Skip to content

Commit

Permalink
bump 3.0.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Mar 18, 2022
1 parent 815e9ce commit de7d850
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
# Change Log
## [3.0.4](https://github.com/mariadb-corporation/mariadb-connector-j/tree/3.0.4) (Mar 2022)
[Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/compare/3.0.3...3.0.4)

* [CONJ-915] javadoc addition
* [CONJ-921] DatabaseMetadata#getTables with null value for tableNamePattern throws Syntax error
* [CONJ-922] DECIMAL overflow for long/int/short not throwing exception
* [CONJ-924] NULL column type might result in java.lang.IllegalArgumentException: Unexpected datatype NULL
* [CONJ-926] Client restrict authentication to 'mysql_native_password,client_ed25519,auth_gssapi_client' if restrictedAuth parameter is not set
* [CONJ-924] NULL column test correction
* [CONJ-923] correctly return 64 bits generated id / updated rows
* [CONJ-933] load-balancing failover doesn't timeout
* [CONJ-935] Connection.getMetaData() returns MariaDbClob instead of String
* [CONJ-937] metadata getColumnTypeName wrong return type
* [CONJ-934] MariaDbDataSource is sensitive to the order of setting of username and password
* [CONJ-932] Login packet now use recommended length encoded value for connection attributes
* [CONJ-925] missing OSGI infos
* [CONJ-945] ensure retry is limited by retriesAllDown
* [CONJ-940] Permit updating rows when not having primary info on metadata (Xpand)
* [CONJ-939] add Xpand testing


## [3.0.3](https://github.com/mariadb-corporation/mariadb-connector-j/tree/3.0.3) (Jan 2022)
[Full Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/compare/3.0.2-rc...3.0.3)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ or maven :
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.0.3</version>
<version>3.0.4</version>
</dependency>
```

Expand All @@ -46,7 +46,7 @@ Development snapshot are available on sonatype nexus repository
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.0.4-SNAPSHOT</version>
<version>3.0.5-SNAPSHOT</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>mariadb-java-client</artifactId>
<packaging>jar</packaging>
<name>mariadb-java-client</name>
<version>3.0.4-SNAPSHOT</version>
<version>3.0.4</version>
<description>JDBC driver for MariaDB and MySQL</description>
<url>https://mariadb.com/kb/en/mariadb/about-mariadb-connector-j/</url>

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/mariadb/jdbc/FunctionStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ protected void executeInternal() throws SQLException {
super.executeInternal();
}

/**
* Ensures that returning value is not taken as a parameter.
*
* @throws SQLException if any exception
*/
protected void preValidParameters() throws SQLException {
// remove first parameter, as it's an output param only
Parameters newParameters = new ParameterList(parameters.size() - 1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ public void masterFailover() throws Exception {
try (Connection con =
(Connection)
DriverManager.getConnection(
url
+ "&retriesAllDown=4&connectTimeout=20&deniedListTimeout=20")) {
url + "&retriesAllDown=4&connectTimeout=20&deniedListTimeout=20")) {
Statement stmt = con.createStatement();
con.setAutoCommit(false);
stmt.execute("START TRANSACTION");
Expand Down

0 comments on commit de7d850

Please sign in to comment.