提交 c0a5d3a9 authored 作者: Thomas Mueller's avatar Thomas Mueller

The Shell tool no longer supports the built-in command "show", because it is a…

The Shell tool no longer supports the built-in command "show", because it is a legal SQL statement for H2 and MySQL.
上级 9ae05edd
...@@ -106,7 +106,6 @@ public class TestShell extends TestBase { ...@@ -106,7 +106,6 @@ public class TestShell extends TestBase {
read("help or ?"); read("help or ?");
read("list"); read("list");
read("maxwidth"); read("maxwidth");
read("show");
read("describe"); read("describe");
read("autocommit"); read("autocommit");
read("history"); read("history");
...@@ -141,11 +140,6 @@ public class TestShell extends TestBase { ...@@ -141,11 +140,6 @@ public class TestShell extends TestBase {
} }
testOut.println("create table test(id int primary key, name varchar)\n;"); testOut.println("create table test(id int primary key, name varchar)\n;");
read("sql> ...>"); read("sql> ...>");
testOut.println("show public");
read("sql>");
while (read("").startsWith("INFORMATION_SCHEMA")) {
// ignore
}
testOut.println("insert into test values(1, 'Hello');"); testOut.println("insert into test values(1, 'Hello');");
read("sql>"); read("sql>");
testOut.println("select * from test;"); testOut.println("select * from test;");
...@@ -166,6 +160,10 @@ public class TestShell extends TestBase { ...@@ -166,6 +160,10 @@ public class TestShell extends TestBase {
read("sql> Autocommit is now true"); read("sql> Autocommit is now true");
testOut.println("describe"); testOut.println("describe");
read("sql> Usage: describe [<schema name>.]<table name>"); read("sql> Usage: describe [<schema name>.]<table name>");
read("Schema");
while (read("").startsWith("INFORMATION_SCHEMA")) {
// ignore
}
testOut.println("describe test"); testOut.println("describe test");
read("sql> Column Name"); read("sql> Column Name");
read("ID"); read("ID");
...@@ -189,7 +187,6 @@ public class TestShell extends TestBase { ...@@ -189,7 +187,6 @@ public class TestShell extends TestBase {
read("help or ?"); read("help or ?");
read("list"); read("list");
read("maxwidth"); read("maxwidth");
read("show");
read("describe"); read("describe");
read("autocommit"); read("autocommit");
read("history"); read("history");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论