Correct the reference for plpgsql_yyparse()
Started by Japin Liabout 1 year ago2 messages
Hi, hackers
When I read the PL/pgSQL source code, I found that plpgsql_yyparse() is defined
in pl_gram.y, however, the comment says it is defined in gram.y.
PFA.
--
Regrads,
Japin Li
Attachments:
0001-Correct-the-reference-for-function-plpgsql_yyparse.patchtext/x-diffDownload
From 9629535310eef217f195fc3526d8227b9f6ab29c Mon Sep 17 00:00:00 2001
From: Japin Li <japinli@hotmail.com>
Date: Mon, 30 Dec 2024 16:59:52 +0800
Subject: [PATCH] Correct the reference for function plpgsql_yyparse()
---
src/pl/plpgsql/src/plpgsql.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pl/plpgsql/src/plpgsql.h b/src/pl/plpgsql/src/plpgsql.h
index 50c3b28472..ffa7129c03 100644
--- a/src/pl/plpgsql/src/plpgsql.h
+++ b/src/pl/plpgsql/src/plpgsql.h
@@ -1333,7 +1333,7 @@ extern void plpgsql_scanner_init(const char *str);
extern void plpgsql_scanner_finish(void);
/*
- * Externs in gram.y
+ * Externs in pl_gram.y
*/
extern int plpgsql_yyparse(void);
--
2.43.0
Re: Correct the reference for plpgsql_yyparse()
Japin Li <japinli@hotmail.com> writes:
When I read the PL/pgSQL source code, I found that plpgsql_yyparse() is defined
in pl_gram.y, however, the comment says it is defined in gram.y.
Yeah, apparently missed when we renamed that file years ago.
Pushed, thanks for spotting this!
regards, tom lane