diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-02-03 07:47:21 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-02-11 20:37:55 +0100 |
commit | 2a08db9a0473e2f87715aacfc7b481beaa490dcf (patch) | |
tree | ee0461302ba8838445b75096f9b07faa863c487e /dbaccess | |
parent | febe6a57f9bc9145ffc8e9faeb34b8ac5af1c718 (diff) |
tdf#123020: migration to Firebird fix tablename for indexes (2)
Change-Id: Ibb296611c152807d143fa1e212554fd54aea45fb
Reviewed-on: https://gerrit.libreoffice.org/67301
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/filter/hsqldb/parseschema.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dbaccess/source/filter/hsqldb/parseschema.cxx b/dbaccess/source/filter/hsqldb/parseschema.cxx index e04998c80f28..c17369f4950a 100644 --- a/dbaccess/source/filter/hsqldb/parseschema.cxx +++ b/dbaccess/source/filter/hsqldb/parseschema.cxx @@ -75,7 +75,12 @@ public: OUString getTableName() const { // SET TABLE <tableName> - return string::split(m_sql, u' ')[2]; + constexpr int SET_TABLE_LITERAL_SIZE = 9; + if (m_sql.indexOf("\"") >= 0) // delimited identifier + return m_sql.copy(m_sql.indexOf("\""), + m_sql.lastIndexOf("\"") - SET_TABLE_LITERAL_SIZE); + else + return string::split(m_sql, u' ')[2]; } }; |