Re: small bug in ecpg unicode identifier error handling

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: small bug in ecpg unicode identifier error handling
Date: 2022-01-10 15:05:22
Message-ID: 2189118.1641827122@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> 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 lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2022-01-10 15:14:10 Re: Fix vcregress plpython3 warning
Previous Message Alvaro Herrera 2022-01-10 14:52:35 Re: reporting TID/table with corruption error