diff --git a/connectivity/inc/connectivity/sqlparse.hxx b/connectivity/inc/connectivity/sqlparse.hxx index 1d7f128bba1d..8339d20459bf 100644 --- a/connectivity/inc/connectivity/sqlparse.hxx +++ b/connectivity/inc/connectivity/sqlparse.hxx @@ -44,6 +44,7 @@ #include #include "connectivity/IParseContext.hxx" #include "connectivity/dbtoolsdllapi.hxx" +#include "connectivity/sqlerror.hxx" #include #include @@ -127,7 +128,17 @@ namespace connectivity //========================================================================== //= OSQLParser //========================================================================== - struct OSQLParser_Data; + struct OSQLParser_Data + { + ::com::sun::star::lang::Locale aLocale; + ::connectivity::SQLError aErrors; + + OSQLParser_Data( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _xServiceFactory ) + :aErrors( _xServiceFactory ) + { + } + }; + /** Parser for SQL92 */ class OOO_DLLPUBLIC_DBTOOLS OSQLParser diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index 599128dd5936..f9789002828f 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -68,7 +68,6 @@ #include #include "connectivity/dbtools.hxx" #include "connectivity/dbmetadata.hxx" -#include "connectivity/sqlerror.hxx" #include #include #include @@ -153,18 +152,6 @@ namespace namespace connectivity { -//============================================================================= -struct OSQLParser_Data -{ - ::com::sun::star::lang::Locale aLocale; - ::connectivity::SQLError aErrors; - - OSQLParser_Data( const Reference< XMultiServiceFactory >& _xServiceFactory ) - :aErrors( _xServiceFactory ) - { - } -}; - //============================================================================= //= SQLParseNodeParameter //=============================================================================