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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Feb 3 06:27:50 UTC 2019


 dbaccess/source/filter/hsqldb/parseschema.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 850527869590094a29a5175779a0d984e4699763
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Feb 3 07:27:10 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Feb 3 07:27:26 2019 +0100

    Revert "tdf#123020: migration to Firebird fix tablename for indexes"
    
    This patch is wrong (see comments on gerrit)
    
    This reverts commit b35a64be6025b59e88231a4dc0f025273adb63c5.
    
    Change-Id: Ib093e83cf68460671e9a14b3f1dc2a8d884de0b9
    Reviewed-on: https://gerrit.libreoffice.org/67300
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/dbaccess/source/filter/hsqldb/parseschema.cxx b/dbaccess/source/filter/hsqldb/parseschema.cxx
index 89796e3c06ee..e04998c80f28 100644
--- a/dbaccess/source/filter/hsqldb/parseschema.cxx
+++ b/dbaccess/source/filter/hsqldb/parseschema.cxx
@@ -74,9 +74,8 @@ public:
 
     OUString getTableName() const
     {
-        // SET TABLE "<table name which can contain several words>" INDEX'...
-        // 9 corresponds to nb chars in "SET TABLE"
-        return m_sql.copy(m_sql.indexOf("\""), m_sql.lastIndexOf("\"") - 9);
+        // SET TABLE <tableName>
+        return string::split(m_sql, u' ')[2];
     }
 };
 


More information about the Libreoffice-commits mailing list