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

New commits:
commit b35a64be6025b59e88231a4dc0f025273adb63c5
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri Feb 1 21:11:49 2019 +0100
Commit:     Julien Nabet <serval2...@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 <serval2...@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);
     }
 };
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to