Repository navigation
Commit fd85202
committed
MDEV-41150 mariadb client: Ctrl-C does not interrupt tab separated result output
Ctrl-C sets interrupted_query and sends KILL QUERY to the server, but the
result is already fetched into the client by then, so killing the query
cannot stop the output. Only the printing loop can, by checking
interrupted_query.
print_table_data(), print_table_data_html(), print_table_data_xml() and
print_table_data_vertically() check it, print_tab_data() did not, so the
output of -s, -N and -B could not be interrupted.
Add the same check to print_tab_data().
No test case: the suite drives the client through a pty with socat, where
0x03 is not turned into a signal, and there is no other way in the suite to
signal a client while it is printing.1 parent 151631b commit fd85202
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4491 | 4491 | | |
4492 | 4492 | | |
4493 | 4493 | | |
| 4494 | + | |
| 4495 | + | |
4494 | 4496 | | |
4495 | 4497 | | |
4496 | 4498 | | |
| |||
0 commit comments