[to #51497822] fix mysqltest

This commit is contained in:
obdev
2023-08-14 14:19:42 +00:00
committed by ob-robot
parent 917359f57b
commit f47d591c44
4 changed files with 40 additions and 394 deletions

View File

@ -5058,11 +5058,11 @@ drop procedure bug5967|
#
# Bug#13012 "SP: REPAIR/BACKUP/RESTORE TABLE crashes the server"
#
--let $backupdir = /home/linlin.xll/tmp/
--error 0,1
--remove_file $backupdir/t1.frm
--error 0,1
--remove_file $backupdir/t1.MYD
#--let $backupdir = /home/linlin.xll/tmp/
#--error 0,1
#--remove_file $backupdir/t1.frm
#--error 0,1
#--remove_file $backupdir/t1.MYD
--disable_warnings
drop procedure if exists bug13012|
@ -7017,16 +7017,17 @@ select bug20777(9223372036854775807) as '9223372036854775807 2**63-1';
select bug20777(9223372036854775808) as '9223372036854775808 2**63+0';
select bug20777(9223372036854775809) as '9223372036854775809 2**63+1';
select bug20777(9223372036854775810) as '9223372036854775810 2**63+2';
--error ER_DATA_OUT_OF_RANGE
--error 1264
select bug20777(-9223372036854775808) as 'lower bounds signed bigint';
select bug20777(9223372036854775807) as 'upper bounds signed bigint';
--error ER_DATA_OUT_OF_RANGE
select bug20777(0) as 'lower bounds unsigned bigint';
select bug20777(18446744073709551615) as 'upper bounds unsigned bigint';
--error 1264
select bug20777(18446744073709551616) as 'upper bounds unsigned bigint + 1';
--error ER_DATA_OUT_OF_RANGE
--error 1264
select bug20777(-1) as 'lower bounds unsigned bigint - 1';
--error 1264
create table examplebug20777 as select
0 as 'i',
bug20777(9223372036854775806) as '2**63-2',
@ -7037,12 +7038,12 @@ create table examplebug20777 as select
bug20777(18446744073709551615) as '2**64-1',
bug20777(18446744073709551616) as '2**64';
insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807, 223372036854775808, 9223372036854775809, 18446744073709551614, 18446744073709551615, 8446744073709551616);
--source mysql_test/include/show_create_table_old_version_replica2.inc
show create table examplebug20777;
select * from examplebug20777 order by i;
#insert into examplebug20777 values (1, 9223372036854775806, 9223372036854775807, 223372036854775808, 9223372036854775809, 18446744073709551614, 18446744073709551615, 8446744073709551616);
#--source mysql_test/include/show_create_table_old_version_replica2.inc
#show create table examplebug20777;
#select * from examplebug20777 order by i;
drop table examplebug20777;
#drop table examplebug20777;
select bug20777(18446744073709551613)+1;
drop function bug20777;
delimiter |;