pgsql: Cosmetic improvements for options-handling code in ECPGconnect()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Cosmetic improvements for options-handling code in ECPGconnect()
Date: 2019-08-31 18:05:50
Message-ID: E1i47l0-0003Ws-E8@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-09-01 20:59:45 Re: pgsql: Doc: remove some long-obsolete information from installation.sgm
Previous Message Tom Lane 2019-08-30 19:44:10 pgsql: Doc: restructure documentation of the configure script's options