From: Yasuo Ohgaki Date: Wed, 29 Mar 2006 01:10:27 +0000 (+0000) Subject: restore E_WARNING in correct place X-Git-Tag: RELEASE_1_3~206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f028fcecb5bc8f11ee1af9fb1c04258b81dd9561;p=php restore E_WARNING in correct place --- 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 */