Re: small bug in ecpg unicode identifier error handling

2022-01-12 Thread Peter Eisentraut
On 10.01.22 14:14, Peter Eisentraut wrote: I think this patch is necessary: diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 07fee80a9c..3529b2ea86 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -753,7 +753,7 @@

Re: small bug in ecpg unicode identifier error handling

2022-01-10 Thread Tom Lane
Peter Eisentraut writes: > I think this patch is necessary: > - if (literallen == 2) /* "U&" */ > + if (literallen == 0) Seems sensible, and matches the corresponding code in scan.l. +1. regards, tom