Commit 67849c84 authored by Peter Eisentraut's avatar Peter Eisentraut

Use elog() instead of exit() for fatal scanner errors.

parent 251de13a
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.85 2001/01/24 19:43:03 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/scan.l,v 1.86 2001/02/03 20:13:05 petere Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -55,6 +55,9 @@ static int myinput(char* buf, int max); ...@@ -55,6 +55,9 @@ static int myinput(char* buf, int max);
/* No reason to constrain amount of data slurped per myinput() call. */ /* No reason to constrain amount of data slurped per myinput() call. */
#define YY_READ_BUF_SIZE 16777216 #define YY_READ_BUF_SIZE 16777216
/* Avoid exit() on fatal scanner errors (a bit ugly -- see yy_fatal_error) */
#define fprintf(file, fmt, msg) elog(FATAL, "%s", (msg))
#else /* !FLEX_SCANNER */ #else /* !FLEX_SCANNER */
#undef input #undef input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment