INTEGRATION: CWS dba24c (1.54.20); FILE MERGED

2007/09/28 19:17:54 fs 1.54.20.2: RESYNC: (1.54-1.55); FILE MERGED
2007/09/18 20:05:25 fs 1.54.20.1: during #i81095#: outsourced the CYCLIC_SUB_QUERIES error to the new css.sdb.ErrorCondition
This commit is contained in:
Ivo Hinkelmann
2007-11-21 14:09:21 +00:00
parent 922be07484
commit bfbf21aff0

View File

@@ -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 <connectivity/dbtools.hxx>
#endif
#ifndef CONNECTIVITY_SQLERROR_HXX
#include <connectivity/sqlerror.hxx>
#endif
#ifndef _COM_SUN_STAR_SDBC_COLUMNVALUE_HPP_
#include <com/sun/star/sdbc/ColumnValue.hpp>
#endif
@@ -61,6 +64,9 @@
#ifndef _COM_SUN_STAR_SDB_XQUERIESSUPPLIER_HPP_
#include <com/sun/star/sdb/XQueriesSupplier.hpp>
#endif
#ifndef _COM_SUN_STAR_SDB_ERRORCONDITION_HPP_
#include <com/sun/star/sdb/ErrorCondition.hpp>
#endif
#ifdef SQL_TEST_PARSETREEITERATOR
#include <iostream>
#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;
}