Re: 186aa192d1f: MDEV-34704 Quick mode produces the bug for mariadb client
Hi, Sanja, ok to push, but see one comment below On Aug 22, Oleksandr Byelkin wrote:
revision-id: 186aa192d1f (mariadb-11.5.1-34-g186aa192d1f) parent(s): 9e1923ca238 author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2024-08-05 16:16:09 +0200 message:
MDEV-34704 Quick mode produces the bug for mariadb client
--quick-max-column-width parameter added to limit field width in --quick mode.
diff --git a/mysql-test/main/client.test b/mysql-test/main/client.test new file mode 100644 index 00000000000..59e687ff8b9 --- /dev/null +++ b/mysql-test/main/client.test @@ -0,0 +1,33 @@ +--echo # +--echo # MDEV-34704: Quick mode produces the bug for mariadb client +--echo # + + +create table t1 (aaaaaaaaa char (5), aaaaa char (10), a char (127), b char(1)); +insert into t1 values ("X", "X", "X", "X"); +
to make the result file more readable, I'd suggest to add here, like --echo mysql --table --quick ... --echo mysql --table --quick --quick-max-column-width=0 ... etc before every corresponding --exec
+--exec echo "select * from test.t1;" | $MYSQL --table --quick 2>&1 + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=0 2>&1 + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=10 2>&1 + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=20 2>&1 + +insert into t1 values ("01234", "0123456789", "01234567890123456789", "1"); + +--exec echo "select * from test.t1;" | $MYSQL --table --quick 2>&1 + + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=0 2>&1 + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=10 2>&1 + +--exec echo "select * from test.t1;" | $MYSQL --table --quick --quick-max-column-width=20 2>&1 + +drop table t1; + +--echo # +--echo # End of 10.7 tests +--echo #
As Marko said, use here only one line --echo # End of 10.7 tests otherwise merge mixes it up with --echo # --echo # MDEV-34704: Quick mode produces the bug for mariadb client --echo # Regards, Sergei Chief Architect, MariaDB Server and security@mariadb.org
participants (1)
-
Sergei Golubchik