1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

bug#5373: handler READ NEXT w/o HANDLER READ [FIRST]

check table->file->inited to catch incorrect calling sequence.
This commit is contained in:
serg@serg.mylan
2005-06-07 22:43:25 +02:00
parent 6a5349028c
commit 30d81b75ff
3 changed files with 55 additions and 17 deletions

View File

@ -132,6 +132,22 @@ a b
handler t2 read last;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
handler t2 close;
handler t1 open;
handler t1 read a next;
a b
14 aaa
handler t1 read a next;
a b
15 bbb
handler t1 close;
handler t1 open;
handler t1 read a prev;
a b
22 iii
handler t1 read a prev;
a b
21 hhh
handler t1 close;
handler t1 open as t2;
handler t2 read first;
a b