Lines Matching refs:errcode

74 static void php_sqlite3_error(php_sqlite3_db_object *db_obj, int errcode, const char *format, ...)  in php_sqlite3_error()  argument
84 zend_throw_exception(php_sqlite3_exception_ce, message, errcode); in php_sqlite3_error()
180 int errcode; in PHP_METHOD() local
190 errcode = sqlite3_close(db_obj->db); in PHP_METHOD()
191 if (errcode != SQLITE_OK) { in PHP_METHOD()
192 php_sqlite3_error(db_obj, errcode, "Unable to close database: %s", sqlite3_errmsg(db_obj->db)); in PHP_METHOD()
208 int errcode; in PHP_METHOD() local
219 errcode = sqlite3_exec(db_obj->db, ZSTR_VAL(sql), NULL, NULL, &errtext); in PHP_METHOD()
221 if (errcode != SQLITE_OK) { in PHP_METHOD()
222 php_sqlite3_error(db_obj, errcode, "%s", errtext); in PHP_METHOD()
505 int errcode; in PHP_METHOD() local
525 errcode = sqlite3_prepare_v2(db_obj->db, ZSTR_VAL(sql), ZSTR_LEN(sql), &(stmt_obj->stmt), NULL); in PHP_METHOD()
526 if (errcode != SQLITE_OK) { in PHP_METHOD()
527 php_sqlite3_error(db_obj, errcode, "Unable to prepare statement: %s", sqlite3_errmsg(db_obj->db)); in PHP_METHOD()
567 int errcode; in PHP_METHOD() local
568 errcode = sqlite3_exec(db_obj->db, ZSTR_VAL(sql), NULL, NULL, &errtext); in PHP_METHOD()
569 if (errcode != SQLITE_OK) { in PHP_METHOD()
570 php_sqlite3_error(db_obj, errcode, "%s", errtext); in PHP_METHOD()
685 int errcode; in PHP_METHOD() local
686 errcode = sqlite3_exec(db_obj->db, ZSTR_VAL(sql), NULL, NULL, &errtext); in PHP_METHOD()
687 if (errcode != SQLITE_OK) { in PHP_METHOD()
688 php_sqlite3_error(db_obj, errcode, "%s", errtext); in PHP_METHOD()
1841 int errcode; in PHP_METHOD() local
1861 errcode = sqlite3_prepare_v2(db_obj->db, ZSTR_VAL(sql), ZSTR_LEN(sql), &(stmt_obj->stmt), NULL); in PHP_METHOD()
1862 if (errcode != SQLITE_OK) { in PHP_METHOD()
1863 php_sqlite3_error(db_obj, errcode, "Unable to prepare statement: %s", sqlite3_errmsg(db_obj->db)); in PHP_METHOD()