diff options
| author | Tom Lane | 2003-05-29 22:30:02 +0000 |
|---|---|---|
| committer | Tom Lane | 2003-05-29 22:30:02 +0000 |
| commit | 5666462f2e60ffc5c7cf4670381313687625bae4 (patch) | |
| tree | c5d96da3ffb1c405cada8ec1609dda50a9ef6543 /src/pl | |
| parent | 4fb5b92769e67aff9f9c4b838c047248e7e01f85 (diff) | |
Ensure that in all flex lexers that are part of the backend, a
yy_fatal_error() call results in elog(ERROR) not exit(). This was
already fixed in the main lexer and plpgsql, but extend same technique
to all the other dot-l files. Also, on review of the possible calls
to yy_fatal_error(), it seems safe to use elog(ERROR) not elog(FATAL).
Diffstat (limited to 'src/pl')
| -rw-r--r-- | src/pl/plpgsql/src/scan.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pl/plpgsql/src/scan.l b/src/pl/plpgsql/src/scan.l index 5f7e162f08e..e6614bf8100 100644 --- a/src/pl/plpgsql/src/scan.l +++ b/src/pl/plpgsql/src/scan.l @@ -4,7 +4,7 @@ * procedural language * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.25 2003/05/05 16:46:28 tgl Exp $ + * $Header: /cvsroot/pgsql/src/pl/plpgsql/src/Attic/scan.l,v 1.26 2003/05/29 22:30:02 tgl Exp $ * * This software is copyrighted by Jan Wieck - Hamburg. * @@ -43,7 +43,7 @@ #define YY_READ_BUF_SIZE 16777216 /* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */ -#define fprintf(file, fmt, msg) ereport(FATAL, (errmsg_internal("%s", msg))) +#define fprintf(file, fmt, msg) ereport(ERROR, (errmsg_internal("%s", msg))) /* Handles to the buffer that the lexer uses internally */ static YY_BUFFER_STATE scanbufhandle; |
