diff options
author | unknown <bell@sanja.is.com.ua> | 2004-11-25 02:23:13 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-11-25 02:23:13 +0200 |
commit | f88d01932f4a81682267e21022686d3dea4edb78 (patch) | |
tree | b6370530d805ecddad3284428883cac10256f774 /mysql-test/r/view.result | |
parent | 5a00a868b74ffb6b220eb72c87ec38696ce9406c (diff) | |
download | mariadb-git-f88d01932f4a81682267e21022686d3dea4edb78.tar.gz |
post-merge fix
mysql-test/r/view.result:
changes in error number, and key in view processing
mysql-test/t/view.test:
changes in error number, and key in view processing
sql/mysql_priv.h:
changes functions
sql/sp.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
sql/sql_base.cc:
fixed finding table, taking in account join view, which can have not TABLE pointer
now we report to setup_tables(), are we setuping SELECT...INSERT and ennumerete insert table separately
sql/sql_delete.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
sql/sql_help.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
sql/sql_insert.cc:
fixed returning value of functions
sql/sql_load.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
removed second setup_tables call (merge)
sql/sql_olap.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
sql/sql_parse.cc:
UPDATE->MULTIUPDATE switching fixed
sql/sql_prepare.cc:
UPDATE->MULTIUPDATE switching fixed
sql/sql_select.cc:
now we report to setup_tables(), are we setuping SELECT...INSERT
sql/sql_update.cc:
UPDATE->MULTIUPDATE switching fixed
sql/sql_view.cc:
returning value fixed
sql/sql_view.h:
returning value fixed
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r-- | mysql-test/r/view.result | 40 |
1 files changed, 6 insertions, 34 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index 1bfbc28935a..e2c6b3f2ae2 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -1661,6 +1661,7 @@ check table v1; Table Op Msg_type Msg_text test.v1 check error View 'test.v1' references invalid table(s) or column(s) drop view v1; +create table t1 (a int); create table t2 (a int); create table t3 (a int); insert into t1 values (1), (2), (3); @@ -1723,8 +1724,10 @@ a 1 3 create view v2 (a,b) as select t1.b as a, t2.a as b from t1, t2; -update v2 set a= 10 where a=200; -ERROR HY000: The target table v2 of the UPDATE is not updatable +set updatable_views_with_limit=NO; +update v2 set a= 10 where a=200 limit 1; +ERROR HY000: The target table t1 of the UPDATE is not updatable +set updatable_views_with_limit=DEFAULT; select * from v3; a b 2 1 @@ -1789,37 +1792,6 @@ a b 10 NULL 2000 NULL 0 NULL -create view v2 (a,b) as select t1.b as a, t2.a as b from t1, t2; -insert into v2(a) values (10); -ERROR HY000: The target table v2 of the INSERT is not updatable -select * from v3; -a b -10 1000 -1000 1000 -10002 1000 -10 10 -1000 10 -10002 10 -10 2000 -1000 2000 -10002 2000 -10 0 -1000 0 -10002 0 -select * from v2; -a b -NULL 1000 -NULL 1000 -NULL 1000 -NULL 10 -NULL 10 -NULL 10 -NULL 2000 -NULL 2000 -NULL 2000 -NULL 0 -NULL 0 -NULL 0 delete from v3; ERROR HY000: Can not delete from join view 'test.v3' delete v3,t1 from v3,t1; @@ -1855,5 +1827,5 @@ a b 101 0 300 0 301 0 -drop view v3,v2; +drop view v3; drop tables t1,t2; |