summaryrefslogtreecommitdiff
path: root/mysql-test/suite/handler/aria.result
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-01-11 18:51:59 +0200
committerMichael Widenius <monty@askmonty.org>2011-01-11 18:51:59 +0200
commit0d01dd200f97835dfb4e23676332f0ea28050c33 (patch)
tree9e922c6c08df36917f51c509b66df58a04ddf14d /mysql-test/suite/handler/aria.result
parent050c004f5e6f152f5c4cdadda8a15e01d2f07a9a (diff)
downloadmariadb-git-0d01dd200f97835dfb4e23676332f0ea28050c33.tar.gz
Added HANDLER support for MEMORY tables
Added key and file version numbers to MEMORY tables so that we can detect if someone has changed them between HANDLER calls. mysql-test/suite/handler/aria.result: Fixed result after test changes mysql-test/suite/handler/handler.inc: Changed test to use combined key to ensure rows are returned in a pre-determinated order. mysql-test/suite/handler/heap.result: New result mysql-test/suite/handler/heap.test: Added test for HANDLER + HEAP mysql-test/suite/handler/innodb.result: Fixed result after test changes mysql-test/suite/handler/myisam.result: Fixed result after test changes sql/sql_handler.cc: Fixed wrong parameter to ha_index_next_same() storage/heap/ha_heap.cc: Abort key scan if table has changed. Abort table scan if table has been recreated. storage/heap/ha_heap.h: Added support for HANDLER storage/heap/hp_clear.c: Increase version number so that we can notice changes if using HANDLER storage/heap/hp_delete.c: Increase key data version number on key changes. storage/heap/hp_rfirst.c: Remember version of key data Give error if using read-first on hash key. storage/heap/hp_rkey.c: Remember version of key data storage/heap/hp_rlast.c: Remember version of key data Give error if using read-last on hash key. storage/heap/hp_rnext.c: Fixed that we get next key from last search. storage/heap/hp_rprev.c: Fixed that we get previous key from last search. storage/heap/hp_scan.c: Remember version of key and file data storage/heap/hp_update.c: Increase key data version number on key changes. storage/heap/hp_write.c: Increase key data version number on key changes.
Diffstat (limited to 'mysql-test/suite/handler/aria.result')
-rw-r--r--mysql-test/suite/handler/aria.result58
1 files changed, 29 insertions, 29 deletions
diff --git a/mysql-test/suite/handler/aria.result b/mysql-test/suite/handler/aria.result
index 89595c0a62a..df0b53a298a 100644
--- a/mysql-test/suite/handler/aria.result
+++ b/mysql-test/suite/handler/aria.result
@@ -6,42 +6,42 @@ insert into t1 values
(14,"aaa"),(16,"ccc"),(16,"xxx"),
(20,"ggg"),(21,"hhh"),(22,"iii");
handler t1 open as t2;
-handler t2 read a first;
+handler t2 read b first;
a b
14 aaa
-handler t2 read a next;
+handler t2 read b next;
a b
16 ccc
-handler t2 read a next;
+handler t2 read b next;
a b
16 xxx
-handler t2 read a prev;
+handler t2 read b prev;
a b
16 ccc
-handler t2 read a last;
+handler t2 read b last;
a b
22 iii
-handler t2 read a prev;
+handler t2 read b prev;
a b
21 hhh
-handler t2 read a prev;
+handler t2 read b prev;
a b
20 ggg
-handler t2 read a first;
+handler t2 read b first;
a b
14 aaa
-handler t2 read a prev;
+handler t2 read b prev;
a b
-handler t2 read a last;
+handler t2 read b last;
a b
22 iii
-handler t2 read a prev;
+handler t2 read b prev;
a b
21 hhh
-handler t2 read a next;
+handler t2 read b next;
a b
22 iii
-handler t2 read a next;
+handler t2 read b next;
a b
handler t2 read a=(15);
a b
@@ -66,19 +66,19 @@ a b
handler t2 read a>=(11);
a b
14 aaa
-handler t2 read a=(18);
+handler t2 read b=(18);
a b
18 eee
-handler t2 read a>=(18);
+handler t2 read b>=(18);
a b
18 eee
-handler t2 read a>(18);
+handler t2 read b>(18);
a b
19 fff
-handler t2 read a<=(18);
+handler t2 read b<=(18);
a b
18 eee
-handler t2 read a<(18);
+handler t2 read b<(18);
a b
17 ddd
handler t2 read a=(15);
@@ -119,19 +119,19 @@ handler t2 read a<=(1);
a b
handler t2 read a<(1);
a b
-handler t2 read a first limit 5;
+handler t2 read b first limit 5;
a b
14 aaa
16 ccc
16 xxx
17 ddd
18 eee
-handler t2 read a next limit 3;
+handler t2 read b next limit 3;
a b
19 fff
19 yyy
20 ggg
-handler t2 read a prev limit 10;
+handler t2 read b prev limit 10;
a b
19 yyy
19 fff
@@ -162,10 +162,10 @@ a b
handler t2 read a=(16) limit 1,3;
a b
16 xxx
-handler t2 read a=(19);
+handler t2 read b=(19);
a b
19 fff
-handler t2 read a=(19) where b="yyy";
+handler t2 read b=(19) where b="yyy";
a b
19 yyy
handler t2 read first;
@@ -557,7 +557,7 @@ handler t1_alias READ a next where inexistent > 0;
ERROR 42S22: Unknown column 'inexistent' in 'field list'
handler t1_alias close;
drop table t1;
-create temporary table t1 (a int, b char(1), key a (a), key b(a,b));
+create temporary table t1 (a int, b char(1), key a (a), key b (a,b));
insert into t1 values (0,"a"),(1,"b"),(2,"c"),(3,"d"),(4,"e"),
(5,"f"),(6,"g"),(7,"h"),(8,"i"),(9,"j"),(9,'k');
select a,b from t1;
@@ -609,20 +609,20 @@ a b
9 j
9 k
handler t1 open as a2;
-handler a2 read a=(9);
+handler a2 read b=(9);
a b
9 j
-handler a2 read a next;
+handler a2 read b next;
a b
9 k
-handler a2 read a prev limit 2;
+handler a2 read b prev limit 2;
a b
9 j
8 i
-handler a2 read a last;
+handler a2 read b last;
a b
9 k
-handler a2 read a prev;
+handler a2 read b prev;
a b
9 j
handler a2 close;