From 850527869590094a29a5175779a0d984e4699763 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 3 Feb 2019 07:27:10 +0100 Subject: 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 Tested-by: Julien Nabet --- dbaccess/source/filter/hsqldb/parseschema.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dbaccess') 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 "" INDEX'... - // 9 corresponds to nb chars in "SET TABLE" - return m_sql.copy(m_sql.indexOf("\""), m_sql.lastIndexOf("\"") - 9); + // SET TABLE + return string::split(m_sql, u' ')[2]; } }; -- cgit v1.2.3