summaryrefslogtreecommitdiff
path: root/mysql-test/r/lowercase_view.result
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-09-08 10:18:04 +0300
committerbell@sanja.is.com.ua <>2004-09-08 10:18:04 +0300
commit425857f5b221bbe37eb6295ca16ce8e4d59143fa (patch)
tree09e24097656202a2f0bff94dbc2778035a4118fa /mysql-test/r/lowercase_view.result
parent5d3f95b1738c98c471cf266e232050ce6e6d75aa (diff)
downloadmariadb-git-425857f5b221bbe37eb6295ca16ce8e4d59143fa.tar.gz
test of updating and fetching from the same table check (BUG##5157)
Diffstat (limited to 'mysql-test/r/lowercase_view.result')
-rw-r--r--mysql-test/r/lowercase_view.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/lowercase_view.result b/mysql-test/r/lowercase_view.result
index 7c5741fe06a..51f7dc758eb 100644
--- a/mysql-test/r/lowercase_view.result
+++ b/mysql-test/r/lowercase_view.result
@@ -1,3 +1,5 @@
+drop table if exists t1Aa,t2Aa,v1Aa,v2Aa;
+drop view if exists t1Aa,t2Aa,v1Aa,v2Aa;
drop database if exists MySQLTest;
create database MySQLTest;
use MySQLTest;
@@ -8,3 +10,15 @@ Table Create Table
vie CREATE VIEW `mysqltest`.`vie` AS select `mysqltest`.`tab`.`Field` AS `Field` from `mysqltest`.`tab`
drop database MySQLTest;
use test;
+create table t1Aa (col1 int);
+create table t2Aa (col1 int);
+create view v1Aa as select * from t1Aa;
+create view v2Aa as select * from v1Aa;
+update v2aA set col1 = (select max(col1) from v1aA);
+ERROR HY000: You can't specify target table 'v2aa' for update in FROM clause
+delete from v2aA where col1 = (select max(col1) from v1aA);
+ERROR HY000: You can't specify target table 'v2aa' for update in FROM clause
+insert into v2aA values ((select max(col1) from v1aA));
+ERROR HY000: You can't specify target table 'v2aa' for update in FROM clause
+drop view v2Aa,v1Aa;
+drop table t1Aa,t2Aa;