summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
diff options
context:
space:
mode:
authorYasuo Ohgaki <yohgaki@php.net>2006-03-29 01:10:27 +0000
committerYasuo Ohgaki <yohgaki@php.net>2006-03-29 01:10:27 +0000
commitf028fcecb5bc8f11ee1af9fb1c04258b81dd9561 (patch)
treec09f6745b698ee34dd1d451a68ed7bbafc7f0fb1 /ext/pgsql/pgsql.c
parente98f9777db269e0dcb62d5151bb25a0e9fc9da93 (diff)
downloadphp-git-f028fcecb5bc8f11ee1af9fb1c04258b81dd9561.tar.gz
restore E_WARNING in correct place
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r--ext/pgsql/pgsql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 65bc13ea4e..69748001ee 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -1522,6 +1522,7 @@ PHP_FUNCTION(pg_execute)
case PGRES_NONFATAL_ERROR:
case PGRES_FATAL_ERROR:
PQclear(pgsql_result);
+ PHP_PQ_ERROR("Query failed: %s", pgsql);
RETURN_FALSE;
break;
case PGRES_COMMAND_OK: /* successful command that did not return rows */