summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-09-13 07:19:37 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-09-13 12:08:03 +0200
commit7b4b3ad8c6f84177247f4e88c10b5473b8a9c39a (patch)
tree0aea924e5a2d9c90ce467e6caa2e8e040fbea92e /connectivity
parent6a1ad344a8100b7fe807383356128aa8ee82b6d5 (diff)
Don't clobber argument on failure
Change-Id: I709305d4ec3c37d3fc1c2c911551174f8cfbb883
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/parse/sqliterator.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx
index a19f59380559..4cd8c6557426 100644
--- a/connectivity/source/parse/sqliterator.cxx
+++ b/connectivity/source/parse/sqliterator.cxx
@@ -803,7 +803,18 @@ void OSQLParseTreeIterator::getColumnRange( const OSQLParseNode* _pColumnRef,
}
//-----------------------------------------------------------------------------
-sal_Bool OSQLParseTreeIterator::getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
+bool OSQLParseTreeIterator::getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
+{
+ OUString tmp;
+ if(impl_getColumnTableRange(pNode, tmp))
+ {
+ rTableRange = tmp;
+ return true;
+ }
+ else
+ return false;
+}
+bool OSQLParseTreeIterator::impl_getColumnTableRange(const OSQLParseNode* pNode, OUString &rTableRange) const
{
SAL_INFO( "connectivity.parse", "parse Ocke.Janssen@sun.com OSQLParseTreeIterator::getColumnTableRange" );
// See if all columns belong to one table