summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2011-01-07 12:40:16 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-07 12:40:16 -0800
commitdf22d839aa1268a8137cadb4f036fd88946aa112 (patch)
tree0bef64a1fc16bb46c5ab85e7121a5deaa86a58b0
parentccdf3853b505f56a8bc52ee038dfe07aa87eb088 (diff)
parent324dbe508e7afdae201fe378f1aca4227baf6c06 (diff)
downloadframeworks_base-df22d839aa1268a8137cadb4f036fd88946aa112.zip
frameworks_base-df22d839aa1268a8137cadb4f036fd88946aa112.tar.gz
frameworks_base-df22d839aa1268a8137cadb4f036fd88946aa112.tar.bz2
Merge "in requery(), when exception is caught, print warning + stacktrace" into honeycomb
-rw-r--r--core/java/android/database/sqlite/SQLiteCursor.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/database/sqlite/SQLiteCursor.java b/core/java/android/database/sqlite/SQLiteCursor.java
index 26a1440..4c2d123 100644
--- a/core/java/android/database/sqlite/SQLiteCursor.java
+++ b/core/java/android/database/sqlite/SQLiteCursor.java
@@ -412,6 +412,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
db = mQuery.mDatabase.getDatabaseHandle(mQuery.mSql);
} catch (IllegalStateException e) {
// for backwards compatibility, just return false
+ Log.w(TAG, "requery() failed " + e.getMessage(), e);
return false;
}
if (!db.equals(mQuery.mDatabase)) {
@@ -421,6 +422,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
db.lock();
} catch (IllegalStateException e) {
// for backwards compatibility, just return false
+ Log.w(TAG, "requery() failed " + e.getMessage(), e);
return false;
}
try {
@@ -429,6 +431,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
mQuery = new SQLiteQuery(db, mQuery);
} catch (IllegalStateException e) {
// for backwards compatibility, just return false
+ Log.w(TAG, "requery() failed " + e.getMessage(), e);
return false;
} finally {
db.unlock();
@@ -443,6 +446,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
mQuery.requery();
} catch (IllegalStateException e) {
// for backwards compatibility, just return false
+ Log.w(TAG, "requery() failed " + e.getMessage(), e);
return false;
} finally {
queryThreadUnlock();
@@ -459,6 +463,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
result = super.requery();
} catch (IllegalStateException e) {
// for backwards compatibility, just return false
+ Log.w(TAG, "requery() failed " + e.getMessage(), e);
}
if (Config.LOGV) {
long timeEnd = System.currentTimeMillis();