Kaydet (Commit) 80c23551 authored tarafından Lionel Elie Mamane's avatar Lionel Elie Mamane

fdo#46843 look for order by clause as fifth child of select_statement

Since commit 33b9b857 (dba34c: #i20306# support for window function and limit fetch first, ... added), order by is the fifth child. It was the fourth one before.
üst 66d532fc
...@@ -2319,9 +2319,9 @@ namespace ...@@ -2319,9 +2319,9 @@ namespace
const ::connectivity::OSQLParseNode* pParseRoot ) const ::connectivity::OSQLParseNode* pParseRoot )
{ {
SqlParseError eErrorCode = eOk; SqlParseError eErrorCode = eOk;
if (!pParseRoot->getChild(3)->getChild(4)->isLeaf()) if (!pParseRoot->getChild(3)->getChild(5)->isLeaf())
{ {
::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(4)->getChild(2); ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(5)->getChild(2);
::connectivity::OSQLParseNode* pParamRef = NULL; ::connectivity::OSQLParseNode* pParamRef = NULL;
OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); OQueryController& rController = static_cast<OQueryController&>(_pView->getController());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment