From e3ed942e3bbe4afb740ce6fe7338f93e560c0b30 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Mon, 5 May 2003 01:59:02 +0000
Subject: [PATCH] Not sure why parser() was still doing clearerr(stdin) ... but
 it's *got* to be pointless.

---
 src/backend/parser/parser.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/backend/parser/parser.c b/src/backend/parser/parser.c
index 37436d30079..5fc75365e6c 100644
--- a/src/backend/parser/parser.c
+++ b/src/backend/parser/parser.c
@@ -14,7 +14,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.57 2003/04/29 22:13:10 tgl Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.58 2003/05/05 01:59:02 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -55,7 +55,6 @@ raw_parser(const char *str)
 	yyresult = yyparse();
 
 	scanner_finish();
-	clearerr(stdin);
 
 	if (yyresult)				/* error */
 		return NIL;
-- 
GitLab