diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-03-15 11:22:32 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-03-15 18:37:01 +0100 |
commit | 80c235510aeb19d4df6a07be7499e70122313bbf (patch) | |
tree | 149178a7b2be85f6da2c48691b5c35834a4a4966 | |
parent | 66d532fca4cf9504a53bbe0c8a584d1144fc8e0f (diff) |
fdo#46843 look for order by clause as fifth child of select_statement
Since commit 33b9b857ea6cb5a6f731de68f58e532242c43d30 (dba34c: #i20306# support for window function and limit fetch first, ... added), order by is the fifth child. It was the fourth one before.
-rw-r--r-- | dbaccess/source/ui/querydesign/QueryDesignView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx index 397cedb0af60..267c7a97635f 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2319,9 +2319,9 @@ namespace const ::connectivity::OSQLParseNode* pParseRoot ) { 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; OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); |