]> granicus.if.org Git - php/commitdiff
restore E_WARNING in correct place
authorYasuo Ohgaki <yohgaki@php.net>
Wed, 29 Mar 2006 01:10:27 +0000 (01:10 +0000)
committerYasuo Ohgaki <yohgaki@php.net>
Wed, 29 Mar 2006 01:10:27 +0000 (01:10 +0000)
ext/pgsql/pgsql.c

index 65bc13ea4ef38ad5c484a77df2b3015d2edb159f..69748001ee3e1044f1ccc042d5103eedaf3ab4a7 100644 (file)
@@ -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 */