diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 5de8be730fc4..034772fb1214 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sqliterator.cxx,v $ * - * $Revision: 1.55 $ + * $Revision: 1.56 $ * - * last change: $Author: hr $ $Date: 2007-09-26 14:31:52 $ + * last change: $Author: ihi $ $Date: 2007-11-21 15:09:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -49,6 +49,9 @@ #ifndef _CONNECTIVITY_DBTOOLS_HXX_ #include #endif +#ifndef CONNECTIVITY_SQLERROR_HXX +#include +#endif #ifndef _COM_SUN_STAR_SDBC_COLUMNVALUE_HPP_ #include #endif @@ -61,6 +64,9 @@ #ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_ #include #endif +#ifndef _COM_SUN_STAR_SDB_ERRORCONDITION_HPP_ +#include +#endif #ifdef SQL_TEST_PARSETREEITERATOR #include #endif @@ -94,6 +100,7 @@ using namespace ::connectivity; using namespace ::connectivity::sdbcx; using namespace ::dbtools; using namespace ::connectivity::parse; +using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::container; using namespace ::com::sun::star::sdbcx; @@ -443,13 +450,7 @@ OSQLTable OSQLParseTreeIterator::impl_locateRecordSource( const ::rtl::OUString& { if ( !m_pImpl->isQueryAllowed( sComposedName ) ) { - impl_appendError( SQLException( - m_rParser.getContext().getErrorMessage( IParseContext::ERROR_CYCLIC_SUB_QUERIES ), - NULL, - getStandardSQLState( SQL_CYCLIC_SUB_QUERIES ), - 0, - Any() - ) ); + impl_appendError( m_rParser.getErrorHelper().getSQLException( sdb::ErrorCondition::PARSER_CYCLIC_SUB_QUERIES, NULL ) ); return NULL; }