summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGeorge Mount <mount@google.com>2013-03-18 18:33:42 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-03-18 18:33:42 +0000
commit42559630d746e79fb139c65b2b12a35742eb0354 (patch)
tree7c7811906890d91bac66a1114b0da8c68bfeaeb1 /src
parentdc7989333319d5042c112805d4244aeeec41e9d7 (diff)
parentfcdcdd7627bcebe97284e200daee9e8e284aa7f4 (diff)
downloadandroid_packages_apps_Gallery2-42559630d746e79fb139c65b2b12a35742eb0354.tar.gz
android_packages_apps_Gallery2-42559630d746e79fb139c65b2b12a35742eb0354.tar.bz2
android_packages_apps_Gallery2-42559630d746e79fb139c65b2b12a35742eb0354.zip
Merge "Fix "drop table" problem." into gb-ub-photos-bryce
Diffstat (limited to 'src')
-rw-r--r--src/com/android/photos/data/PhotoDatabase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/photos/data/PhotoDatabase.java b/src/com/android/photos/data/PhotoDatabase.java
index 3a9ad3cb1..f0aa4b6d4 100644
--- a/src/com/android/photos/data/PhotoDatabase.java
+++ b/src/com/android/photos/data/PhotoDatabase.java
@@ -176,7 +176,7 @@ public class PhotoDatabase extends SQLiteOpenHelper {
protected static void dropTable(SQLiteDatabase db, String table) {
db.beginTransaction();
try {
- db.execSQL("drop table " + table);
+ db.execSQL("drop table if exists " + table);
db.setTransactionSuccessful();
} finally {
db.endTransaction();