summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/mork/MConnection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/mork/MConnection.cxx')
-rw-r--r--connectivity/source/drivers/mork/MConnection.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx
index 47525d2f946b..9c9c8edfbfd3 100644
--- a/connectivity/source/drivers/mork/MConnection.cxx
+++ b/connectivity/source/drivers/mork/MConnection.cxx
@@ -28,6 +28,7 @@
#include <com/sun/star/sdbc/TransactionIsolation.hpp>
#include <comphelper/officeresourcebundle.hxx>
+#include <comphelper/processfactory.hxx>
using namespace dbtools;
@@ -382,7 +383,7 @@ void OConnection::throwSQLException( const ErrorDescriptor& _rError, const Refer
if ( _rError.getErrorCondition() != 0 )
{
- SQLError aErrorHelper( getDriver()->getFactory() );
+ SQLError aErrorHelper( comphelper::getComponentContext(getDriver()->getFactory()) );
::rtl::OUString sParameter( _rError.getParameter() );
if ( !sParameter.isEmpty() )
aErrorHelper.raiseException( _rError.getErrorCondition(), _rxContext, sParameter );