|
|
|
@ -212,10 +212,10 @@ PHP_FUNCTION(pg_select); |
|
|
|
/* exported functions */ |
|
|
|
PHP_PGSQL_API int php_pgsql_meta_data(PGconn *pg_link, const char *table_name, zval *meta, zend_bool extended TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_convert(PGconn *pg_link, const char *table_name, const zval *values, zval *result, ulong opt TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *values, ulong opt, char **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_update(PGconn *pg_link, const char *table, zval *values, zval *ids, ulong opt , char **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids, ulong opt, char **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_select(PGconn *pg_link, const char *table, zval *ids, zval *ret_array, ulong opt, char **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *values, ulong opt, zend_string **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_update(PGconn *pg_link, const char *table, zval *values, zval *ids, ulong opt , zend_string **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids, ulong opt, zend_string **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_select(PGconn *pg_link, const char *table, zval *ids, zval *ret_array, ulong opt, zend_string **sql TSRMLS_DC); |
|
|
|
PHP_PGSQL_API int php_pgsql_result2array(PGresult *pg_result, zval *ret_array TSRMLS_DC); |
|
|
|
|
|
|
|
/* internal functions */ |
|
|
|
@ -309,7 +309,6 @@ static php_stream_ops php_stream_pgsql_fd_ops = { |
|
|
|
}; |
|
|
|
|
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(pgsql) |
|
|
|
long default_link; /* default link when connection is omitted */ |
|
|
|
long num_links,num_persistent; |
|
|
|
long max_links,max_persistent; |
|
|
|
long allow_persistent; |
|
|
|
@ -317,6 +316,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pgsql) |
|
|
|
int le_lofp,le_string; |
|
|
|
int ignore_notices,log_notices; |
|
|
|
HashTable notices; /* notice message for each connection */ |
|
|
|
zend_resource *default_link; /* default link when connection is omitted */ |
|
|
|
ZEND_END_MODULE_GLOBALS(pgsql) |
|
|
|
|
|
|
|
ZEND_EXTERN_MODULE_GLOBALS(pgsql) |
|
|
|
|