Skip to content

Commit

Permalink
Merge pull request #375 from liquibase/dependabot/maven/org.mariadb.j…
Browse files Browse the repository at this point in the history
…dbc-mariadb-java-client-3.3.0

Bump org.mariadb.jdbc:mariadb-java-client from 3.2.0 to 3.3.3
  • Loading branch information
adangel authored Mar 23, 2024
2 parents fa4dd84 + d9f2c31 commit a4bd5d6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
12 changes: 10 additions & 2 deletions 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.26.0</liquibase.version>
<mysql.connector.version>8.3.0</mysql.connector.version>
<mariadb.connector.version>3.2.0</mariadb.connector.version>
<mariadb.connector.version>3.3.3</mariadb.connector.version>
<percona.toolkit.version>3.5.5</percona.toolkit.version>

<config_host>127.0.0.1</config_host>
Expand Down Expand Up @@ -362,6 +362,14 @@
</snapshotRepository>
</distributionManagement>

<repositories>
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>

<profiles>
<profile>
<id>coverage</id>
Expand Down Expand Up @@ -708,4 +716,4 @@
</repositories>
</profile>
</profiles>
</project>
</project>
28 changes: 23 additions & 5 deletions src/test/java/liquibase/ext/percona/MockedMariaDbConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@
import java.sql.SQLException;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.function.Function;

import org.mariadb.jdbc.Configuration;
import org.mariadb.jdbc.Connection;
import org.mariadb.jdbc.HostAddress;
import org.mariadb.jdbc.Statement;
import org.mariadb.jdbc.client.Client;
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;
import org.mariadb.jdbc.export.Prepare;
Expand Down Expand Up @@ -128,6 +131,11 @@ public boolean isPrimary() {
public HostAddress getHostAddress() {
return null;
}

@Override
public String getSocketIp() {
return null;
}
}

private static class MockedContext implements Context {
Expand Down Expand Up @@ -171,11 +179,6 @@ public void resetStateFlag() {
public void resetPrepareCache() {
}

@Override
public boolean isExtendedInfo() {
return false;
}

@Override
public boolean isEofDeprecated() {
return false;
Expand Down Expand Up @@ -241,6 +244,11 @@ public boolean canSkipMeta() {
return false;
}

@Override
public Function<ReadableByteBuf, ColumnDecoder> getColumnDecoderFunction() {
return null;
}

@Override
public void addStateFlag(int state) {
}
Expand Down Expand Up @@ -269,5 +277,15 @@ public String getCharset() {
public boolean permitPipeline() {
return false;
}

@Override
public void setAutoIncrement(long l) {

}

@Override
public Long getAutoIncrement() {
return null;
}
}
}

0 comments on commit a4bd5d6

Please sign in to comment.