Skip to content

Commit

Permalink
Merge pull request #44605 from quarkusio/dependabot/maven/org.mariadb…
Browse files Browse the repository at this point in the history
….jdbc-mariadb-java-client-3.5.1

Bump org.mariadb.jdbc:mariadb-java-client from 3.5.0 to 3.5.1
  • Loading branch information
gsmet authored Nov 26, 2024
2 parents b3143cc + fec0f50 commit 30859cc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<h2.version>2.3.230</h2.version> <!-- When updating, needs to be matched in io.quarkus.hibernate.orm.runtime.config.DialectVersions
and the dependency jts-core needs to be updated in extensions/jdbc/jdbc-h2/runtime/pom.xml -->
<postgresql-jdbc.version>42.7.4</postgresql-jdbc.version>
<mariadb-jdbc.version>3.5.0</mariadb-jdbc.version>
<mariadb-jdbc.version>3.5.1</mariadb-jdbc.version>
<mysql-jdbc.version>8.3.0</mysql-jdbc.version>
<mssql-jdbc.version>12.8.1.jre11</mssql-jdbc.version>
<adal4j.version>1.6.7</adal4j.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.quarkus.jdbc.mariadb.runtime.graal;

import org.mariadb.jdbc.Configuration;
import org.mariadb.jdbc.HostAddress;
import org.mariadb.jdbc.plugin.AuthenticationPlugin;
import org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacketFactory;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

/**
* The SendPamAuthPacketFactory class is not supported in native mode.
*/
@TargetClass(SendPamAuthPacketFactory.class)
public final class SendPamAuthPacketFactory_Substitutions {

@Substitute
public AuthenticationPlugin initialize(String authenticationData, byte[] seed, Configuration conf,
HostAddress hostAddress) {
throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM");
}

}
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
package io.quarkus.jdbc.mariadb.runtime.graal;

import java.io.IOException;
import java.sql.SQLException;
import org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket;

import org.mariadb.jdbc.Configuration;
import org.mariadb.jdbc.HostAddress;
import org.mariadb.jdbc.client.Context;
import org.mariadb.jdbc.client.ReadableByteBuf;
import org.mariadb.jdbc.client.socket.Reader;
import org.mariadb.jdbc.client.socket.Writer;

import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.TargetClass;

@TargetClass(className = "org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket")
/**
* The SendPamAuthPacket class is not supported in native mode.
*/
@Delete
@TargetClass(SendPamAuthPacket.class)
public final class SendPamAuthPacket_Substitutions {

@Substitute
public void initialize(String authenticationData, byte[] seed, Configuration conf, HostAddress hostAddress) {
throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM");
}

@Substitute
public ReadableByteBuf process(Writer out, Reader in, Context context)
throws SQLException, IOException {
throw new UnsupportedOperationException("Authentication strategy 'dialog' is not supported in GraalVM");
}
}

0 comments on commit 30859cc

Please sign in to comment.