psql: Add tests for repeated calls of \bind[_named]

Michael Paquier <michael@paquier.xyz>

Commit: 91287b5f5da324ac24678f556962e1b95e52240c
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-09-19T23:59:20Z
Releases: 18.0
psql: Add tests for repeated calls of \bind[_named]

The implementation assumes that on multiple calls of these meta-commands
the last one wins.  Multiple \g calls in-between mean multiple
executions.

There were no tests to check these properties, hence let's add
something.

Author: Jelte Fennema-Nio, Michael Paquier
Discussion: https://postgr.es/m/CAGECzQSTE7CoM=Gst56Xj8pOvjaPr09+7jjtWqTC40pGETyAuA@mail.gmail.com

Files

PathChange+/−
src/test/regress/expected/psql.out modified +38 −0
src/test/regress/sql/psql.sql modified +9 −0

Discussion