pgsql: ecpg: Catch zero-length Unicode identifiers correctly

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: ecpg: Catch zero-length Unicode identifiers correctly
Date: 2022-01-12 09:59:06
Message-ID: E1n7aPK-0000Ix-V7@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

ecpg: Catch zero-length Unicode identifiers correctly

The previous code to detect a zero-length identifier when using
Unicode identifiers such as

exec sql select u&"";

did not work. This fixes that.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://www.postgresql.org/message-id/flat/82fafa79-331c-9d65-e51b-8b5d1b2383fc%40enterprisedb.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a18b6d2dc288dfa6e7905ede1d4462edd6a8af47

Modified Files
--------------
src/interfaces/ecpg/preproc/pgc.l | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-01-12 19:23:21 pgsql: Include permissive/enforcing state in sepgsql log messages.
Previous Message Michael Paquier 2022-01-12 06:04:43 pgsql: Move any code specific to log_destination=csvlog to its own file