Thread: ecpg: INITALLY DEFERRED translated into intially deferrable

ecpg: INITALLY DEFERRED translated into intially deferrable

From
pgsql-bugs@postgresql.org
Date:
() reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
ecpg: INITALLY DEFERRED translated into intially deferrable

Long Description
The SQL preprocessor ecpg generates "initially deferrable" from
INITIALLY DEFERRED in source code. cf. preproc.y:1455.


Sample Code


No file was uploaded with this report

Re: ecpg: INITALLY DEFERRED translated into intially deferrable

From
Bruce Momjian
Date:
>  () reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> ecpg: INITALLY DEFERRED translated into intially deferrable
>
> Long Description
> The SQL preprocessor ecpg generates "initially deferrable" from
> INITIALLY DEFERRED in source code. cf. preproc.y:1455.

Good catch.  Patch applied.  I checked the others and they looked OK.

--
  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
Index: src/interfaces/ecpg/preproc/preproc.y
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/ecpg/preproc/preproc.y,v
retrieving revision 1.143
diff -c -r1.143 preproc.y
*** src/interfaces/ecpg/preproc/preproc.y    2001/07/10 22:09:29    1.143
--- src/interfaces/ecpg/preproc/preproc.y    2001/07/11 17:28:35
***************
*** 1460,1466 ****
                  ;

  ConstraintTimeSpec: INITIALLY IMMEDIATE        { $$ = make_str("initially immediate"); }
!                 | INITIALLY DEFERRED    { $$ = make_str("initially deferrable"); }
                  ;

  DropTrigStmt:  DROP TRIGGER name ON relation_name
--- 1460,1466 ----
                  ;

  ConstraintTimeSpec: INITIALLY IMMEDIATE        { $$ = make_str("initially immediate"); }
!                 | INITIALLY DEFERRED    { $$ = make_str("initially deferred"); }
                  ;

  DropTrigStmt:  DROP TRIGGER name ON relation_name