mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed build issues
- Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client - Fixed bug in heap tables when doing handler read next-prev over last row BUILD/compile-dist: - Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client cmd-line-utils/libedit/vi.c: Fixed compiler warning about not checking return value for write mysql-test/r/index_intersect.result: Updated results (missed this file in my last push) mysql-test/suite/handler/aria.result: Updated test results mysql-test/suite/handler/handler.inc: Changed test to use read next/read prev on key where there are duplicates that can come in different order depending on system Added testing of read next-prev over last row and read prev-next around first row mysql-test/suite/handler/heap.result: Updated test results mysql-test/suite/handler/init.inc: More rows to test mysql-test/suite/handler/innodb.result: Updated test results mysql-test/suite/handler/interface.result: Updated test results mysql-test/suite/handler/myisam.result: Updated test results mysql-test/t/variables-big.test: Fixed test to not fail on windows mysql-test/valgrind.supp: Removed not matching fun: to get rid of valgrind warning storage/heap/hp_rfirst.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rkey.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rnext.c: Handle reading several next after finding the last row (this caused a crash before) storage/heap/hp_rprev.c: Handle reading several prev after finding the first row (this caused a crash before) storage/xtradb/buf/buf0buf.c: Fixed compiler warning about uninitialized value
This commit is contained in:
@@ -120,9 +120,37 @@ eval alter table t1 engine = $engine_type;
|
||||
handler t2 read first;
|
||||
|
||||
handler t1 open;
|
||||
handler t1 read a=(16) limit 1,3;
|
||||
handler t1 read a=(20) limit 1,3;
|
||||
flush tables;
|
||||
handler t1 read a=(16) limit 1,3;
|
||||
handler t1 read a=(20) limit 1,3;
|
||||
handler t1 close;
|
||||
|
||||
#
|
||||
# Search after end and before start of index
|
||||
#
|
||||
|
||||
handler t1 open;
|
||||
handler t1 read a=(25);
|
||||
handler t1 read a next;
|
||||
handler t1 read a next;
|
||||
handler t1 read a next;
|
||||
handler t1 read a prev;
|
||||
handler t1 read a=(1000);
|
||||
handler t1 read a next;
|
||||
handler t1 read a prev;
|
||||
handler t1 read a=(1000);
|
||||
handler t1 read a prev;
|
||||
|
||||
handler t1 read a=(14);
|
||||
handler t1 read a prev;
|
||||
handler t1 read a prev;
|
||||
handler t1 read a next;
|
||||
handler t1 read a=(1);
|
||||
handler t1 read a prev;
|
||||
handler t1 read a next;
|
||||
handler t1 read a=(1);
|
||||
handler t1 read a next;
|
||||
|
||||
handler t1 close;
|
||||
|
||||
#
|
||||
@@ -131,16 +159,16 @@ handler t1 close;
|
||||
|
||||
handler t1 open;
|
||||
prepare stmt from 'handler t1 read a=(?) limit ?,?';
|
||||
set @a=16,@b=1,@c=100;
|
||||
set @a=20,@b=1,@c=100;
|
||||
execute stmt using @a,@b,@c;
|
||||
set @a=16,@b=2,@c=1;
|
||||
set @a=20,@b=2,@c=1;
|
||||
execute stmt using @a,@b,@c;
|
||||
set @a=16,@b=0,@c=2;
|
||||
set @a=20,@b=0,@c=2;
|
||||
execute stmt using @a,@b,@c;
|
||||
deallocate prepare stmt;
|
||||
|
||||
prepare stmt from 'handler t1 read a next limit ?';
|
||||
handler t1 read a>=(11);
|
||||
handler t1 read a>=(21);
|
||||
set @a=3;
|
||||
execute stmt using @a;
|
||||
execute stmt using @a;
|
||||
@@ -168,13 +196,13 @@ execute stmt using @a;
|
||||
deallocate prepare stmt;
|
||||
|
||||
prepare stmt from 'handler t1 read a>=(?) where a < ? limit 5';
|
||||
set @a=15, @b=20;
|
||||
set @a=17, @b=24;
|
||||
execute stmt using @a,@b;
|
||||
execute stmt using @a,@b;
|
||||
deallocate prepare stmt;
|
||||
|
||||
prepare stmt from 'handler t1 read a=(?)';
|
||||
set @a=16;
|
||||
set @a=17;
|
||||
execute stmt using @a;
|
||||
alter table t1 add c int;
|
||||
--error 1109
|
||||
@@ -186,7 +214,7 @@ handler t1 close;
|
||||
handler t1 open;
|
||||
prepare stmt from 'handler t1 read a=(?)';
|
||||
flush tables;
|
||||
set @a=16;
|
||||
set @a=17;
|
||||
--error ER_NEED_REPREPARE
|
||||
execute stmt using @a;
|
||||
deallocate prepare stmt;
|
||||
|
Reference in New Issue
Block a user