Closed smcvey closed 3 weeks ago
Another example of this is when running cockroach sql --file <FILE>
:
(error encountered after some results were delivered)
ERROR: relation "defaultdb.public.t475" already exists
SQLSTATE: 42P07
ERROR: relation "defaultdb.public.t475" already exists
SQLSTATE: 42P07
Failed running "sql"
Again the message is just printed twice.
Do we have to assign it or just jump in directly? I am interested.
Describe the problem
The SQL cli prints out the last error message when quitting the client.
Quitting the client should not repeat a previous seen error message. Running \q or exit should only display an error message if those commands specifically generated their own error message.
To Reproduce
Run the above commands on a new cluster.
Expected behavior Quitting the client should not produce a previously seen error message which could potentially be from a while ago and is also unrelated to quitting the client.
Jira issue: CRDB-18342