Skip to content

Commit

Permalink
[misc] second merge correction
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Mar 31, 2016
1 parent cd11a81 commit 2651df1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ private void authentication(byte serverLanguage, int clientCapabilities, byte[]
cap.send(writer);
Buffer buffer = packetFetcher.getPacket();

if ((buffer.getByteAt(0) & 0xFF) == Packet.EOF) {
if ((buffer.getByteAt(0) & 0xFF) == 0xFE) {
InterfaceAuthSwitchSendResponsePacket interfaceSendPacket;
if ((serverCapabilities & MariaDbServerCapabilities.PLUGIN_AUTH) != 0) {
//AuthSwitchRequest packet.
Expand Down Expand Up @@ -515,8 +515,9 @@ private int initializeClientCapabilities() {
| MariaDbServerCapabilities.MULTI_RESULTS
| MariaDbServerCapabilities.PS_MULTI_RESULTS
| MariaDbServerCapabilities.FOUND_ROWS
| MariaDbServerCapabilities.CONNECT_ATTRS;

| MariaDbServerCapabilities.PLUGIN_AUTH
| MariaDbServerCapabilities.CONNECT_ATTRS
| MariaDbServerCapabilities.PLUGIN_AUTH_LENENC_CLIENT_DATA;

if (options.allowMultiQueries || (options.rewriteBatchedStatements)) {
capabilities |= MariaDbServerCapabilities.MULTI_STATEMENTS;
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/mariadb/jdbc/ResultSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void isBeforeFirstFetchTest() throws SQLException {
statement.setFetchSize(1);
ResultSet resultSet = statement.executeQuery("SELECT * FROM result_set_test");
Assert.assertTrue(resultSet.isBeforeFirst());
while(resultSet.next()) {
while (resultSet.next()) {
Assert.assertFalse(resultSet.isBeforeFirst());
}
Assert.assertFalse(resultSet.isBeforeFirst());
Expand Down

0 comments on commit 2651df1

Please sign in to comment.