Matt
Hi,I can't get sqlite3 delete function to work.To test it I used to following command to run Tasker shell command. I check "use root" and "continue if error" and error pass to %err.sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "select * from sms where address='XXXXXXX' and body like 'YYYYYYY%';"and Tasker Alert pop to display the return value. I got the selected sms correctly. and there is no error. (error code %err return = 0)But when I changed the command line tosqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "delete from sms where address='XXXXXXX' and body like 'YYYYYYY%';"I got nothing and the tasker shell command return error (error code %err return = 1)What did I do wrong? I have searched other sqlite3 example, my line seems to be correct.Thanks
On Wednesday, January 23, 2013 3:18:42 PM UTC+8, Cathy Lansy wrote:
Hi,I can't get sqlite3 delete function to work.To test it I used to following command to run Tasker shell command. I check "use root" and "continue if error" and error pass to %err.sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "select * from sms where address='XXXXXXX' and body like 'YYYYYYY%';"and Tasker Alert pop to display the return value. I got the selected sms correctly. and there is no error. (error code %err return = 0)But when I changed the command line tosqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "delete from sms where address='XXXXXXX' and body like 'YYYYYYY%';"I got nothing and the tasker shell command return error (error code %err return = 1)What did I do wrong? I have searched other sqlite3 example, my line seems to be correct.
Thanks
On Wednesday, January 23, 2013 3:18:42 PM UTC+8, Cathy Lansy wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/kn9r4I2CPQ8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Tom
--
sqlite3 /data/data/com.android.providers.telephony/databases/mmssms.db "begin transaction; DROP TRIGGER sms_words_delete; DELETE from sms where address='XXXXXXX' and body like 'YYYYYYY%'; CREATE TRIGGER sms_words_delete AFTER DELETE ON sms BEGIN DELETE FROM words WHERE source_id = OLD._id AND table_to_use = 1; END; commit;"
sqlite3 \/data/data/com.android.providers.telephony/databases/mmssms.db " \begin transaction; \DROP TRIGGER sms_words_delete; \DELETE from sms where address='XXXXXXX' and body like 'YYYYYYY%'; \CREATE TRIGGER sms_words_delete AFTER DELETE ON sms \BEGIN \DELETE FROM words WHERE source_id = OLD._id AND table_to_use = 1; \END; \commit; "
David Marchbanks of ptsoft.org has graciously updated the sqlite3 binary (3.7.16) to include the FTS3 module. Disabling/re-enabling the trigger should no longer be necessary for us Galaxy S3 users.
I am attaching the schema just in case I have missed something there.I would appreciate any feedback on weather someone has made this work on kitkat.