[Libreoffice-commits] core.git: connectivity/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 4 17:54:13 UTC 2018


 connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d0568b684ae9f4e4278f81679287b2422e23fac4
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Nov 4 10:18:24 2018 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 4 18:53:27 2018 +0100

    coverity#1440839: COPY_PASTE_ERROR
    
    Regression from 39e0bbfdf77cf9653ec68ffcb4374d929838b2a8
    
    Change-Id: Ibb0dea1a78ccf3ef446bbbaad28945f1ac8bdf48
    Reviewed-on: https://gerrit.libreoffice.org/62834
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
index bd58d9cb1f5e..0da41f5922ea 100644
--- a/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
+++ b/connectivity/source/drivers/mysqlc/mysqlc_databasemetadata.cxx
@@ -732,7 +732,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getColumns(const Any& /*catalo
     if (!schemaPattern.isEmpty())
     {
         OUString sAppend;
-        if (tableNamePattern.match("%"))
+        if (schemaPattern.match("%"))
             sAppend = "AND TABLE_SCHEMA LIKE '%' ";
         else
             sAppend = "AND TABLE_SCHEMA = '%' ";


More information about the Libreoffice-commits mailing list