Skip to content

Commit

Permalink
fix subquery and quer with limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wlx5575 committed Aug 2, 2023
1 parent 5ecd284 commit 28eb762
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/com/jd/jdbc/engine/PulloutSubqueryEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ public IExecute.ExecuteMultiShardResponse execute(IContext ctx, Vcursor vcursor,
* @return
*/
private BindVarsResponse execSubqery(IContext ctx, Vcursor vcursor, Map<String, BindVariable> bindVariableMap, boolean wantFields) throws SQLException {
IExecute.ExecuteMultiShardResponse subResultSet = this.subquery.execute(ctx, vcursor, bindVariableMap, wantFields);

Map<String, BindVariable> subBindVarMap = bindVariableMap;
if (bindVariableMap != null) {
subBindVarMap = new HashMap<>(bindVariableMap);
}
IExecute.ExecuteMultiShardResponse subResultSet = this.subquery.execute(ctx, vcursor, subBindVarMap, wantFields);
if (subResultSet.getVtRowList() == null) {
throw new SQLException("VtRowList is null");
}
Expand Down

0 comments on commit 28eb762

Please sign in to comment.