From 053c46ccbda14f1efc318f06a8e36966fc23c694 Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Thu, 11 Jan 2018 02:19:41 +0200 Subject: [PATCH] registry: Ignore case of SQLite table names (fixes #867) In SQLite all SQL identifies are case-insensitive, even put in quotes. --- src/libs/registry/docset.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/registry/docset.cpp b/src/libs/registry/docset.cpp index 4890d37..0c6ca37 100644 --- a/src/libs/registry/docset.cpp +++ b/src/libs/registry/docset.cpp @@ -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();