summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-30 08:18:16 +0200
committerNoel Grandin <noel@peralex.com>2013-05-30 08:19:45 +0200
commit73a809cba87eefbb495c5ba53f89b48d671f8230 (patch)
tree12a1fed988d94ab18916422b9815465805bfcedf /dbaccess
parent7d581c5ffe81ec028746d3308da38464a478c1c4 (diff)
Bug 64984 - EDITING: Creating table with GUI - table could not be saved
This bug was introduced by my commit 002aab309055b7feeeeeb25c1835b6abe6646729 "fdo#46808, convert sdb::tools::ConnectionTools to new style" Change-Id: Ib10f97bbe46d20db663047d2f35ec4850df839fa
Diffstat (limited to 'dbaccess')
-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();