diff options
author | jani@ua141d10.elisa.omakaista.fi <> | 2005-10-27 23:43:20 +0300 |
---|---|---|
committer | jani@ua141d10.elisa.omakaista.fi <> | 2005-10-27 23:43:20 +0300 |
commit | cbe21a8eb6c53ed4eb7f6228a322d642abacde95 (patch) | |
tree | ff71298ae3c57caff8ca7c70666d60292290e366 /mysql-test/t/update.test | |
parent | 2025b35544f2a43322a9fd3574d19469383009c2 (diff) | |
parent | a57c08d46815c13c09e713a3ea05076c19001a0e (diff) | |
download | mariadb-git-cbe21a8eb6c53ed4eb7f6228a322d642abacde95.tar.gz |
Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0-tmp
Diffstat (limited to 'mysql-test/t/update.test')
-rw-r--r-- | mysql-test/t/update.test | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mysql-test/t/update.test b/mysql-test/t/update.test index 13ced76079f..9235d30c500 100644 --- a/mysql-test/t/update.test +++ b/mysql-test/t/update.test @@ -228,15 +228,16 @@ delete from t1 where count(*)=1; drop table t1; # BUG#12915: Optimize "DELETE|UPDATE ... ORDER BY ... LIMIT n" to use an index -create table t1 ( a int, index (a) ); -insert into t1 values (0),(0),(0),(0),(0),(0),(0),(0); +create table t1 ( a int, b int default 0, index (a) ); +insert into t1 (a) values (0),(0),(0),(0),(0),(0),(0),(0); flush status; select a from t1 order by a limit 1; show status like 'handler_read%'; flush status; -update t1 set a=unix_timestamp() order by a limit 1; +update t1 set a=9999 order by a limit 1; +update t1 set b=9999 order by a limit 1; show status like 'handler_read%'; flush status; @@ -253,7 +254,11 @@ flush status; delete from t1 order by a limit 1; show status like 'handler_read%'; -select count(*) from t1; +select * from t1; +update t1 set a=a+10,b=1 order by a limit 3; +update t1 set a=a+11,b=2 order by a limit 3; +update t1 set a=a+12,b=3 order by a limit 3; +select * from t1 order by a; drop table t1; # End of 4.1 tests |