]> granicus.if.org Git - postgresql/commit
Improve coverage of psql for backslash commands with \if and \elif
authorMichael Paquier <michael@paquier.xyz>
Thu, 12 Sep 2019 01:35:13 +0000 (10:35 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 12 Sep 2019 01:35:13 +0000 (10:35 +0900)
commitaafe2762b152ffd4cb839d2a01df6cfcc3c6df6c
tree7101a5a88948b07ef54ce2f174b4f4a7457df4a8
parent9a86f03b4e8c8f16eca7faebcb4a46330e431102
Improve coverage of psql for backslash commands with \if and \elif

This adds tests to cover more code paths to ignore backslash commands in
false branches when using \if|\elif|\else, and improves the coverage of
\elif.

Author: Fabien Coelho
Discussion: https://postgr.es/m/alpine.DEB.2.21.1908281618520.28828@lancre
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql