Commit 78b5893f authored by unknown's avatar unknown

after merge fixes 2

parent 1d29e6b0
......@@ -364,7 +364,7 @@ set sql_log_bin=1;
set sql_log_off=1;
set sql_log_update=1;
Warnings:
Note 1313 The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored
Note 1314 The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored
set sql_low_priority_updates=1;
set sql_max_join_size=200;
select @@sql_max_join_size,@@max_join_size;
......
......@@ -761,7 +761,7 @@ set sql_updatable_view_key=LIMIT1;
update v1 set x=x+1;
update v2 set x=x+1;
Warnings:
Note 1353 View being update does not have complete key of underlying table in it
Note 1354 View being update does not have complete key of underlying table in it
update v1 set x=x+1 limit 1;
update v2 set x=x+1 limit 1;
ERROR HY000: The target table v2 of the UPDATE is not updatable
......@@ -769,7 +769,7 @@ set sql_updatable_view_key=NO;
update v1 set x=x+1 limit 1;
update v2 set x=x+1 limit 1;
Warnings:
Note 1353 View being update does not have complete key of underlying table in it
Note 1354 View being update does not have complete key of underlying table in it
set sql_updatable_view_key=DEFAULT;
select * from t1;
a b c
......
......@@ -15,7 +15,7 @@ create view v1 (c,d) as select a,b from t1;
create temporary table t1 (a int, b int);
#view on temporary table
-- error 1350
-- error 1351
create view v1 (c) as select b+1 from t1;
drop table t1;
......@@ -23,7 +23,7 @@ create table t1 (a int, b int);
insert into t1 values (1,2), (1,3), (2,4), (2,5), (3,10);
#view with variable
-- error 1349
-- error 1350
create view v1 (c,d) as select a,b+@@global.max_user_connections from t1;
# simple view
......@@ -38,7 +38,7 @@ select * from t1;
select c from v1;
show create table v1;
show create view v1;
-- error 1345
-- error 1346
show create view t1;
drop table t1;
......@@ -131,7 +131,7 @@ show grants for test@localhost;
drop view v100;
#try to drop table with DROP VIEW
-- error 1345
-- error 1346
drop view t1;
#try to drop VIEW with DROP TABLE
......@@ -265,21 +265,21 @@ select c from mysqltest.v4;
show columns from mysqltest.v1;
show columns from mysqltest.v2;
# but explain/show do not
-- error 1343
-- error 1344
explain select c from mysqltest.v1;
-- error 1343
-- error 1344
show create table mysqltest.v1;
-- error 1343
-- error 1344
explain select c from mysqltest.v2;
-- error 1343
-- error 1344
show create table mysqltest.v2;
-- error 1343
-- error 1344
explain select c from mysqltest.v3;
-- error 1343
-- error 1344
show create table mysqltest.v3;
-- error 1343
-- error 1344
explain select c from mysqltest.v4;
-- error 1343
-- error 1344
show create table mysqltest.v4;
# allow to see one of underlaing table
......@@ -292,13 +292,13 @@ show create table mysqltest.v1;
explain select c from mysqltest.v2;
show create table mysqltest.v2;
# but other EXPLAINs do not
-- error 1343
-- error 1344
explain select c from mysqltest.v3;
-- error 1343
-- error 1344
show create table mysqltest.v3;
-- error 1343
-- error 1344
explain select c from mysqltest.v4;
-- error 1343
-- error 1344
show create table mysqltest.v4;
# allow to see any view in mysqltest database
......@@ -445,7 +445,7 @@ insert into t1 values (10,2), (20,3), (30,4), (40,5), (50,10);
create view v1 (a,c) as select a, b+1 from t1;
create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
# try to update expression
-- error 1346
-- error 1347
update v1 set c=a+c;
# try to update VIEW with forced TEMPORARY TABLE algorithm
-- error 1288
......@@ -467,7 +467,7 @@ insert into t2 values (10), (20);
create view v1 (a,c) as select a, b+1 from t1;
create algorithm=temptable view v2 (a,c) as select a, b+1 from t1;
# try to update expression
-- error 1346
-- error 1347
update t2,v1 set v1.c=v1.a+v1.c where t2.x=v1.a;
# try to update VIEW with forced TEMPORARY TABLE algorithm
-- error 1288
......@@ -888,10 +888,10 @@ create table t1 (col1 char(5),col2 char(5));
create view v1 as select * from t1;
drop table t1;
create table t1 (col1 char(5),newcol2 char(5));
-- error 1354
-- error 1355
insert into v1 values('a','aa');
drop table t1;
-- error 1354
-- error 1355
select * from v1;
drop view v1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment