summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/filter/hsqldb/parseschema.cxx5
1 files changed, 2 insertions, 3 deletions
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 "<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);
+ // SET TABLE <tableName>
+ return string::split(m_sql, u' ')[2];
}
};