connectivity/registry/mysqlc/org/openoffice/Office/DataAccess/Drivers.xcu |    
2 +-
 dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx                         |    
2 +-
 dbaccess/source/ui/dlg/generalpage.cxx                                    |    
6 +-----
 3 files changed, 3 insertions(+), 7 deletions(-)

New commits:
commit f3d959aa4b3d5ce46b52617d69ef51f434a061c8
Author:     Tamas Bunth <tamas.bu...@collabora.co.uk>
AuthorDate: Sat Sep 22 14:31:23 2018 +0200
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Sat Sep 29 00:59:34 2018 +0200

    tdf#119850 show missing mysql connector options
    
    For MYSQL connections there is an extra window which determines how to
    connect to a mysql/mariadb database. This functionality is handled in
    OGeneralPageWizard::approveDatasourceType.
    
    Change-Id: Ia3c548103b694731cba47ff5390c34b072a938a0
    Reviewed-on: https://gerrit.libreoffice.org/60893
    Reviewed-by: Tamás Bunth <btom...@gmail.com>
    Tested-by: Tamás Bunth <btom...@gmail.com>
    (cherry picked from commit 37dba4f25f00ffc1a1a631772eadd50e998966c1)

diff --git 
a/connectivity/registry/mysqlc/org/openoffice/Office/DataAccess/Drivers.xcu 
b/connectivity/registry/mysqlc/org/openoffice/Office/DataAccess/Drivers.xcu
index 65bfdba90858..4998afb3a3e2 100644
--- a/connectivity/registry/mysqlc/org/openoffice/Office/DataAccess/Drivers.xcu
+++ b/connectivity/registry/mysqlc/org/openoffice/Office/DataAccess/Drivers.xcu
@@ -18,7 +18,7 @@
  -->
 <oor:component-data oor:name="Drivers" 
oor:package="org.openoffice.Office.DataAccess" 
xmlns:install="http://openoffice.org/2004/installation"; 
xmlns:oor="http://openoffice.org/2001/registry"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
   <node oor:name="Installed" install:module="mysqlc">
-    <node oor:name="sdbc:mysqlc:*" oor:op="replace">
+    <node oor:name="sdbc:mysql:mysqlc:*" oor:op="replace">
       <prop oor:name="Driver">
         <value>com.sun.star.comp.sdbc.mysqlc.MysqlCDriver</value>
       </prop>
diff --git a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx 
b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
index 784f0938a560..3c9a18c81db2 100644
--- a/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
+++ b/dbaccess/source/ui/dlg/DBSetupConnectionPages.cxx
@@ -281,7 +281,7 @@ using namespace ::com::sun::star;
     {
         // show the "Connect directly" option only if the driver is installed
         const DbuTypeCollectionItem* pCollectionItem = dynamic_cast<const 
DbuTypeCollectionItem*>( _rSet.GetItem(DSID_TYPECOLLECTION) );
-        bool bHasMySQLNative = ( pCollectionItem != nullptr ) && 
pCollectionItem->getCollection()->hasDriver( "sdbc:mysqlc:" );
+        bool bHasMySQLNative = ( pCollectionItem != nullptr ) && 
pCollectionItem->getCollection()->hasDriver( "sdbc:mysql:mysqlc:" );
         if ( bHasMySQLNative )
             m_pNATIVEDatabase->Show();
 
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx 
b/dbaccess/source/ui/dlg/generalpage.cxx
index 28a79c048981..adf5e01bde07 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -616,13 +616,9 @@ namespace dbaui
         switch ( eType )
         {
         case ::dbaccess::DST_MYSQL_JDBC:
-            _inout_rDisplayName = "MySQL";
-            break;
         case ::dbaccess::DST_MYSQL_ODBC:
         case ::dbaccess::DST_MYSQL_NATIVE:
-            // don't display those, the decision whether the user connects via 
JDBC/ODBC/C-OOo is made on another
-            // page
-            _inout_rDisplayName.clear();
+            _inout_rDisplayName = "MySQL";
             break;
         default:
             break;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to