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

REL7_1_STABLE
Peter Eisentraut 25 years ago
parent 251de13afd
commit 67849c84d6
  1. 5
      src/backend/parser/scan.l

@ -9,7 +9,7 @@
*
*
* 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);
/* No reason to constrain amount of data slurped per myinput() call. */
#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 */
#undef input

Loading…
Cancel
Save