Kaydet (Commit) 2a08db9a authored tarafından Julien Nabet's avatar Julien Nabet

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: 's avatarTamás Bunth <btomi96@gmail.com>
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst febe6a57
......@@ -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];
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment