我正在使用System.Data.sqlite.dll 1.0.101.0并且在执行命令“CREATE VIRTUAL TABLE tbl_fts USING fts5(fld1,fld2)”时出现此错误.
错误:
没有这样的模块:fts5
在本页我们可以看到:1.0.99.0 – 2015年12月9日
https://system.data.sqlite.org/index.html/doc/trunk/www/news.wiki
那么问题是什么,如何重新启动System.Data.sqlite.dll?如何启用fts5?我怎样才能做到这一点?
谢谢..
解决方法
在这里解决方案,超过6个小时的工作直到找到它:
MyConnection.EnableExtensions(True) MyConnection.LoadExtension("System.Data.sqlite.dll","sqlite3_fts5_init") ''/// Or "sqlite.Interop.dll" as you need.
我通过这句话理解:“为FTS5可加载扩展添加实验支持.(用户:mistachkin)”
http://system.data.sqlite.org/index.html/finfo?name=SQLite.Interop/SQLite.Interop.2010.vcxproj