summaryrefslogtreecommitdiff
path: root/mysql-test/r/delete.result
diff options
context:
space:
mode:
authorgkodinov/kgeorge@macbook.gmz <>2006-09-04 18:40:30 +0300
committergkodinov/kgeorge@macbook.gmz <>2006-09-04 18:40:30 +0300
commit3758b975f8c535917c9507b005ccc8ff5a76bfb8 (patch)
tree7791cbe549cd4f2437153138cbf3487b0e3257ef /mysql-test/r/delete.result
parent13f50fdb691ca0cd675eee7aaf75ef13a183eed0 (diff)
downloadmariadb-git-3758b975f8c535917c9507b005ccc8ff5a76bfb8.tar.gz
Bug #21392: multi-table delete with alias table name fails with
1003: Incorrect table name in multi-table DELETE the set of tables to delete from actually references then tables in the other list, e.g: DELETE alias_of_t1 FROM t1 alias_of_t1 WHERE .... is a valid statement. So we must turn off table name syntactical validity check for alias_of_t1 because it's not a table name (even if it looks like one). In order to do that we add a special flag (TL_OPTION_ALIAS) to disable the name checking for the aliases in multi-table DELETE.
Diffstat (limited to 'mysql-test/r/delete.result')
-rw-r--r--mysql-test/r/delete.result4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/r/delete.result b/mysql-test/r/delete.result
index 411cd52b4ca..cb632fcd6c8 100644
--- a/mysql-test/r/delete.result
+++ b/mysql-test/r/delete.result
@@ -172,3 +172,7 @@ a
0
2
DROP TABLE t1;
+create table t1 (a int);
+delete `4.t1` from t1 as `4.t1` where `4.t1`.a = 5;
+delete FROM `4.t1` USING t1 as `4.t1` where `4.t1`.a = 5;
+drop table t1;