diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-07-10 00:50:11 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-07-10 19:49:59 +0000 |
commit | 7802990f3155de25d38f894d1261dc975c37762d (patch) | |
tree | 6fa0bb360f8ceca0bd07676e52da6ff150d7168b | |
parent | 2ee2e0b99179a08369125743ec0e72d3b5622957 (diff) |
fdo#58644 fix handling of subqueries
don't remove parentheses around subqueries
(without the parentheses, it is not valid SQL)
Change-Id: I4e9c55cea0276f10b0f97e31bc329949aba5b989
Reviewed-on: https://gerrit.libreoffice.org/4791
Reviewed-by: David Tardon <dtardon@redhat.com>
Reviewed-by: Michael Meeks <michael.meeks@suse.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | connectivity/source/parse/sqliterator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 9e512967a687..6007eb9a6183 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -966,6 +966,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele sal_Bool bFkt(sal_False); pColumnRef = pColumnRef->getChild(0); if ( + pColumnRef->getKnownRuleID() != OSQLParseNode::subquery && pColumnRef->count() == 3 && SQL_ISPUNCTUATION(pColumnRef->getChild(0),"(") && SQL_ISPUNCTUATION(pColumnRef->getChild(2),")") |