summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/sdbtools/connection/connectiontools.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/dbaccess/source/sdbtools/connection/connectiontools.cxx b/dbaccess/source/sdbtools/connection/connectiontools.cxx
index 4b46d411028f..868ee3c8b375 100644
--- a/dbaccess/source/sdbtools/connection/connectiontools.cxx
+++ b/dbaccess/source/sdbtools/connection/connectiontools.cxx
@@ -152,10 +152,15 @@ namespace sdbtools
{
::osl::MutexGuard aGuard( getMutex() );
- ::comphelper::NamedValueCollection aArguments( _rArguments );
-
Reference< XConnection > xConnection;
- aArguments.get( "Connection" ) >>= xConnection;
+ if (_rArguments.getLength()==1 && (_rArguments[0] >>= xConnection))
+ {
+ }
+ else
+ {
+ ::comphelper::NamedValueCollection aArguments( _rArguments );
+ aArguments.get( "Connection" ) >>= xConnection;
+ }
if ( !xConnection.is() )
throw IllegalArgumentException();