Lines Matching refs:err

88     int err = sqlite3_config(SQLITE_CONFIG_LOG, &sqlLogger, (void *)createStr(path));
89 if (err != SQLITE_OK) {
90 LOGE("sqlite_config failed error_code = %d. THIS SHOULD NEVER occur.\n", err);
99 int err;
117 err = sqlite3_open_v2(path8, &handle, sqliteFlags, NULL);
118 if (err != SQLITE_OK) {
130 err = sqlite3_busy_timeout(handle, 1000 /* ms */);
131 if (err != SQLITE_OK) {
139 err = sqlite3_prepare_v2(handle, integritySql, -1, &statement, NULL);
140 if (err != SQLITE_OK) {
147 err = sqlite3_step(statement);
148 if (err != SQLITE_ROW) {
162 err = register_android_functions(handle, UTF16_STORAGE);
163 if (err) {
246 int err;
258 err = sqlite3_prepare16_v2(handle, sql, sqlLen * 2, &statement, NULL);
262 if (err != SQLITE_OK) {
264 LOGE("Failure %d (%s) on %p when preparing '%s'.\n", err, sqlite3_errmsg(handle), handle, sql8);
271 err = sqlite3_finalize(statement);
278 LOGE("Failure %d (%s) on %p when executing '%s'\n", err, sqlite3_errmsg(handle), handle, sql8);
325 int err;
336 err = sqlite3_exec(handle, createSql, NULL, NULL, NULL);
337 if (err != SQLITE_OK) {
346 err = sqlite3_get_table(handle, selectSql, &meta, &rowCount, &colCount, NULL);
347 if (err != SQLITE_OK) {
357 err = register_localized_collators(handle, locale8, UTF16_STORAGE);
358 if (err != SQLITE_OK) throw_sqlite3_exception(env, handle);
365 err = register_localized_collators(handle, locale8, UTF16_STORAGE);
366 if (err != SQLITE_OK) throw_sqlite3_exception(env, handle);
371 err = sqlite3_exec(handle, "BEGIN TRANSACTION", NULL, NULL, NULL);
372 if (err != SQLITE_OK) {
378 err = register_localized_collators(handle, locale8, UTF16_STORAGE);
379 if (err != SQLITE_OK) {
385 err = sqlite3_exec(handle, "DELETE FROM " ANDROID_TABLE, NULL, NULL, NULL);
386 if (err != SQLITE_OK) {
393 err = sqlite3_prepare_v2(handle, sql, -1, &stmt, NULL);
394 if (err != SQLITE_OK) {
400 err = sqlite3_bind_text(stmt, 1, locale8, -1, SQLITE_TRANSIENT);
401 if (err != SQLITE_OK) {
407 err = sqlite3_step(stmt);
408 if (err != SQLITE_OK && err != SQLITE_DONE) {
414 err = sqlite3_exec(handle, "REINDEX LOCALIZED", NULL, NULL, NULL);
415 if (err != SQLITE_OK) {
422 err = sqlite3_exec(handle, "COMMIT TRANSACTION", NULL, NULL, NULL);
423 if (err != SQLITE_OK) {
430 if (err != SQLITE_OK) {