@@ -4225,7 +4225,7 @@ PHP_FUNCTION(pg_flush)
4225
4225
* table_name must not be empty
4226
4226
* TODO: Add meta_data cache for better performance
4227
4227
*/
4228
- PHP_PGSQL_API int php_pgsql_meta_data (PGconn * pg_link , const char * table_name , zval * meta , bool extended )
4228
+ PHP_PGSQL_API zend_result php_pgsql_meta_data (PGconn * pg_link , const char * table_name , zval * meta , bool extended )
4229
4229
{
4230
4230
PGresult * pg_result ;
4231
4231
char * src , * tmp_name , * tmp_name2 = NULL ;
@@ -4550,7 +4550,7 @@ static int php_pgsql_add_quotes(zval *src, bool should_free)
4550
4550
/* {{{ php_pgsql_convert
4551
4551
* check and convert array values (fieldname=>value pair) for sql
4552
4552
*/
4553
- PHP_PGSQL_API int php_pgsql_convert (PGconn * pg_link , const char * table_name , const zval * values , zval * result , zend_ulong opt )
4553
+ PHP_PGSQL_API zend_result php_pgsql_convert (PGconn * pg_link , const char * table_name , const zval * values , zval * result , zend_ulong opt )
4554
4554
{
4555
4555
zend_string * field = NULL ;
4556
4556
zval meta , * def , * type , * not_null , * has_default , * is_enum , * val , new_val ;
@@ -5299,13 +5299,13 @@ static inline void build_tablename(smart_str *querystr, PGconn *pg_link, const c
5299
5299
/* }}} */
5300
5300
5301
5301
/* {{{ php_pgsql_insert */
5302
- PHP_PGSQL_API int php_pgsql_insert (PGconn * pg_link , const char * table , zval * var_array , zend_ulong opt , zend_string * * sql )
5302
+ PHP_PGSQL_API zend_result php_pgsql_insert (PGconn * pg_link , const char * table , zval * var_array , zend_ulong opt , zend_string * * sql )
5303
5303
{
5304
5304
zval * val , converted ;
5305
5305
char buf [256 ];
5306
5306
char * tmp ;
5307
5307
smart_str querystr = {0 };
5308
- int ret = FAILURE ;
5308
+ zend_result ret = FAILURE ;
5309
5309
zend_string * fld ;
5310
5310
5311
5311
assert (pg_link != NULL );
@@ -5564,11 +5564,11 @@ static inline int build_assignment_string(PGconn *pg_link, smart_str *querystr,
5564
5564
/* }}} */
5565
5565
5566
5566
/* {{{ php_pgsql_update */
5567
- 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 )
5567
+ 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 )
5568
5568
{
5569
5569
zval var_converted , ids_converted ;
5570
5570
smart_str querystr = {0 };
5571
- int ret = FAILURE ;
5571
+ zend_result ret = FAILURE ;
5572
5572
5573
5573
assert (pg_link != NULL );
5574
5574
assert (table != NULL );
@@ -5673,11 +5673,11 @@ PHP_FUNCTION(pg_update)
5673
5673
/* }}} */
5674
5674
5675
5675
/* {{{ php_pgsql_delete */
5676
- PHP_PGSQL_API int php_pgsql_delete (PGconn * pg_link , const char * table , zval * ids_array , zend_ulong opt , zend_string * * sql )
5676
+ PHP_PGSQL_API zend_result php_pgsql_delete (PGconn * pg_link , const char * table , zval * ids_array , zend_ulong opt , zend_string * * sql )
5677
5677
{
5678
5678
zval ids_converted ;
5679
5679
smart_str querystr = {0 };
5680
- int ret = FAILURE ;
5680
+ zend_result ret = FAILURE ;
5681
5681
5682
5682
assert (pg_link != NULL );
5683
5683
assert (table != NULL );
@@ -5808,11 +5808,11 @@ PHP_PGSQL_API void php_pgsql_result2array(PGresult *pg_result, zval *ret_array,
5808
5808
/* }}} */
5809
5809
5810
5810
/* {{{ php_pgsql_select */
5811
- 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 )
5811
+ 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 )
5812
5812
{
5813
5813
zval ids_converted ;
5814
5814
smart_str querystr = {0 };
5815
- int ret = FAILURE ;
5815
+ zend_result ret = FAILURE ;
5816
5816
PGresult * pg_result ;
5817
5817
5818
5818
assert (pg_link != NULL );
0 commit comments