Skip to content

Commit

Permalink
[CONJ-750] protocol error when not setting database, indicating null …
Browse files Browse the repository at this point in the history
…authentication plugin
  • Loading branch information
rusher committed Dec 13, 2019
1 parent e2e6c24 commit 87e79e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 87e79e0

Please sign in to comment.