File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ struct _php_sqlite3_result_object {
94
94
php_sqlite3_db_object * db_obj ;
95
95
php_sqlite3_stmt * stmt_obj ;
96
96
97
- int is_prepared_statement ;
97
+ bool is_prepared_statement ;
98
98
/* Cache of column names to speed up repeated fetchArray(SQLITE3_ASSOC) calls.
99
99
* Cache is cleared on reset() and finalize() calls. */
100
100
int column_count ;
Original file line number Diff line number Diff line change @@ -1782,7 +1782,7 @@ PHP_METHOD(SQLite3Stmt, execute)
1782
1782
object_init_ex (return_value , php_sqlite3_result_entry );
1783
1783
result = Z_SQLITE3_RESULT_P (return_value );
1784
1784
1785
- result -> is_prepared_statement = 1 ;
1785
+ result -> is_prepared_statement = true ;
1786
1786
result -> db_obj = stmt_obj -> db_obj ;
1787
1787
result -> stmt_obj = stmt_obj ;
1788
1788
result -> column_names = NULL ;
@@ -2027,7 +2027,7 @@ PHP_METHOD(SQLite3Result, finalize)
2027
2027
sqlite3result_clear_column_names_cache (result_obj );
2028
2028
2029
2029
/* We need to finalize an internal statement */
2030
- if (result_obj -> is_prepared_statement == 0 ) {
2030
+ if (! result_obj -> is_prepared_statement ) {
2031
2031
zend_llist_del_element (& (result_obj -> db_obj -> free_list ), & result_obj -> stmt_obj ,
2032
2032
(int (* )(void * , void * )) php_sqlite3_compare_stmt_free );
2033
2033
} else {
You can’t perform that action at this time.
0 commit comments