fix for BUG#599 & BUG 606
Please apply patch.
----- Original Message -----
From: Nicolas Bazin
To: pgsql-patches@postgresql.org
Sent: Tuesday, March 05, 2002 12:08 PM
Subject: Re: BUG#599 & BUG 606 correction
The end of a define section is tested too soon during the parsing of ecpg. This patch makes sure that the parser only do the test at the end of the file being parsed.
Please apply this patch to src/interface/ecpg/preproc/pgc.l
Nicolas BAZIN
Attachments:
pgc.l.diffapplication/octet-stream; name=pgc.l.diffDownload
*** pgc.l Tue Mar 5 11:52:36 2002
--- /home/postgres/postgresql-7.2.old/src/interfaces/ecpg/preproc/pgc.l Thu Jan 10 10:42:54 2002
***************
*** 864,871 ****
}
<<EOF>> {
-
- if (yy_buffer == NULL) {
if ( preproc_tos > 0 ) {
preproc_tos = 0;
--- 864,869 ----
}
<<EOF>> {
if ( preproc_tos > 0 ) {
preproc_tos = 0;
***************
*** 871,876 ****
mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
}
yyterminate();
}
else
--- 869,876 ----
mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
}
+
+ if (yy_buffer == NULL)
yyterminate();
else
{
***************
*** 872,878 ****
mmerror(PARSE_ERROR, ET_FATAL, "Missing 'EXEC SQL ENDIF;'");
}
yyterminate();
- }
else
{
struct _yy_buffer *yb = yy_buffer;
--- 872,877 ----
if (yy_buffer == NULL)
yyterminate();
else
{
struct _yy_buffer *yb = yy_buffer;
Your patch has been added to the PostgreSQL unapplied patches list at:
http://candle.pha.pa.us/cgi-bin/pgpatches
I will try to apply it within the next 48 hours.
---------------------------------------------------------------------------
Nicolas Bazin wrote:
Please apply patch.
----- Original Message -----
From: Nicolas Bazin
To: pgsql-patches@postgresql.org
Sent: Tuesday, March 05, 2002 12:08 PM
Subject: Re: BUG#599 & BUG 606 correctionThe end of a define section is tested too soon during the parsing of ecpg. This patch makes sure that the parser only do the test at the end of the file being parsed.
Please apply this patch to src/interface/ecpg/preproc/pgc.l
Nicolas BAZIN
[ Attachment, skipping... ]
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Patch applied by Michael Meskes. Thanks.
---------------------------------------------------------------------------
Nicolas Bazin wrote:
Please apply patch.
----- Original Message -----
From: Nicolas Bazin
To: pgsql-patches@postgresql.org
Sent: Tuesday, March 05, 2002 12:08 PM
Subject: Re: BUG#599 & BUG 606 correctionThe end of a define section is tested too soon during the parsing of ecpg. This patch makes sure that the parser only do the test at the end of the file being parsed.
Please apply this patch to src/interface/ecpg/preproc/pgc.l
Nicolas BAZIN
[ Attachment, skipping... ]
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026