libpinyin / ibus-libpinyin

GNU General Public License v3.0
627 stars 90 forks source link

Fix Compile error with >=sqlite-3.41.0 #415

Closed 123485k closed 1 year ago

123485k commented 1 year ago

data/english.awk run failed with sqlite 3.41.0, the error message is:

make[3]: Entering directory '/var/tmp/portage/app-i18n/ibus-libpinyin-1.13.1/work/ibus-l
ibpinyin-1.13.1/data'
\
rm -f english.db; \
gawk -f ./english.awk ./wordlist | /usr/bin/sqlite3 english.db || \
        ( rm -f english.db ; exit 1 )
Parse error near line 5: no such column: the
  INSERT INTO english (word, freq) VALUES ("the", 6.510891);
                             error here ---^

As sqlite 3.41.0 release note say:

The double-quoted string misfeature is now disabled by default for CLI builds. Legacy use cases can reenable the misfeature at run-time using the ".dbconfig dqs_dml on" and ".dbconfig dqs_ddl on" commands.

epico commented 1 year ago

Sorry, there is already another pull request in ibus-libpinyin.

epico commented 1 year ago

See #414 .