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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Feb 2 06:51:18 UTC 2019


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

New commits:
commit b35a64be6025b59e88231a4dc0f025273adb63c5
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri Feb 1 21:11:49 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sat Feb 2 07:50:59 2019 +0100

    tdf#123020: migration to Firebird fix tablename for indexes
    
    Change-Id: If02bf119f5e9dfcefe95c22240f55a1d241a123c
    Reviewed-on: https://gerrit.libreoffice.org/67259
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/dbaccess/source/filter/hsqldb/parseschema.cxx b/dbaccess/source/filter/hsqldb/parseschema.cxx
index e04998c80f28..89796e3c06ee 100644
--- a/dbaccess/source/filter/hsqldb/parseschema.cxx
+++ b/dbaccess/source/filter/hsqldb/parseschema.cxx
@@ -74,8 +74,9 @@ public:
 
     OUString getTableName() const
     {
-        // SET TABLE <tableName>
-        return string::split(m_sql, u' ')[2];
+        // 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);
     }
 };
 


More information about the Libreoffice-commits mailing list