Dumitru Daniliuc
unread,Nov 17, 2010, 3:07:56 PM11/17/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jeremy Orlow, PhistucK, imiaou, Chromium HTML5
so the problem is that you're trying to execute 2 statements in the same call to executeSql(). when you try to do that, we return SQLITE_ERROR, which apparently has an error message of "not an error"... i'm not sure that there's a better error to return:
http://www.sqlite.org/c3ref/c_abort.html.
if you move your CREATE TRIGGER statement into a separate executeSql() call, you should be fine. we do allow triggers. you will want to add some spaces between 'UPDATE ON items', 'BEGIN', 'UPDATE items', etc. in your statement though; otherwise it's equivalent to: CREATE TRIGGER update_modified_time UPDATE ON itemsBEGINUPDATE items SET updated = NOW();END;. also, you might want to consider changing "CREATE TABLE items" to "CREATE TABLE IF NOT EXISTS items", and do the same thing for the trigger.
dumi