Package: libreoffice / 1:6.1.5-3

use-mariadb-java-instead-of-mysql-java.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
>From 1172166889764ae0e77488e5d173f33961b9859b Mon Sep 17 00:00:00 2001
From: Markus Koschany <apo@debian.org>
Date: Fri, 9 Nov 2018 23:06:15 +0100
Subject: [PATCH] mariadb

---
 connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java | 4 ++--
 .../mysql/org/openoffice/Office/DataAccess/Drivers.xcu        | 2 +-
 connectivity/source/drivers/mysql/YDriver.cxx                 | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
index a44f1b9d1..03a8293ef 100644
--- a/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
+++ b/connectivity/qa/complex/connectivity/JdbcLongVarCharTest.java
@@ -59,7 +59,7 @@ public class JdbcLongVarCharTest extends ComplexTestCase
 
             String url = "jdbc:mysql://localhost:3306/mysql?user=root";
             com.sun.star.beans.PropertyValue prop[] = new PropertyValue[1];
-            prop[0] = new PropertyValue("JavaDriverClass", 0, "com.mysql.jdbc.Driver", PropertyState.DIRECT_VALUE);
+            prop[0] = new PropertyValue("JavaDriverClass", 0, "org.mariadb.jdbc.Driver", PropertyState.DIRECT_VALUE);
 
             // get the remote office component context
             XMultiServiceFactory xServiceManager = param.getMSF();
@@ -117,4 +117,4 @@ public class JdbcLongVarCharTest extends ComplexTestCase
             System.exit(0);
         }
     }
-}
\ No newline at end of file
+}
diff --git a/connectivity/registry/mysql/org/openoffice/Office/DataAccess/Drivers.xcu b/connectivity/registry/mysql/org/openoffice/Office/DataAccess/Drivers.xcu
index 77988448f..acd8bfdaf 100644
--- a/connectivity/registry/mysql/org/openoffice/Office/DataAccess/Drivers.xcu
+++ b/connectivity/registry/mysql/org/openoffice/Office/DataAccess/Drivers.xcu
@@ -33,7 +33,7 @@
         </node>
         <node oor:name="JavaDriverClass" oor:op="replace">
           <prop oor:name="Value" oor:type="xs:string">
-            <value>com.mysql.jdbc.Driver</value>
+            <value>org.mariadb.jdbc.Driver</value>
           </prop>
         </node>
         <node oor:name="AddIndexAppendix" oor:op="replace">
diff --git a/connectivity/source/drivers/mysql/YDriver.cxx b/connectivity/source/drivers/mysql/YDriver.cxx
index 95094265e..c0ad7802e 100644
--- a/connectivity/source/drivers/mysql/YDriver.cxx
+++ b/connectivity/source/drivers/mysql/YDriver.cxx
@@ -54,7 +54,7 @@ namespace connectivity
             css::uno::Sequence<css::beans::PropertyValue> const & info)
         {
             return comphelper::NamedValueCollection(info).getOrDefault(
-                "JavaDriverClass", OUString("com.mysql.jdbc.Driver"));
+                "JavaDriverClass", OUString("org.mariadb.jdbc.Driver"));
         }
     }
 
@@ -185,7 +185,7 @@ namespace connectivity
                     aProps.push_back( PropertyValue(
                                           "JavaDriverClass"
                                           ,0
-                                          ,makeAny(OUString("com.mysql.jdbc.Driver"))
+                                          ,makeAny(OUString("org.mariadb.jdbc.Driver"))
                                           ,PropertyState_DIRECT_VALUE) );
                 }
             }
-- 
2.19.1