summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/kab
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-08 14:05:16 +0100
committerOcke Janssen [oj] <Ocke.Janssen@sun.com>2010-02-08 14:05:16 +0100
commit5f71d659243796e2fea2514860ed7d020a3d6d5b (patch)
tree7b4baaf96a621404fb19f2d28e8d47a1fb4605bf /connectivity/source/drivers/kab
parent1e76109004db25f8d4906852124252738e54403a (diff)
dba33f: #i108730# impl case case and rank functions
Diffstat (limited to 'connectivity/source/drivers/kab')
-rw-r--r--connectivity/source/drivers/kab/KStatement.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/connectivity/source/drivers/kab/KStatement.cxx b/connectivity/source/drivers/kab/KStatement.cxx
index aaa245d4bdcc..963a29f2725f 100644
--- a/connectivity/source/drivers/kab/KStatement.cxx
+++ b/connectivity/source/drivers/kab/KStatement.cxx
@@ -188,12 +188,13 @@ KabCondition *KabCommonStatement::analyseWhereClause(const OSQLParseNode *pParse
}
}
}
- else if (pParseNode->count() == 4)
+ else if (SQL_ISRULE(pParseNode, test_for_null) || SQL_ISRULE(pParseNode, like_predicate))
{
- const OSQLParseNode *pLeft = pParseNode->getChild(0),
- *pMiddleLeft = pParseNode->getChild(1),
- *pMiddleRight = pParseNode->getChild(2),
- *pRight = pParseNode->getChild(3);
+ const OSQLParseNode *pLeft = pParseNode->getChild(0);
+ const OSQLParseNode* pPart2 = pParseNode->getChild(1);
+ const OSQLParseNode *pMiddleLeft = pPart2->getChild(0),
+ *pMiddleRight = pPart2->getChild(1),
+ *pRight = pPart2->getChild(2);
if (SQL_ISRULE(pParseNode, test_for_null))
{