registry: Ignore case of SQLite table names (fixes #867)

In SQLite all SQL identifies are case-insensitive, even put in quotes.
This commit is contained in:
Oleg Shparber 2018-01-11 02:19:41 +02:00
parent d259a7a0d7
commit 053c46ccbd

View File

@ -132,7 +132,8 @@ Docset::Docset(const QString &path) :
sqlite3_create_function(m_db->handle(), "zealScore", 2, SQLITE_UTF8, nullptr,
sqliteScoreFunction, nullptr, nullptr);
m_type = m_db->tables().contains(QStringLiteral("searchIndex")) ? Type::Dash : Type::ZDash;
m_type = m_db->tables().contains(QStringLiteral("searchIndex"), Qt::CaseInsensitive)
? Type::Dash : Type::ZDash;
createIndex();