office-gobmx/connectivity/source
Julien Nabet 6bb6e59ca2 tdf#145205: Mysql/MariaDB, display BIT instead of DATE when its a BIT field
Beware, we just want to display the right info here, BIT management in Mysql/MariaDB
needs some work

There are 2 parts in this patch:
1)
-    if (sType.equalsIgnoreAsciiCase("bit") || sType.equalsIgnoreAsciiCase("bool")
-        || sType.equalsIgnoreAsciiCase("boolean"))
+    if (sType.equalsIgnoreAsciiCase("bit"))
+        return css::sdbc::DataType::BIT;
+    if (sType.equalsIgnoreAsciiCase("bool") || sType.equalsIgnoreAsciiCase("boolean"))
allows to display BIT instead of DATE when editing the table

2)
-            return css::sdbc::DataType::VARCHAR;
+            return css::sdbc::DataType::BIT;
allows to show a checkbox instead of a field where you can type anything when opening the table

Change-Id: Id50882bfab97cc43a1904bfc6eb7256904732bba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125429
Tested-by: Jenkins
Reviewed-by: Lionel Mamane <lionel@mamane.lu>
2021-11-18 10:47:43 +01:00
..
commontools Replace VISIT_PARAMETER in commontools/parameters.cxx (connectivity) 2021-11-14 13:26:15 +01:00
cpool Prepare for removal of non-const operator[] from Sequence in connectivity 2021-10-29 10:31:51 +02:00
dbtools
drivers tdf#145205: Mysql/MariaDB, display BIT instead of DATE when its a BIT field 2021-11-18 10:47:43 +01:00
inc
manager Prepare for removal of non-const operator[] from Sequence in connectivity 2021-10-29 10:31:51 +02:00
parse
resource
sdbcx