RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.” - Mailing list pgsql-hackers

From Masashi Kamura (Fujitsu)
Subject RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
Date
Msg-id OS9PR01MB131740CE3324CB59E6C22F1F2942B2@OS9PR01MB13174.jpnprd01.prod.outlook.com
Whole thread
In response to Re: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”  (lakshmi <lakshmigcdac@gmail.com>)
Responses RE: ECPG: inconsistent behavior with the document in “GET/SET DESCRIPTOR.”
List pgsql-hackers

Hi,

 

Syntax rules in the SQL standard do not appear to include any restrictions on specifying COUNT multiple times.

However, since the behavior when COUNT is specified multiple times in SET DESCRIPTOR is not also defined, I consider this to be undefined behavior.

 

In Oracle's Pro*C, COUNT can be specified only once.

 

Specifying it multiple times results in a syntax error.

 

This issue has been occurring from PG14 to PG18, but no one has pointed it out until now.

 

For the reasons above, I would like to proceed with the policy of treating this as a syntax error.

 

Regards,
Masashi Kamura
Fujitsu Limited

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: [PATCH] Fix null pointer dereference in PG19
Next
From: Peter Smith
Date:
Subject: Re: Redundant/mis-use of _(x) gettext macro?