summaryrefslogtreecommitdiff
path: root/mysql-test/r/view.result
diff options
context:
space:
mode:
authortimour@mysql.com <>2005-09-12 17:01:17 +0300
committertimour@mysql.com <>2005-09-12 17:01:17 +0300
commit9d862db743c126bc45937c9aa40e596704caa99c (patch)
treee24256811228bef5c6b8b39a13df7f44fdade1ad /mysql-test/r/view.result
parenta645d10cf2c63a6f05ce78bb06f8af28dedd6cc4 (diff)
downloadmariadb-git-9d862db743c126bc45937c9aa40e596704caa99c.tar.gz
Fix for BUG#6808.
The problem was in that add_table_to_list was testing for duplicate tables in a list of tables that included the created view.
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r--mysql-test/r/view.result8
1 files changed, 6 insertions, 2 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result
index 558977a6d2d..5ac6759f1a3 100644
--- a/mysql-test/r/view.result
+++ b/mysql-test/r/view.result
@@ -1146,11 +1146,11 @@ create view v2 as select * from v1;
alter view v1 as select * from v2;
ERROR 42S02: Table 'test.v1' doesn't exist
alter view v1 as select * from v1;
-ERROR 42000: Not unique table/alias: 'v1'
+ERROR 42S02: Table 'test.v1' doesn't exist
create or replace view v1 as select * from v2;
ERROR 42S02: Table 'test.v1' doesn't exist
create or replace view v1 as select * from v1;
-ERROR 42000: Not unique table/alias: 'v1'
+ERROR 42S02: Table 'test.v1' doesn't exist
drop view v2,v1;
drop table t1;
create table t1 (a int);
@@ -2186,3 +2186,7 @@ r_object_id users_names
120001a080000542 guser02
drop view v1, v2;
drop table t1, t2;
+create table t1 (s1 int);
+create view abc as select * from t1 as abc;
+drop table t1;
+drop view abc;