summaryrefslogtreecommitdiff
path: root/ext/pgsql
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2001-12-18 23:52:55 +0000
committerYasuo Ohgaki <yohgaki@php.net>2001-12-18 23:52:55 +0000
commit8e52216b2ea69859cd1e7aa5f4b8ed642f7e9ca7 (patch)
tree3e386d79682b16c0b0ab02b251459861a835b88d /ext/pgsql
parentee012b03c1141f86231339b186b407b0587bab7a (diff)
downloadphp-git-8e52216b2ea69859cd1e7aa5f4b8ed642f7e9ca7.tar.gz
More proper error message.
Remove old lines that aren't needed.
Diffstat (limited to 'ext/pgsql')
-rw-r--r--ext/pgsql/pgsql.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index feb62ac5e9..76a4f76115 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -848,7 +848,8 @@ PHP_FUNCTION(pg_query)
convert_to_string_ex(query);
if (PQisBusy(pgsql)) {
- php_error(E_NOTICE,"PostgreSQL: Cannot execute query while executing async query.");
+ php_error(E_NOTICE,"%s() cannot execute query while executing async query.",
+ get_active_function_name(TSRMLS_C));
RETURN_FALSE;
}
while ((pgsql_result = PQgetResult(pgsql))) {
@@ -883,10 +884,6 @@ PHP_FUNCTION(pg_query)
pg_result->result = pgsql_result;
pg_result->row = -1;
ZEND_REGISTER_RESOURCE(return_value, pg_result, le_result);
- /*
- Z_LVAL_P(return_value) = zend_list_insert(pg_result,le_result);
- Z_TYPE_P(return_value) = IS_LONG;
- */
} else {
RETURN_FALSE;
}