Skip to content

Commit

Permalink
Fix SQL Bridge when rewriting OpOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamtriggs committed Feb 20, 2019
1 parent 5c9d268 commit d751b74
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ public Op transform(OpOrder opOrder, Op subOp)
if (orderInSQL) {
OpSQL opSQL = (OpSQL) subOp;
SqlNode node = SqlSelectBlock.order(request, opSQL.getSqlNode(), opOrder.getConditions());
return new OpSQL(node, opSQL, request) ;
OpSQL x = new OpSQL(node, opSQL, request) ;
x.setBridge(opSQL.getBridge()) ;
return x;
}

return super.transform(opOrder, subOp) ;
Expand Down

0 comments on commit d751b74

Please sign in to comment.