Skip to content

Commit d793de1

Browse files
committed
pgsql: Use true / false instead of 1 / 0 for bool parameters
Changes done with Coccinelle: @r1@ identifier F; identifier p; typedef bool; parameter list [n1] PL1; parameter list [n2] PL2; @@ F(PL1, bool p, PL2) { ... } @r2@ identifier r1.F; expression list [r1.n1] EL1; expression list [r1.n2] EL2; @@ F(EL1, ( - 1 + true | - 0 + false ) , EL2)
1 parent a5afa4a commit d793de1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4922,7 +4922,7 @@ PHP_PGSQL_API zend_result php_pgsql_convert(PGconn *pg_link, const zend_string *
49224922

49234923
array_init(&meta);
49244924
/* table_name is escaped by php_pgsql_meta_data */
4925-
if (php_pgsql_meta_data(pg_link, table_name, &meta, 0) == FAILURE) {
4925+
if (php_pgsql_meta_data(pg_link, table_name, &meta, false) == FAILURE) {
49264926
zval_ptr_dtor(&meta);
49274927
return FAILURE;
49284928
}

0 commit comments

Comments
 (0)