Merge "increase sql statement printed in finalier warnings from 100 to 1000"

This commit is contained in:
Vasu Nori
2010-10-25 12:08:46 -07:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ import android.util.Log;
StrictMode.onSqliteObjectLeaked(
"Releasing statement in a finalizer. Please ensure " +
"that you explicitly call close() on your cursor: " +
mSqlStmt.substring(0, (len > 100) ? 100 : len),
mSqlStmt.substring(0, (len > 1000) ? 1000 : len),
mStackTrace);
}
releaseSqlStatement();

View File

@@ -513,7 +513,7 @@ public class SQLiteCursor extends AbstractWindowedCursor {
StrictMode.onSqliteObjectLeaked(
"Finalizing a Cursor that has not been deactivated or closed. " +
"database = " + mQuery.mDatabase.getPath() + ", table = " + mEditTable +
", query = " + mQuery.mSql.substring(0, (len > 100) ? 100 : len),
", query = " + mQuery.mSql.substring(0, (len > 1000) ? 1000 : len),
mStackTrace);
}
close();