Skip to content

Commit

Permalink
build(deps-dev): bump org.mariadb.jdbc:mariadb-java-client from 3.3.3…
Browse files Browse the repository at this point in the history
… to 3.5.1 (#533)

* build(deps-dev): bump org.mariadb.jdbc:mariadb-java-client

Bumps [org.mariadb.jdbc:mariadb-java-client](https://github.com/mariadb-corporation/mariadb-connector-j) from 3.3.3 to 3.5.1.
- [Release notes](https://github.com/mariadb-corporation/mariadb-connector-j/releases)
- [Changelog](https://github.com/mariadb-corporation/mariadb-connector-j/blob/master/CHANGELOG.md)
- [Commits](mariadb-corporation/mariadb-connector-j@3.3.3...3.5.1)

---
updated-dependencies:
- dependency-name: org.mariadb.jdbc:mariadb-java-client
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix MockedMariaDbConnection after upgrade

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Dangel <[email protected]>
  • Loading branch information
dependabot[bot] and adangel authored Dec 19, 2024
1 parent f37605f commit 6801439
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 11 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<java.version>1.8</java.version>
<liquibase.version>4.30.0</liquibase.version>
<mysql.connector.version>9.1.0</mysql.connector.version>
<mariadb.connector.version>3.3.3</mariadb.connector.version>
<mariadb.connector.version>3.5.1</mariadb.connector.version>
<percona.toolkit.version>3.6.0</percona.toolkit.version>

<config_host>127.0.0.1</config_host>
Expand Down
58 changes: 48 additions & 10 deletions src/test/java/liquibase/ext/percona/MockedMariaDbConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@
*/

import java.sql.SQLException;
import java.util.Calendar;
import java.util.List;
import java.util.TimeZone;
import java.util.concurrent.Executor;
import java.util.function.Function;

import org.mariadb.jdbc.BasePreparedStatement;
import org.mariadb.jdbc.Configuration;
import org.mariadb.jdbc.Connection;
import org.mariadb.jdbc.HostAddress;
Expand All @@ -27,7 +30,6 @@
import org.mariadb.jdbc.client.ColumnDecoder;
import org.mariadb.jdbc.client.Completion;
import org.mariadb.jdbc.client.Context;
import org.mariadb.jdbc.client.PrepareCache;
import org.mariadb.jdbc.client.ReadableByteBuf;
import org.mariadb.jdbc.client.ServerVersion;
import org.mariadb.jdbc.export.ExceptionFactory;
Expand Down Expand Up @@ -151,16 +153,17 @@ public Configuration getConf() {
}

@Override
public ServerVersion getVersion() {
return new ServerVersionUtility("0", false);
public boolean canUseTransactionIsolation() {
return false;
}

@Override
public void setWarning(int warning) {
public ServerVersion getVersion() {
return new ServerVersionUtility("0", false);
}

@Override
public void setTransactionIsolationLevel(int transactionIsolationLevel) {
public void setWarning(int warning) {
}

@Override
Expand Down Expand Up @@ -194,6 +197,21 @@ public Integer getTransactionIsolationLevel() {
return 0;
}

@Override
public void setTransactionIsolationLevel(Integer transactionIsolationLevel) {

}

@Override
public Prepare getPrepareCacheCmd(String sql, BasePreparedStatement preparedStatement) {
return null;
}

@Override
public Prepare putPrepareCacheCmd(String sql, Prepare result, BasePreparedStatement preparedStatement) {
return null;
}

@Override
public long getThreadId() {
return 0;
Expand Down Expand Up @@ -224,11 +242,6 @@ public boolean hasClientCapability(long l) {
return false;
}

@Override
public PrepareCache getPrepareCache() {
return null;
}

@Override
public ExceptionFactory getExceptionFactory() {
return null;
Expand Down Expand Up @@ -258,6 +271,21 @@ public void setCharset(String s) {

}

@Override
public TimeZone getConnectionTimeZone() {
return null;
}

@Override
public void setConnectionTimeZone(TimeZone connectionTimeZone) {

}

@Override
public Calendar getDefaultCalendar() {
return null;
}

@Override
public void setThreadId(long l) {

Expand All @@ -283,6 +311,16 @@ public void setAutoIncrement(long l) {

}

@Override
public void setRedirectUrl(String redirectUrl) {

}

@Override
public String getRedirectUrl() {
return "";
}

@Override
public Long getAutoIncrement() {
return null;
Expand Down

0 comments on commit 6801439

Please sign in to comment.