summaryrefslogtreecommitdiff
path: root/mysql-test/r/mysqlshow.result
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-03-15 10:46:43 -0800
committerunknown <jimw@mysql.com>2005-03-15 10:46:43 -0800
commit1972aa427016441ba5e375f88437a9e7b742df10 (patch)
tree7944a686e8d525c4a77c864d0b91776567514820 /mysql-test/r/mysqlshow.result
parent9f59bc804092f4de156314844f9edb9277b67eb0 (diff)
downloadmariadb-git-1972aa427016441ba5e375f88437a9e7b742df10.tar.gz
Add support for showing table type to mysqlshow command. (Bug #5036)
client/mysqlshow.c: Add support for -t (--show-table-type) switch mysql-test/mysql-test-run.sh: Add support for running mysqlshow
Diffstat (limited to 'mysql-test/r/mysqlshow.result')
-rw-r--r--mysql-test/r/mysqlshow.result76
1 files changed, 76 insertions, 0 deletions
diff --git a/mysql-test/r/mysqlshow.result b/mysql-test/r/mysqlshow.result
new file mode 100644
index 00000000000..a04a7081b34
--- /dev/null
+++ b/mysql-test/r/mysqlshow.result
@@ -0,0 +1,76 @@
+CREATE TABLE t1 (a int);
+INSERT INTO t1 VALUES (1),(2),(3);
+CREATE TABLE t2 (a int, b int);
+show tables;
+Tables_in_test
+t1
+t2
+select "--------------------" as "";
+
+--------------------
+Database: test
++--------+
+| Tables |
++--------+
+| t1 |
+| t2 |
++--------+
+select "---- -v ------------" as "";
+
+---- -v ------------
+Database: test
++--------+----------+
+| Tables | Columns |
++--------+----------+
+| t1 | 1 |
+| t2 | 2 |
++--------+----------+
+2 rows in set.
+
+select "---- -v -v ---------" as "";
+
+---- -v -v ---------
+Database: test
++--------+----------+------------+
+| Tables | Columns | Total Rows |
++--------+----------+------------+
+| t1 | 1 | 3 |
+| t2 | 2 | 0 |
++--------+----------+------------+
+2 rows in set.
+
+select "----- -t -----------" as "";
+
+----- -t -----------
+Database: test
++--------+------------+
+| Tables | table_type |
++--------+------------+
+| t1 | BASE TABLE |
+| t2 | BASE TABLE |
++--------+------------+
+select "---- -v -t ---------" as "";
+
+---- -v -t ---------
+Database: test
++--------+------------+----------+
+| Tables | table_type | Columns |
++--------+------------+----------+
+| t1 | BASE TABLE | 1 |
+| t2 | BASE TABLE | 2 |
++--------+------------+----------+
+2 rows in set.
+
+select "---- -v -v -t ------" as "";
+
+---- -v -v -t ------
+Database: test
++--------+------------+----------+------------+
+| Tables | table_type | Columns | Total Rows |
++--------+------------+----------+------------+
+| t1 | BASE TABLE | 1 | 3 |
+| t2 | BASE TABLE | 2 | 0 |
++--------+------------+----------+------------+
+2 rows in set.
+
+DROP TABLE t1, t2;