psql: Fix incorrect status code returned by \getresults
Michael Paquier <michael@paquier.xyz>
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 <noah@leadboat.com> Discussion: https://postgr.es/m/20250415213450.1f.nmisch@google.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/command.c | modified | +1 −1 |
Discussion
- Add Pipelining support in psql 55 messages · 2024-11-27 → 2025-04-24