summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/file/fanalyzer.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-10-01 12:28:29 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-10-01 12:28:29 +0000
commitbc416a9f5635e0dcb3558a997ebf0298c3c37486 (patch)
treeef6424519b8c2ef24406d62b0edca6d9a572115a /connectivity/source/drivers/file/fanalyzer.cxx
parentbbc5db1ac660640e72a7effbf70bace623c8d6c4 (diff)
CWS-TOOLING: integrate CWS dba31b
Diffstat (limited to 'connectivity/source/drivers/file/fanalyzer.cxx')
-rw-r--r--connectivity/source/drivers/file/fanalyzer.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/connectivity/source/drivers/file/fanalyzer.cxx b/connectivity/source/drivers/file/fanalyzer.cxx
index 8800c1e27151..40cf46b7a66f 100644
--- a/connectivity/source/drivers/file/fanalyzer.cxx
+++ b/connectivity/source/drivers/file/fanalyzer.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fanalyzer.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.26.56.1 $
*
* This file is part of OpenOffice.org.
*
@@ -37,7 +37,8 @@
#include <comphelper/extract.hxx>
#include "connectivity/sqlnode.hxx"
#include "connectivity/dbexception.hxx"
-
+#include "file/FConnection.hxx"
+#include "resource/file_res.hrc"
using namespace ::connectivity;
using namespace ::connectivity::file;
@@ -48,8 +49,9 @@ using namespace ::com::sun::star::container;
DBG_NAME( file_OSQLAnalyzer )
//------------------------------------------------------------------
-OSQLAnalyzer::OSQLAnalyzer()
- :m_bHasSelectionCode(sal_False)
+OSQLAnalyzer::OSQLAnalyzer(OConnection* _pConnection)
+ :m_pConnection(_pConnection)
+ ,m_bHasSelectionCode(sal_False)
,m_bSelectionFirstTime(sal_True)
{
DBG_CTOR( file_OSQLAnalyzer, NULL );
@@ -98,7 +100,7 @@ void OSQLAnalyzer::start(OSQLParseNode* pSQLParseNode)
}
else if ( ( SQL_ISRULE(pColumnRef,general_set_fct) && pColumnRef->count() != 4 ) )
{
- ::dbtools::throwGenericSQLException(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Statement too complex. Only \"COUNT(*)\" is supported.")),NULL);
+ m_pConnection->throwGenericSQLException(STR_QUERY_COMPLEX_COUNT,NULL);
}
else
m_aSelectionEvaluations.push_back( TPredicates() );