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 13:08:00 +0200
commitbf51a0b97c63801654c3052c36f9408873c5ad36 (patch)
treeb307027a8a9a1fce985e5858f524e69d3c991d8f /dbaccess
parentd360333f83e3115219c3928525060c6c2a8711db (diff)
fdo#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" (cherry picked from commit 73a809cba87eefbb495c5ba53f89b48d671f8230) 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();