| Bug #26780 | patch to add auto vertical output option to the cli. | ||
|---|---|---|---|
| Submitted: | 2 Mar 2007 3:53 | Modified: | 4 Nov 13:21 |
| Reporter: | Eric Bergen (SCA) | ||
| Status: | Patch queued | ||
| Category: | Client | Severity: | S4 (Feature request) |
| Version: | 5.0.33 | OS: | Any |
| Assigned to: | Target Version: | ||
| Tags: | Contribution, auto vertical display | ||
| Triage: | D5 (Feature request) | ||
[2 Mar 2007 3:53]
Eric Bergen
[29 Apr 2007 15:04]
Valeriy Kravchuk
Thank you for the patch.
[12 Jun 2007 22:30]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/28609 ChangeSet@1.2475, 2007-06-12 16:29:21-04:00, cmiller@zippy.cornsilk.net +4 -0 Bug#26780: automatic vertical output for wide results Feature from Eric Bergen, CLA signed 2007-06-27. Adds new mysql client option "--auto-vertical-output", which causes the client to test whether a result table is too wide for the current window (where available) and emit vertical results in that case. Otherwise, it sends normal tabular results.
[26 Jun 2007 22:53]
Timothy Smith
Patch looks OK; minor style comment and a few additional tests requested, but no need for re-review.
[28 Jun 2007 13:55]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/29843 ChangeSet@1.2515, 2007-06-28 07:54:33-04:00, cmiller@calliope.near.cmiller.mysql.com +4 -0 Bug#26780: automatic vertical output for wide results Feature from Eric Bergen, CLA signed 2007-06-27. Adds new mysql client option "--auto-vertical-output", which causes the client to test whether a result table is too wide for the current window (where available) and emit vertical results in that case. Otherwise, it sends normal tabular results.
[4 Mar 2008 18:49]
Chad MILLER
This slipped by me unnoticed somehow. It's been in 6.0 since (probably) November.
[4 Mar 2008 20:28]
Paul DuBois
The version for this feature is 6.0.4.
[17 Mar 2008 19:56]
Paul DuBois
Noted in 6.0.4 changelog. Also added option description to mysql section.
[4 Nov 13:20]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/89301 2910 Magne Mahre 2009-11-04 Bug#26780: automatic vertical output for wide results Feature from Eric Bergen, CLA signed 2007-06-27. Adds new mysql client option "--auto-vertical-output", which causes the client to test whether a result table is too wide for the current window (where available) and emit vertical results in that case. Otherwise, it sends normal tabular results. @ client/client_priv.h Add another enum value to client options, for automatic vertical output. @ client/mysql.cc Add another command-line option, "auto-vertical-output". Add functions to get the terminal width and functions to get the widths of fields. Use them together to emit vertical output when some output table is too wide to fit in the terminal. If the terminal doesn't support reading its width, then assume 80-positions wide. @ mysql-test/r/mysql.result Show that various select statements do work as expected. Wide tables become vertical and narrow ones do not. @ mysql-test/t/mysql.test Show that various select statements do work as expected. These should be suitable for a wide range of window capabilities and sizes. Under extreme circumstances, the results could be arbitrary.
[4 Nov 13:21]
Magne Mæhre
Backported to 5.6.0 (6.0-codebase revid: 2469.270.2)
