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

tdf#123020: migration to Firebird fix tablename for indexes

Change-Id: If02bf119f5e9dfcefe95c22240f55a1d241a123c
Reviewed-on: https://gerrit.libreoffice.org/67259
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst 6a815d1b
......@@ -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);
}
};
......
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