Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6wEn-0004MK-Gn for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jan 2022 15:05:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n6wEm-0000KQ-2J for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jan 2022 15:05:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6wEl-0000KH-P8 for pgsql-hackers@lists.postgresql.org; Mon, 10 Jan 2022 15:05:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6wEf-0000Jt-Ju for pgsql-hackers@postgresql.org; Mon, 10 Jan 2022 15:05:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 20AF5MWo2189119; Mon, 10 Jan 2022 10:05:22 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers Subject: Re: small bug in ecpg unicode identifier error handling In-reply-to: <82fafa79-331c-9d65-e51b-8b5d1b2383fc@enterprisedb.com> References: <82fafa79-331c-9d65-e51b-8b5d1b2383fc@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Mon, 10 Jan 2022 14:14:37 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2189117.1641827122.1@sss.pgh.pa.us> Date: Mon, 10 Jan 2022 10:05:22 -0500 Message-ID: <2189118.1641827122@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 lane