Skip to content

Commit

Permalink
Merge pull request #45034 from gsmet/revert-mariadb-upgrade
Browse files Browse the repository at this point in the history
Revert MariaDB driver to 3.4.1
  • Loading branch information
yrodiere authored Dec 11, 2024
2 parents 98a9361 + 1b2e53b commit 46ac878
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 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.1</mariadb-jdbc.version>
<mariadb-jdbc.version>3.4.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

This file was deleted.

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

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

import com.oracle.svm.core.annotate.Delete;
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.TargetClass;

/**
* The SendPamAuthPacket class is not supported in native mode.
*/
@Delete
@TargetClass(SendPamAuthPacket.class)
@TargetClass(className = "org.mariadb.jdbc.plugin.authentication.standard.SendPamAuthPacket")
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 46ac878

Please sign in to comment.