summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab2/NStatement.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:11:05 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-06-16 11:11:05 +0000
commit7c0b0a41a77f1140007646dc1da3fd202b110ced (patch)
treea2b5fe324e87c0aa52b64a69c057bc24de56e649 /connectivity/source/drivers/evoab2/NStatement.cxx
parent7a96255d70e5221cbf5d25524acd2244b506c9ae (diff)
INTEGRATION: CWS rptchart02 (1.10.18); FILE MERGED
2008/05/23 08:26:42 oj 1.10.18.1: #i84290# change sql rule table_ref
Diffstat (limited to 'connectivity/source/drivers/evoab2/NStatement.cxx')
-rw-r--r--connectivity/source/drivers/evoab2/NStatement.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab2/NStatement.cxx b/connectivity/source/drivers/evoab2/NStatement.cxx
index 07a5804f4b..a55e1ef1c5 100644
--- a/connectivity/source/drivers/evoab2/NStatement.cxx
+++ b/connectivity/source/drivers/evoab2/NStatement.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NStatement.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
* This file is part of OpenOffice.org.
*
@@ -403,9 +403,8 @@ rtl::OUString OStatement_Base::getTableName()
OSQLParseNode *pNodeForTableName = pAllTableNames->getChild( 0 )->getChild( 0 );
if( m_aSQLIterator.isTableNode( pNodeForTableName ) )
{
- if( pAllTableNames->getChild( 0 )->count() == 4 )
- aTableName = pAllTableNames->getChild( 0 )->getChild( 2 )->getTokenValue();
- else
+ aTableName = getTableRange(pAllTableNames->getChild( 0 ));
+ if( !aTableName.getLength() )
OSQLParseNode::getTableComponents( pNodeForTableName, aCatalog, aSchema, aTableName);
}
else