ios - Full Text Search SQL has different effect between ios8 and ios7 -
i have use "*" symbols selecting on ios7 sqlite effect want, ios8 sqlite not supporting "*" , show "no result". fmdb problem or ios 8 not support "*" symbols?
sql(with fmdb):
db.executestatements("create virtual table if not exists table_1 using fts3(col_1,result)") db.executequery("select * table_1 col_1 match ?",withargumentsinarray:["*a*"])
table:
+==============================+ | name: table_1 | +------------------------------+ | col_1 | result | +==============================+ | | result 1 | +------------------------------+ | b | result 2 | +------------------------------+ | aab | result 3 | +------------------------------+
ios 8 not support "*a*"
, support "a*"
:
db.executequery("select * table_1 col_1 match ?",withargumentsinarray:["a*"])
Comments
Post a Comment