diff --git a/core/context.cpp b/core/context.cpp index c5d80af..dc607a8 100644 --- a/core/context.cpp +++ b/core/context.cpp @@ -70,6 +70,7 @@ void Context::openDb(const QString &path) { if (m_db != NULL) { delete m_db; + m_solved.clear(); m_dbOpened = false; } @@ -177,6 +178,7 @@ void Context::createSchema(IPlugin *plugin, const QSqlDatabase &db, const QMappluginId()) || i >= ver) { QString sql = plugin->schemas()[i]; + sql = sql.trimmed(); QSqlQuery q(db); QStringList sqlList = sql.split(";");