From 87e79e0f655bc3eb3af7153417db1670b5b18f2e Mon Sep 17 00:00:00 2001 From: rusher Date: Fri, 13 Dec 2019 10:22:14 +0100 Subject: [PATCH] [CONJ-750] protocol error when not setting database, indicating null authentication plugin --- .../jdbc/internal/com/send/SendHandshakeResponsePacket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mariadb/jdbc/internal/com/send/SendHandshakeResponsePacket.java b/src/main/java/org/mariadb/jdbc/internal/com/send/SendHandshakeResponsePacket.java index b776260a9..e3de8f684 100644 --- a/src/main/java/org/mariadb/jdbc/internal/com/send/SendHandshakeResponsePacket.java +++ b/src/main/java/org/mariadb/jdbc/internal/com/send/SendHandshakeResponsePacket.java @@ -173,7 +173,7 @@ public static void send( pos.write((byte) 0); } - if ((serverCapabilities & MariaDbServerCapabilities.CONNECT_WITH_DB) != 0) { + if ((clientCapabilities & MariaDbServerCapabilities.CONNECT_WITH_DB) != 0) { pos.write(database); pos.write((byte) 0); }