SQLite on Android with FT3 - unable to delete specific row from search table -
in android app i've created virtual table using ft3 searching. table creates, populates fine (using data other tables) , search works fine. can remove rows virtual table (using 'delete '+ search_table), seem unable delete specific row search table.
the virtual table structure follows:
public void createsearchtable(sqlitedatabase db){ string sql = "create virtual table "+search_table+" using fts3 (" + search_c_actid + " text, "+ search_c_text + " text, " + search_c_coursetitle + " text, " + search_c_sectiontitle + " text, " + search_c_activitytitle + " text " + ")"; db.execsql(sql); }
note i've tried creating search_c_actid both text , int - no resulting difference.
however when try of following, nothing happens in search table (i no errors, , shows no rows affected delete query):
string s = search_c_actid + "=?"; string[] args = new string[] { string.valueof(activitydbid) }; int result = db.delete(search_table, s, args); log.d(tag,"delete query result: " + result);
and:
string sql = "delete "+ search_table + " "+ search_c_actid + "=" + activitydbid ; log.d(tag,sql); db.rawquery(sql,null);
and:
string sql = "delete "+ search_table + " "+ search_c_actid + "='" + activitydbid +"'"; log.d(tag,sql); db.rawquery(sql,null);
for info, have checked activitydbid value exist row entry search_c_actid column in search table.
any or assistance appreciated.
Comments
Post a Comment