mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Convert is_prepared_statement to bool
This commit is contained in:
parent
e14f9f4c42
commit
dbf7d4402c
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ struct _php_sqlite3_result_object {
|
|||
php_sqlite3_db_object *db_obj;
|
||||
php_sqlite3_stmt *stmt_obj;
|
||||
|
||||
int is_prepared_statement;
|
||||
bool is_prepared_statement;
|
||||
/* Cache of column names to speed up repeated fetchArray(SQLITE3_ASSOC) calls.
|
||||
* Cache is cleared on reset() and finalize() calls. */
|
||||
int column_count;
|
||||
|
|
|
@ -1782,7 +1782,7 @@ PHP_METHOD(SQLite3Stmt, execute)
|
|||
object_init_ex(return_value, php_sqlite3_result_entry);
|
||||
result = Z_SQLITE3_RESULT_P(return_value);
|
||||
|
||||
result->is_prepared_statement = 1;
|
||||
result->is_prepared_statement = true;
|
||||
result->db_obj = stmt_obj->db_obj;
|
||||
result->stmt_obj = stmt_obj;
|
||||
result->column_names = NULL;
|
||||
|
@ -2027,7 +2027,7 @@ PHP_METHOD(SQLite3Result, finalize)
|
|||
sqlite3result_clear_column_names_cache(result_obj);
|
||||
|
||||
/* We need to finalize an internal statement */
|
||||
if (result_obj->is_prepared_statement == 0) {
|
||||
if (!result_obj->is_prepared_statement) {
|
||||
zend_llist_del_element(&(result_obj->db_obj->free_list), &result_obj->stmt_obj,
|
||||
(int (*)(void *, void *)) php_sqlite3_compare_stmt_free);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue