projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50bebc1
)
Suppress bison warning in ecpg grammar.
author
Tom Lane
<
[email protected]
>
Sat, 23 Jan 2021 00:25:39 +0000
(19:25 -0500)
committer
Tom Lane
<
[email protected]
>
Sat, 23 Jan 2021 00:25:39 +0000
(19:25 -0500)
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/
[email protected]
src/interfaces/ecpg/preproc/parse.pl
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/preproc/parse.pl
b/src/interfaces/ecpg/preproc/parse.pl
index a84243fc8f0e72dc627dc0af8e787ba35ac6d1fc..e46d2a589b432fd727cb6f35ecf5dc6f5cae298b 100644
(file)
--- 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',