提交 a67cdb16 编写于 作者: L liipx

fix #17

上级 55e0e8aa
...@@ -95,7 +95,7 @@ func GetMeta(stmt sqlparser.Statement, meta common.Meta) common.Meta { ...@@ -95,7 +95,7 @@ func GetMeta(stmt sqlparser.Statement, meta common.Meta) common.Meta {
meta[db2] = common.NewDB(db2) meta[db2] = common.NewDB(db2)
} }
meta[db1].Table[tb2] = common.NewTable(tb2) meta[db2].Table[tb2] = common.NewTable(tb2)
} }
return false, nil return false, nil
......
...@@ -630,6 +630,8 @@ ALTER TABLE t1 CHANGE b a INT NOT NULL; ...@@ -630,6 +630,8 @@ ALTER TABLE t1 CHANGE b a INT NOT NULL;
ALTER TABLE ALTER TABLE
t1 CHANGE b a INT NOT NULL; t1 CHANGE b a INT NOT NULL;
create table hello.t (id int unsigned);
create table hello. t (id int unsigned);
SELECT * FROM film WHERE length = 86; SELECT * FROM film WHERE length = 86;
SELECT SELECT
......
...@@ -23,6 +23,9 @@ func init() { ...@@ -23,6 +23,9 @@ func init() {
// 所有的SQL都要以分号结尾,-list-test-sqls参数会打印这个list,以分号结尾可方便测试 // 所有的SQL都要以分号结尾,-list-test-sqls参数会打印这个list,以分号结尾可方便测试
// 如:./soar -list-test-sql | ./soar // 如:./soar -list-test-sql | ./soar
TestSQLs = []string{ TestSQLs = []string{
// DDL
"create table hello.t (id int unsigned);",
// single equality // single equality
"SELECT * FROM film WHERE length = 86;", // index(length) "SELECT * FROM film WHERE length = 86;", // index(length)
"SELECT * FROM film WHERE length IS NULL;", // index(length) "SELECT * FROM film WHERE length IS NULL;", // index(length)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册