psql: Add tests for repeated calls of \bind[_named]
commit91287b5f5da324ac24678f556962e1b95e52240c
authorMichael Paquier <michael@paquier.xyz>
Thu, 19 Sep 2024 23:59:20 +0000 (20 08:59 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 19 Sep 2024 23:59:20 +0000 (20 08:59 +0900)
tree98f487c95d54310722ab402e6d58a8cc01958784
parent658fc6c6af4fa209af6ddadc0182cdb69e2b70ae
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
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql