diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2006-02-08 18:08:18 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2006-02-08 18:08:18 +0100 |
commit | 39b792908f3c0da3150ac6700a5c1f8b8e6eec76 (patch) | |
tree | 7575fb0985c3822222a6b13860e48f8801fd66ab /mysql-test/r/ndb_view.result | |
parent | 2569b61cc2d77ce010db86dbb9299a2e29bc0b63 (diff) | |
download | mariadb-git-39b792908f3c0da3150ac6700a5c1f8b8e6eec76.tar.gz |
Bug #17206 Update through VIEW is not working
mysql-test/r/ndb_view.result:
New BitKeeper file ``mysql-test/r/ndb_view.result''
mysql-test/t/ndb_view.test:
New BitKeeper file ``mysql-test/t/ndb_view.test''
Diffstat (limited to 'mysql-test/r/ndb_view.result')
-rw-r--r-- | mysql-test/r/ndb_view.result | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/r/ndb_view.result b/mysql-test/r/ndb_view.result new file mode 100644 index 00000000000..b7d1b6860c8 --- /dev/null +++ b/mysql-test/r/ndb_view.result @@ -0,0 +1,24 @@ +DROP TABLE IF EXISTS t1,t2,t3; +DROP VIEW IF EXISTS v1,v2,v3; +create table t1 (a int, b int, c int, d int) engine=ndb; +insert into t1 values (1,2,3,4),(5,6,7,8); +create view v1 as select t1.c as a, t1.a as b, t1.d as c, t1.a+t1.b+t1.c as d from t1; +select * from v1 order by a,b,c; +a b c d +3 1 4 6 +7 5 8 18 +update v1 set a=a+100 where b=1; +select * from v1 order by a,b,c; +a b c d +7 5 8 18 +103 1 4 106 +drop view v1; +create view v1 as select t1.c as a from t1; +insert into v1 values (200); +select * from t1 order by a,b,c,d; +a b c d +NULL NULL 200 NULL +1 2 103 4 +5 6 7 8 +drop view v1; +drop table t1; |