diff options
author | Peng Wu <alexepico@gmail.com> | 2022-02-15 10:44:23 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2022-02-15 10:44:23 +0800 |
commit | d9ec5ae7aa0dc69c437aaaa0d686d5a2faaec826 (patch) | |
tree | bd303681053953af61d1567e18f3e6108c3735db /src/PYEnglishDatabase.cc | |
parent | 6cd62db2c298597a8ed77a0f21994839880ed320 (diff) | |
download | ibus-libpinyin-english-mode.tar.gz ibus-libpinyin-english-mode.tar.xz ibus-libpinyin-english-mode.zip |
Enable English mode for Full Pinyinenglish-mode
Diffstat (limited to 'src/PYEnglishDatabase.cc')
-rw-r--r-- | src/PYEnglishDatabase.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PYEnglishDatabase.cc b/src/PYEnglishDatabase.cc index a55ade6..6937fa3 100644 --- a/src/PYEnglishDatabase.cc +++ b/src/PYEnglishDatabase.cc @@ -221,7 +221,7 @@ EnglishDatabase::listWords(const char *prefix, std::vector<std::string> & words) const char *SQL_DB_LIST = "SELECT word FROM ( " "SELECT * FROM english UNION ALL SELECT * FROM userdb.english) " - " WHERE word LIKE \"%s%\" GROUP BY word ORDER BY SUM(freq) DESC;"; + " WHERE word GLOB \"%s*\" GROUP BY word ORDER BY SUM(freq) DESC;"; m_sql.printf (SQL_DB_LIST, prefix); int result = sqlite3_prepare_v2 (m_sqlite, m_sql.c_str(), -1, &stmt, &tail); if (result != SQLITE_OK) |