Merge "sqlite error "unsupported file format" = corruption"

This commit is contained in:
Vasu Nori
2010-06-11 09:55:41 -07:00
committed by Android (Google) Code Review

View File

@@ -531,6 +531,7 @@ void throw_sqlite3_exception(JNIEnv* env, int errcode,
exceptionClass = "android/database/sqlite/SQLiteDiskIOException";
break;
case SQLITE_CORRUPT:
case SQLITE_NOTADB: // treat "unsupported file format" error as corruption also
exceptionClass = "android/database/sqlite/SQLiteDatabaseCorruptException";
break;
case SQLITE_CONSTRAINT: