diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-03-15 11:22:32 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-03-20 10:11:37 +0100 |
commit | 73a5ef4cb245acb120f02d487ba7c3aeb40f4fad (patch) | |
tree | df755a5f16e8bf59f2c3e0ef247d59e4951a3e54 | |
parent | 85c6043d0d339d3df6a4037eedce78df38272ea6 (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.
Signed-off-by: Petr Mladek <pmladek@suse.cz>
-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 3f500b75a859..c9c6092be157 100644 --- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx +++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx @@ -2318,9 +2318,9 @@ namespace const ::connectivity::OSQLParseNode* pParseRoot ) { SqlParseError eErrorCode = eOk; - if (!pParseRoot->getChild(3)->getChild(4)->isLeaf()) + if (!pParseRoot->getChild(3)->getChild(ORDER_BY_CHILD_POS)->isLeaf()) { - ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(4)->getChild(2); + ::connectivity::OSQLParseNode* pNode = pParseRoot->getChild(3)->getChild(ORDER_BY_CHILD_POS)->getChild(2); ::connectivity::OSQLParseNode* pParamRef = NULL; OQueryController& rController = static_cast<OQueryController&>(_pView->getController()); |