postgres.git / summary / log / commit / refs

commit    3fc81ce459e1696f7e5e5b3b8229409413bf64b4
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Sat Jan 23 00:25:39 2021 +0000
First released in: 14.0

    Suppress bison warning in ecpg grammar.
    
    opt_distinct_clause is only used in PLpgSQL_Expr, which ecpg
    ignores, so it needs to ignore opt_distinct_clause too.
    
    My oversight in 7cd9765f9; reported by Bruce Momjian.
    
    Discussion: https://postgr.es/m/E1l33wr-0005sJ-9n@gemulon.postgresql.org


src/interfaces/ecpg/preproc/parse.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/ecpg/preproc/parse.pl b/src/interfaces/ecpg/preproc/parse.pl index a84243fc8f0..e46d2a589b4 100644 --- a/src/interfaces/ecpg/preproc/parse.pl +++ b/src/interfaces/ecpg/preproc/parse.pl @@ -71,6 +71,7 @@ my %replace_types = ( 'type_function_name' => 'ignore', 'ColLabel' => 'ignore', 'Sconst' => 'ignore', + 'opt_distinct_clause' => 'ignore', 'PLpgSQL_Expr' => 'ignore', 'PLAssignStmt' => 'ignore', 'plassign_target' => 'ignore', [parent: 50bebc1ae180]