Re: [HACKERS] Bug in gram.y? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Bug in gram.y?
Date
Msg-id 199808031820.OAA03170@candle.pha.pa.us
Whole thread Raw
In response to Bug in gram.y?  ("Dr. Michael Meskes" <meskes@online-club.de>)
Responses Re: [HACKERS] Bug in gram.y?
List pgsql-hackers
> It appears to me that there is a bug in gram.y. From looking at the code
> (while working on ecpg) it seems that it doesn't accept a createdb with th
> eoption: with location = ... but without the option with encoding = ...

Looks fine to me:

opt_database1:  LOCATION '=' location           { $$ = $3; }
        | /*EMPTY*/                             { $$ = NULL; }
        ;

opt_database2:  ENCODING '=' encoding           { $$ = $3; }
        | /*EMPTY*/                             { $$ = NULL; }
        ;



--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: "Dr. Michael Meskes"
Date:
Subject: Bug in gram.y?
Next
From: Vince Vielhaber
Date:
Subject: Text indexes...