diff options
| author | Marc Boeren <mboeren@php.net> | 2001-04-18 12:34:52 +0000 |
|---|---|---|
| committer | Marc Boeren <mboeren@php.net> | 2001-04-18 12:34:52 +0000 |
| commit | e2c8e80e2b72a9e7ef095ff74b240e6f7542e6c5 (patch) | |
| tree | 0a5e23c541379084abf7023f476201b4bde37e67 /ext/dbx/dbx_pgsql.c | |
| parent | 9fc2c61698fd9c514a0dbc47f2e53b589cf79d3e (diff) | |
| download | php-git-e2c8e80e2b72a9e7ef095ff74b240e6f7542e6c5.tar.gz | |
Removed some old commented code (Mc)
Diffstat (limited to 'ext/dbx/dbx_pgsql.c')
| -rw-r--r-- | ext/dbx/dbx_pgsql.c | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/ext/dbx/dbx_pgsql.c b/ext/dbx/dbx_pgsql.c index 00b7257a48..4c4dce79b8 100644 --- a/ext/dbx/dbx_pgsql.c +++ b/ext/dbx/dbx_pgsql.c @@ -20,13 +20,7 @@ #include "php_dbx.h" #include "dbx_pgsql.h" #include <string.h> -/* -#ifdef ZTS -extern int dbx_globals_id; -#else -extern ZEND_DBX_API zend_dbx_globals dbx_globals; -#endif -*/ + #define PGSQL_ASSOC 1<<0 #define PGSQL_NUM 1<<1 @@ -156,17 +150,7 @@ int dbx_pgsql_query(zval ** rv, zval ** dbx_handle, zval ** db_name, zval ** sql return 0; } MOVE_RETURNED_TO_RV(rv, returned_zval); -/* - if(strstr(Z_STRVAL_PP(sql_statement), "SELECT") || - strstr(Z_STRVAL_PP(sql_statement), "select")){ - DBXG(row_count) = 0; - args[0]=rv; - nargs = 1; - dbx_call_any_function(INTERNAL_FUNCTION_PARAM_PASSTHRU, "pg_numrows", &num_rows_zval, nargs, args); - DBXG(num_rows) = Z_LVAL_P(num_rows_zval); - } -*/ return 1; } @@ -245,13 +229,8 @@ int dbx_pgsql_getrow(zval ** rv, zval ** result_handle, long row_number, INTERNA ZVAL_LONG(zval_row, row_number); arguments[0]=result_handle; arguments[1]=&zval_row; -/* - DBXG(row_count)++; - if (DBXG(row_count)>DBXG(num_rows)){ - return 0; - } -*/ - if (EG(error_reporting) & E_WARNING){ + + if (EG(error_reporting) & E_WARNING){ save_error_reporting = EG(error_reporting); EG(error_reporting) &= ~E_WARNING; } |
