mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-23 14:26:12 +03:00
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:
parent
d259a7a0d7
commit
053c46ccbd
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user