@@ -4231,7 +4231,7 @@ PHP_FUNCTION(pg_flush)
4231
4231
* table_name must not be empty
4232
4232
* TODO: Add meta_data cache for better performance
4233
4233
*/
4234
- PHP_PGSQL_API int php_pgsql_meta_data (PGconn * pg_link , const char * table_name , zval * meta , bool extended )
4234
+ PHP_PGSQL_API zend_result php_pgsql_meta_data (PGconn * pg_link , const char * table_name , zval * meta , bool extended )
4235
4235
{
4236
4236
PGresult * pg_result ;
4237
4237
char * src , * tmp_name , * tmp_name2 = NULL ;
@@ -4556,7 +4556,7 @@ static int php_pgsql_add_quotes(zval *src, bool should_free)
4556
4556
/* {{{ php_pgsql_convert
4557
4557
* check and convert array values (fieldname=>value pair) for sql
4558
4558
*/
4559
- PHP_PGSQL_API int php_pgsql_convert (PGconn * pg_link , const char * table_name , const zval * values , zval * result , zend_ulong opt )
4559
+ PHP_PGSQL_API zend_result php_pgsql_convert (PGconn * pg_link , const char * table_name , const zval * values , zval * result , zend_ulong opt )
4560
4560
{
4561
4561
zend_string * field = NULL ;
4562
4562
zval meta , * def , * type , * not_null , * has_default , * is_enum , * val , new_val ;
@@ -5306,13 +5306,13 @@ static inline void build_tablename(smart_str *querystr, PGconn *pg_link, const c
5306
5306
/* }}} */
5307
5307
5308
5308
/* {{{ php_pgsql_insert */
5309
- PHP_PGSQL_API int php_pgsql_insert (PGconn * pg_link , const char * table , zval * var_array , zend_ulong opt , zend_string * * sql )
5309
+ PHP_PGSQL_API zend_result php_pgsql_insert (PGconn * pg_link , const char * table , zval * var_array , zend_ulong opt , zend_string * * sql )
5310
5310
{
5311
5311
zval * val , converted ;
5312
5312
char buf [256 ];
5313
5313
char * tmp ;
5314
5314
smart_str querystr = {0 };
5315
- int ret = FAILURE ;
5315
+ zend_result ret = FAILURE ;
5316
5316
zend_string * fld ;
5317
5317
5318
5318
ZEND_ASSERT (pg_link != NULL );
@@ -5572,11 +5572,11 @@ static inline int build_assignment_string(PGconn *pg_link, smart_str *querystr,
5572
5572
/* }}} */
5573
5573
5574
5574
/* {{{ php_pgsql_update */
5575
- PHP_PGSQL_API int php_pgsql_update (PGconn * pg_link , const char * table , zval * var_array , zval * ids_array , zend_ulong opt , zend_string * * sql )
5575
+ PHP_PGSQL_API zend_result php_pgsql_update (PGconn * pg_link , const char * table , zval * var_array , zval * ids_array , zend_ulong opt , zend_string * * sql )
5576
5576
{
5577
5577
zval var_converted , ids_converted ;
5578
5578
smart_str querystr = {0 };
5579
- int ret = FAILURE ;
5579
+ zend_result ret = FAILURE ;
5580
5580
5581
5581
ZEND_ASSERT (pg_link != NULL );
5582
5582
ZEND_ASSERT (table != NULL );
@@ -5682,11 +5682,11 @@ PHP_FUNCTION(pg_update)
5682
5682
/* }}} */
5683
5683
5684
5684
/* {{{ php_pgsql_delete */
5685
- PHP_PGSQL_API int php_pgsql_delete (PGconn * pg_link , const char * table , zval * ids_array , zend_ulong opt , zend_string * * sql )
5685
+ PHP_PGSQL_API zend_result php_pgsql_delete (PGconn * pg_link , const char * table , zval * ids_array , zend_ulong opt , zend_string * * sql )
5686
5686
{
5687
5687
zval ids_converted ;
5688
5688
smart_str querystr = {0 };
5689
- int ret = FAILURE ;
5689
+ zend_result ret = FAILURE ;
5690
5690
5691
5691
ZEND_ASSERT (pg_link != NULL );
5692
5692
ZEND_ASSERT (table != NULL );
@@ -5819,11 +5819,11 @@ PHP_PGSQL_API void php_pgsql_result2array(PGresult *pg_result, zval *ret_array,
5819
5819
/* }}} */
5820
5820
5821
5821
/* {{{ php_pgsql_select */
5822
- PHP_PGSQL_API int php_pgsql_select (PGconn * pg_link , const char * table , zval * ids_array , zval * ret_array , zend_ulong opt , long result_type , zend_string * * sql )
5822
+ PHP_PGSQL_API zend_result php_pgsql_select (PGconn * pg_link , const char * table , zval * ids_array , zval * ret_array , zend_ulong opt , long result_type , zend_string * * sql )
5823
5823
{
5824
5824
zval ids_converted ;
5825
5825
smart_str querystr = {0 };
5826
- int ret = FAILURE ;
5826
+ zend_result ret = FAILURE ;
5827
5827
PGresult * pg_result ;
5828
5828
5829
5829
ZEND_ASSERT (pg_link != NULL );
0 commit comments