Skip to content

Commit

Permalink
for apache#675 refine
Browse files Browse the repository at this point in the history
  • Loading branch information
tuohai666 committed Apr 24, 2018
1 parent 5fc3efc commit f2434d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private CommandResponsePackets merge(final SQLStatement sqlStatement, final List
return mergeDML(headPackets);
}
if (SQLType.DQL == sqlStatement.getType()) {
return mergeDQLorDAL(sqlStatement, packets);
return mergeDQL(sqlStatement, packets);
}
return packets.get(0);
}
Expand All @@ -244,7 +244,7 @@ private CommandResponsePackets mergeDML(final CommandResponsePackets firstPacket
return new CommandResponsePackets(new OKPacket(1, affectedRows, 0, StatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue(), 0, ""));
}

private CommandResponsePackets mergeDQLorDAL(final SQLStatement sqlStatement, final List<CommandResponsePackets> packets) {
private CommandResponsePackets mergeDQL(final SQLStatement sqlStatement, final List<CommandResponsePackets> packets) {
List<QueryResult> queryResults = new ArrayList<>(packets.size());
for (int i = 0; i < packets.size(); i++) {
// TODO replace to a common PacketQueryResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ private CommandResponsePackets merge(final SQLStatement sqlStatement, final List
return mergeDML(headPackets);
}
if (SQLType.DQL == sqlStatement.getType()) {
return mergeDQLorDAL(sqlStatement, packets);
return mergeDQL(sqlStatement, packets);
}
return packets.get(0);
}
Expand All @@ -282,7 +282,7 @@ private CommandResponsePackets mergeDML(final CommandResponsePackets firstPacket
return new CommandResponsePackets(new OKPacket(1, affectedRows, 0, StatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue(), 0, ""));
}

private CommandResponsePackets mergeDQLorDAL(final SQLStatement sqlStatement, final List<CommandResponsePackets> packets) {
private CommandResponsePackets mergeDQL(final SQLStatement sqlStatement, final List<CommandResponsePackets> packets) {
List<QueryResult> queryResults = new ArrayList<>(packets.size());
for (int i = 0; i < packets.size(); i++) {
// TODO replace to a common PacketQueryResult
Expand Down

0 comments on commit f2434d3

Please sign in to comment.