summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/dlg/generalpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/ui/dlg/generalpage.cxx')
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index 12bfe24197b7..df4af30d4894 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -41,6 +41,7 @@
#include <comphelper/processfactory.hxx>
#include <unotools/confignode.hxx>
#include <osl/diagnose.h>
+#include <svtools/miscopt.hxx>
namespace dbaui
{
@@ -586,9 +587,15 @@ namespace dbaui
OUString OGeneralPageWizard::getDatasourceName(const SfxItemSet& _rSet)
{
- // Sets jdbc as the default selected database on startup.
+ // Sets the default selected database on startup.
if (m_pRB_CreateDatabase->IsChecked() )
- return m_pCollection->getTypeDisplayName( "jdbc:" );
+ {
+ SvtMiscOptions aMiscOptions;
+ if( aMiscOptions.IsExperimentalMode() )
+ return m_pCollection->getTypeDisplayName( "sdbc:embedded:firebird" );
+ else
+ return m_pCollection->getTypeDisplayName( "jdbc:" );
+ }
return OGeneralPage::getDatasourceName( _rSet );
}