ecpg: avoid adding whitespace around '&' in connection URLs.
authorTom Lane <[email protected]>
Fri, 4 Oct 2024 16:01:50 +0000 (12:01 -0400)
committerTom Lane <[email protected]>
Fri, 4 Oct 2024 16:01:50 +0000 (12:01 -0400)
commitf22e84df1dea96c8f4b0f7369ea60607fbb9ce10
tree0c4f7973c33f51e0c58aed4532e57d3a3c4c2b25
parentddbba3aac868132137782b02a4e81218cfd3b4b9
ecpg: avoid adding whitespace around '&' in connection URLs.

The preprocessor really should not have done this to begin with.
The space after '&' was masked by ECPGconnect's skipping spaces
before option keywords, and the space before by dint of libpq
being (mostly) insensitive to trailing space in option values.
We fixed the one known problem with that in 920d51979.  Hence
this patch is mostly cosmetic, and we'll just change it in HEAD.

Discussion: https://postgr.es/m/TY2PR01MB36286A7B97B9A15793335D18C1772@TY2PR01MB3628.jpnprd01.prod.outlook.com
src/interfaces/ecpg/ecpglib/connect.c
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/test/expected/connect-test5.c
src/interfaces/ecpg/test/expected/connect-test5.stderr