Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS上执行sqlite3_simple_init报错 #75

Closed
milandttp777 opened this issue Feb 16, 2022 · 5 comments
Closed

iOS上执行sqlite3_simple_init报错 #75

milandttp777 opened this issue Feb 16, 2022 · 5 comments

Comments

@milandttp777
Copy link

rc = sqlite3_prepare(db, "SELECT fts5(?1)", -1, &pStmt, 0);
iOS平台上执行到这一句语句的时候报错,返回值SQLITE_ERROR,错误信息(wrong number of arguments to function fts5())

@wangfenjin
Copy link
Owner

大概率是你的 sqlite 版本不支持 fts5,检查一下你的依赖

@wangfenjin
Copy link
Owner

参考 #73 #74

@milandttp777
Copy link
Author

我的sqlite版本是3.15.2,而且是直接编译的sqlite.c的源代码,编译选项也有SQLITE_ENABLE_FTS5

@wangfenjin
Copy link
Owner

你可以先不加载这个插件,直接用自带的分词器试试支不支持fts5

@wangfenjin
Copy link
Owner

有问题欢迎继续讨论

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants