I’ve got a simple SQLite database:
CREATE VIRTUAL TABLE bodyindex USING fts4(content='', messagebody);
which I use for searching. Searching itself works fine with the following SQL:
SELECT docid FROM bodyindex WHERE messagebody MATCH '*" + SearchString + "*'
But the prepared statement doesn’t give any result:
PreparedForSearch = SQLiteIndexDB.Prepare("SELECT docid FROM bodyindex WHERE messagebody MATCH '*?*'")
PreparedForSearch.BindType(0, SQLitePreparedStatement.SQLITE_TEXT)
dim data as RecordSet = PreparedForSearch.SQLSelect(SearchString)
data has 0 records for all searches. What am I doing wrong here? Xojo 2017r1, macOS El Capitan.