mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
8002f008e9
sql/sql_acl.cc: filling privileges for slave thread fixed sql/sql_parse.cc: added writing to binary log view DDL commands
44 lines
755 B
Text
44 lines
755 B
Text
stop slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
start slave;
|
|
drop table if exists t1,v1;
|
|
drop view if exists t1,v1;
|
|
create table t1 (a int);
|
|
insert into t1 values (1);
|
|
create view v1 as select a from t1;
|
|
insert into v1 values (2);
|
|
select * from v1 order by a;
|
|
a
|
|
1
|
|
2
|
|
select * from v1 order by a;
|
|
a
|
|
1
|
|
2
|
|
update v1 set a=3 where a=1;
|
|
select * from v1 order by a;
|
|
a
|
|
2
|
|
3
|
|
select * from v1 order by a;
|
|
a
|
|
2
|
|
3
|
|
delete from v1 where a=2;
|
|
select * from v1 order by a;
|
|
a
|
|
3
|
|
select * from v1 order by a;
|
|
a
|
|
3
|
|
alter view v1 as select a as b from t1;
|
|
select * from v1 order by 1;
|
|
b
|
|
3
|
|
drop view v1;
|
|
select * from v1 order by a;
|
|
ERROR 42S02: Table 'test.v1' doesn't exist
|
|
drop table t1;
|