summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pgsql/pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c
index 269a560996..0b42549a57 100644
--- a/ext/pgsql/pgsql.c
+++ b/ext/pgsql/pgsql.c
@@ -987,7 +987,7 @@ PHP_FUNCTION(pg_affected_rows)
PHP_FUNCTION(pg_last_notice)
{
if (PGG(last_notice)) {
- RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 0);
+ RETURN_STRINGL(PGG(last_notice), PGG(last_notice_len), 1);
} else {
RETURN_FALSE;
}