|
| 1 | +# |
| 2 | +# MDEV-34704: Quick mode produces the bug for mariadb client |
| 3 | +# |
| 4 | +create table t1 (aaaaaaaaa char (5), aaaaa char (10), a char (127), b char(1)); |
| 5 | +insert into t1 values ("X", "X", "X", "X"); |
| 6 | +# --table --quick |
| 7 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 8 | +| aaaaaaaaa | aaaaa | a | b | |
| 9 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 10 | +| X | X | X | X | |
| 11 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 12 | +# --table --quick --quick-max-column-width=0 |
| 13 | ++-----------+-------+------+------+ |
| 14 | +| aaaaaaaaa | aaaaa | a | b | |
| 15 | ++-----------+-------+------+------+ |
| 16 | +| X | X | X | X | |
| 17 | ++-----------+-------+------+------+ |
| 18 | +# --table --quick --quick-max-column-width=10 |
| 19 | ++-----------+------------+------------+------+ |
| 20 | +| aaaaaaaaa | aaaaa | a | b | |
| 21 | ++-----------+------------+------------+------+ |
| 22 | +| X | X | X | X | |
| 23 | ++-----------+------------+------------+------+ |
| 24 | +# --table --quick --quick-max-column-width=20 |
| 25 | ++-----------+------------+----------------------+------+ |
| 26 | +| aaaaaaaaa | aaaaa | a | b | |
| 27 | ++-----------+------------+----------------------+------+ |
| 28 | +| X | X | X | X | |
| 29 | ++-----------+------------+----------------------+------+ |
| 30 | +insert into t1 values ("01234", "0123456789", "01234567890123456789", "1"); |
| 31 | +# --table --quick |
| 32 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 33 | +| aaaaaaaaa | aaaaa | a | b | |
| 34 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 35 | +| X | X | X | X | |
| 36 | +| 01234 | 0123456789 | 01234567890123456789 | 1 | |
| 37 | ++-----------+------------+---------------------------------------------------------------------------------------------------------------------------------+------+ |
| 38 | +# --table --quick --quick-max-column-width=0 |
| 39 | ++-----------+-------+------+------+ |
| 40 | +| aaaaaaaaa | aaaaa | a | b | |
| 41 | ++-----------+-------+------+------+ |
| 42 | +| X | X | X | X | |
| 43 | +| 01234 | 0123456789 | 01234567890123456789 | 1 | |
| 44 | ++-----------+-------+------+------+ |
| 45 | +# --table --quick --quick-max-column-width=10 |
| 46 | ++-----------+------------+------------+------+ |
| 47 | +| aaaaaaaaa | aaaaa | a | b | |
| 48 | ++-----------+------------+------------+------+ |
| 49 | +| X | X | X | X | |
| 50 | +| 01234 | 0123456789 | 01234567890123456789 | 1 | |
| 51 | ++-----------+------------+------------+------+ |
| 52 | +# --table --quick --quick-max-column-width=20 |
| 53 | ++-----------+------------+----------------------+------+ |
| 54 | +| aaaaaaaaa | aaaaa | a | b | |
| 55 | ++-----------+------------+----------------------+------+ |
| 56 | +| X | X | X | X | |
| 57 | +| 01234 | 0123456789 | 01234567890123456789 | 1 | |
| 58 | ++-----------+------------+----------------------+------+ |
| 59 | +drop table t1; |
| 60 | +# |
| 61 | +# End of 10.7 tests |
| 62 | +# |
0 commit comments