]> granicus.if.org Git - postgresql/commit
Cosmetic improvements for options-handling code in ECPGconnect().
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Aug 2019 17:37:10 +0000 (13:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Aug 2019 17:37:10 +0000 (13:37 -0400)
commitb61a5e6a1f8d4d9e0bfe5d26bebfbb0687353c08
tree145b50e71704d5efca1fae4852b4eaa00f2bfb34
parent137b03b862c21b90a86732120d0c98480daf22de
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
src/interfaces/ecpg/ecpglib/connect.c