diff options
Diffstat (limited to 'src/bin/psql/psqlscan.l')
-rw-r--r-- | src/bin/psql/psqlscan.l | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l index 02329b9e757..45dfba8d665 100644 --- a/src/bin/psql/psqlscan.l +++ b/src/bin/psql/psqlscan.l @@ -33,7 +33,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.26 2008/10/29 08:04:53 petere Exp $ + * $PostgreSQL: pgsql/src/bin/psql/psqlscan.l,v 1.27 2008/11/26 00:26:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1453,6 +1453,12 @@ psql_scan_slash_option(PsqlScanState state, error = true; } + if (PQExpBufferBroken(&output)) + { + psql_error("%s: out of memory\n", cmd); + error = true; + } + /* Now done with cmd, transfer result to mybuf */ resetPQExpBuffer(&mybuf); |