psql: Fix incorrect status code returned by \getresults When an invalid number of results is requested for \getresults, the status code returned by exec_command_getresults() was PSQL_CMD_SKIP_LINE and not PSQL_CMD_ERROR.
This led to incorrect behaviors, with ON_ERROR_STOP for example. Reported-by: Noah Misch <n...@leadboat.com> Discussion: https://postgr.es/m/20250415213450.1f.nmi...@google.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5ee7bd944ee812e988a7dee52613ee1c80c13579 Modified Files -------------- src/bin/psql/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)