dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.42k stars 661 forks source link

Fix \once -o to overwrite output whole, instead of overwriting line-by-line #919

Closed rolandwalker closed 3 years ago

rolandwalker commented 3 years ago

Description

Since \once -o filename.txt was overwriting on a line-by-line basis, filename.txt would only contain the last line of the result, such as

+--------------------+

Instead the filehandle should be kept open, and the entire result sent to the open handle.

Checklist

amjith commented 3 years ago

:cheese: