am afbad523: am b720ed31: revert previously submitted CL 34143.

Merge commit 'afbad5230eedafb4ec4d2fbd6341e86cf0ea9c4e'

* commit 'afbad5230eedafb4ec4d2fbd6341e86cf0ea9c4e':
  revert previously submitted CL 34143.
This commit is contained in:
Vasu Nori 2009-12-04 09:45:44 -08:00 committed by Android Git Automerger
commit 541fa47ee3

View File

@ -369,7 +369,7 @@ public class EmailProvider extends ContentProvider {
"; end"); "; end");
// Change a message's read state // Change a message's read state
db.execSQL("create trigger unread_message_read AFTER update of " + db.execSQL("create trigger unread_message_read before update of " +
MessageColumns.FLAG_READ + " on " + Message.TABLE_NAME + MessageColumns.FLAG_READ + " on " + Message.TABLE_NAME +
" when OLD." + MessageColumns.FLAG_READ + "!=NEW." + MessageColumns.FLAG_READ + " when OLD." + MessageColumns.FLAG_READ + "!=NEW." + MessageColumns.FLAG_READ +
" begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT + " begin update " + Mailbox.TABLE_NAME + " set " + MailboxColumns.UNREAD_COUNT +
@ -408,7 +408,7 @@ public class EmailProvider extends ContentProvider {
+ ");"; + ");";
db.execSQL("create table " + Account.TABLE_NAME + s); db.execSQL("create table " + Account.TABLE_NAME + s);
// Deleting an account deletes associated Mailboxes and HostAuth's // Deleting an account deletes associated Mailboxes and HostAuth's
db.execSQL("create trigger account_delete AFTER delete on " + Account.TABLE_NAME + db.execSQL("create trigger account_delete before delete on " + Account.TABLE_NAME +
" begin delete from " + Mailbox.TABLE_NAME + " begin delete from " + Mailbox.TABLE_NAME +
" where " + MailboxColumns.ACCOUNT_KEY + "=old." + EmailContent.RECORD_ID + " where " + MailboxColumns.ACCOUNT_KEY + "=old." + EmailContent.RECORD_ID +
"; delete from " + HostAuth.TABLE_NAME + "; delete from " + HostAuth.TABLE_NAME +