We don't need to PartiallyEvaluateExpression on original limit/offset

pull/3746/head
Philip Dubé 2020-04-14 20:19:41 +00:00
parent 3d5660cb3f
commit 0f3531faea
1 changed files with 0 additions and 4 deletions

View File

@ -1665,10 +1665,6 @@ SubqueryPushdownMultiNodeTree(Query *originalQuery)
* expression on the LIMIT and OFFSET clauses. Note that logical optimizer * expression on the LIMIT and OFFSET clauses. Note that logical optimizer
* expects those clauses to be already evaluated. * expects those clauses to be already evaluated.
*/ */
extendedOpNode->originalLimitCount =
PartiallyEvaluateExpression(extendedOpNode->originalLimitCount, NULL);
extendedOpNode->originalLimitOffset =
PartiallyEvaluateExpression(extendedOpNode->originalLimitOffset, NULL);
extendedOpNode->limitCount = extendedOpNode->limitCount =
PartiallyEvaluateExpression(extendedOpNode->limitCount, NULL); PartiallyEvaluateExpression(extendedOpNode->limitCount, NULL);
extendedOpNode->limitOffset = extendedOpNode->limitOffset =