-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45034 from gsmet/revert-mariadb-upgrade
Revert MariaDB driver to 3.4.1
- Loading branch information
Showing
3 changed files
with
22 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...in/java/io/quarkus/jdbc/mariadb/runtime/graal/SendPamAuthPacketFactory_Substitutions.java
This file was deleted.
Oops, something went wrong.
28 changes: 21 additions & 7 deletions
28
.../src/main/java/io/quarkus/jdbc/mariadb/runtime/graal/SendPamAuthPacket_Substitutions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} |