MXS-2403 Fix test program

ERROR 1248 (42000): Every derived table must have its own alias
This commit is contained in:
Johan Wikman 2019-03-29 10:47:56 +02:00
parent 48791c3877
commit 42e658d91f

View File

@ -121,13 +121,13 @@ void run(TestConnections& test)
test_one(test, "select 1 UNION select * FROM masking_auto_firewall", Expect::FAILURE);
// This SHOULD succeed as a masked column is not used in the statment.
test_one(test, "select * FROM (select b from masking_auto_firewall)", Expect::SUCCESS);
test_one(test, "select * FROM (select b from masking_auto_firewall) tbl", Expect::SUCCESS);
// This SHOULD succeed as a masked column is not used in the statment.
test_one(test, "select * FROM (select a as b from masking_auto_firewall)", Expect::FAILURE);
test_one(test, "select * FROM (select a as b from masking_auto_firewall) tbl", Expect::FAILURE);
// This SHOULD succeed as '*' is used in the statment.
test_one(test, "select * FROM (select * from masking_auto_firewall)", Expect::FAILURE);
test_one(test, "select * FROM (select * from masking_auto_firewall) tbl", Expect::FAILURE);
}
}