pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Cosmetic improvements for options-handling code in ECPGconnect()
Date: Sat, 31 Aug 2019 18:05:50 +0000
Message-ID: <E1i47l0-0003Ws-E8@gemulon.postgresql.org> (raw)

Cosmetic improvements for options-handling code in ECPGconnect().

The comment describing the string format was a lie.  Make it agree with
reality, add/improve some other comments, fix coding style for loops with
empty bodies.  Also add an Assert that we counted parameters correctly,
because the spread-out logic for that looks pretty fragile.

No actual bugs fixed here, so no need to back-patch.

Discussion: https://postgr.es/m/848B1649C8A6274AA527C4472CA11EDD5FC70CBE@G01JPEXMBYT02

Branch
------
master

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

Modified Files
--------------
src/interfaces/ecpg/ecpglib/connect.c | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)



Message-ID: <E1i47l0-0003Ws-E8@gemulon.postgresql.org>
Permalink:  ../E1i47l0-0003Ws-E8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1i47l0-0003Ws-E8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Cosmetic improvements for options-handling code in ECPGconnect()
  In-Reply-To: <E1i47l0-0003Ws-E8@gemulon.postgresql.org>
  References: <E1i47l0-0003Ws-E8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox