Use elog() instead of exit() for fatal scanner errors.
This commit is contained in:
parent
251de13afd
commit
67849c84d6
@ -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…
x
Reference in New Issue
Block a user