From 2bf9590ddd463d39cc4dc73e26aaf5dd590415b2 Mon Sep 17 00:00:00 2001 From: Jerry Xie Date: Tue, 10 Dec 2013 16:46:45 -0800 Subject: [PATCH] Fix SQLite update query Change-Id: I54a5e2f29e1e171901e7087e27d132256460f0f5 --- src/com/android/email/provider/DBHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/provider/DBHelper.java b/src/com/android/email/provider/DBHelper.java index d066bd6e8..d38dc44b4 100644 --- a/src/com/android/email/provider/DBHelper.java +++ b/src/com/android/email/provider/DBHelper.java @@ -1347,7 +1347,7 @@ public final class DBHelper { // Add the credentialKey column, and set it to -1 for all pre-existing hostAuths. db.execSQL("alter table " + HostAuth.TABLE_NAME + " add " + HostAuthColumns.CREDENTIAL_KEY + " integer"); - db.execSQL("update table " + HostAuth.TABLE_NAME + " set " + db.execSQL("update " + HostAuth.TABLE_NAME + " set " + HostAuthColumns.CREDENTIAL_KEY + "=-1"); } }