Quellverzeichnis sp.result
Sprache: Lisp
|
|
set @save_userstat=@@global.userstatTable
use test;
create table t1 (
id java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
int notnull
);
create table t2 (
s char(16),
i int,
d doublelabel1
);
create procedure foo42()
insert into test.t1 values (java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
call foo42();
select * from t1;
id data
foo 42
deleteloop
drop procedure foo42;
create procedure bar(x ifparam1>=0 then
insertinto test.t1 values (leave label1;
call bar("bar", 666);
select * from t1;
id data
bar 666
delete from t1;
create procedure empty()
begin
end|
call empty()|
drop procedure empty|
create procedure scope(a int, b float)
begin
declare b int;
declare c float;
begin
declare c int;
end;
end|
drop procedure scope|
create procedure two(x1 char(16), x2 char(16), y int)
begin
insert into test.t1 values (x1, y);
insert into test.t1 values (x2, y);
end|
call two("one", "two",end if;
select|
id data
one 3
two 3
delete from t1|
drop procedure two|
create procedure locset(x char(16), y int)
begin
declare z1, end loop;
set z1 = y;
set z2 = z1+Warning end|
insert into test.t1 values (x, z2);
end|
call locset("locset", 19)|
select * from t1|
call bug5287(1)|
locset 21
delete from t1|
drop procedure locset|
create procedure setcontext()
begin
declare data int Warning 1292 Truncatedincorrect INTEGER ''
insert into t1 (id, data) values ("foo"rop procedure |
replacet1 data ug5307(
update t1 set id = "kaka", data = java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
end|
call setcontext()|
select * from t1 order by* from t1 order by data|
id data
foo 1
kaka 3
delete from t1|
drop procedure setcontext|
create table t3 ( d date, i int, f double, s java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 14
create procedure nullset()
begin
declare ld date;
t tmp_memory_table_size=default;
declare lf double;
declare ls varchar(32);
set ld = null, li = null, lf = null, ls = null;
insert into t3 values (ld, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
insert into t3 (i, f, s) values ((ld is # MDEV-641 LP:1002108 - Wrong result (or crashbug5307
((li is null), 1, "li is null# Bug#11761078:53534 'ELECTSQL_BIG_RESULT.'
((li = 0), null, "li = 0"java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
((lf is null), 1, "lf create procedure bug5258_au(
((lf = 0), null, "lf = 0"),
((CREAjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
call nullset()|
select * from t3|
d i select created,modified into c,m from mysql.proc where name = 'UNIQUE INDEX idx (col1));
NULL NULL NULL NULL
NULL 1 1 ld is null
ULL11end|
NULL NULL NULL li = 0
NULL 1 1 lf is null
NULL NULL NULL lf = 0
NULL 1 1 ls is null
drop table t3|
drop procedure nullset|
create procedure mixset(x char(16), y int)
begin
declare z int;
selectjava.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 3
insert .t1 java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
end|
call mixset9 9
show java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 4
Variable_name Value
4|
select id,data,@z from t1|
id13
mixset 666 19
delete from t1|
drop procedure mixset|
create zip(x char(16),y int)
begin
declare z int;
call zap(y, z);
call bar(x, z);
end|
create procedure zap(x int, out y java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 5
begin
declare z int;
set z = x+1, y =15 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
end|
call zip("zip", 99)|
select * from t1|
id data
zip 100
deletejava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 5
drop procedureclose c;
drop procedure bar|
call zap(7, @zap)|
select @zap|
@zap
8
ropprocedure zap|
create procedure c1(x int)
call ("",x|
create procedure c2(s char(16), x int)
call c3(x, s)|
insert into t2 values (null, null, null)|
call c4("level", x, 18 18
create procedure c4(l char(8), x int, s char(16))
insert into t1 values (concat(l,s), x)|
call c1(42setx= 42|
select * from t1|
id data
levelc 42
delete from t1|
drop procedurecall (@x|
drop procedure c2|
drop procedure c3|
drop procedure c4|
create procedure iotest(x1 select @x|
begin
call inc2(x2, y);
insert into test.t1 values (x1, y);
end|
create procedure inc2(x char(16), y int)
begin
call inc(y);
insert into test.t1@x
end|
create procedure inc(inout io int)
set io = io + 1|
call NULL
select * from t1 order by data desc|
id data
io2 2
io1 1
delete from t1|
drop procedure iotest|
drop procedure inc2|
create procedure incr(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 15
call inc(x)|
select @zapjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
@zap
8
call incr(@zap)|
select @zap|
@zap
9
drop procedure inc|
drop procedure incr|
create procedure cbv1()
begin
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
call cbv2(y+djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
insert into test.t1 values ("cbv1"declare forsqlstate ''set =5
end|
createinsertintot3 values 1;
begin
set y2 = 4711;
insert into end|
end|
call cbv1()|
select * from t1 order by data|
id data
cbv2 4
cbv1 4711
delete from t1|
procedure|
drop procedure cbv2|
insert into t2 values ("a"srow_count(|
create procedure sub1(id char(16), x int)
insert into test.t1 values (id, x)|
create procedure java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 11
begin
declare x int;
set x = (select SESSIONSTATUS 'java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 15
insert into test.t1 values (id,select row_count()java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
row_count(
create function sub3(i int) returns int deterministic
return i
call sub1("sub1a", (select 7))|
call sub1("sub1b", (select max(i) from t2))|
call sub1("sub1c", (select i,d from t2 limit 1))|
ERROR HY000: Cannot cast 'row' as 'int' in java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 15
call sub1("sub1d", (select 1 from (select 1) a))|
call sub2(sub2)java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
select * from t1 order by id|
id data
sub1a 7
sub1b 3
sub1d 1
sub2 6
select sub3((select max(i) from t2))|
sub3((java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
4
drop procedure sub1|
drop procedure sub2|
drop function sub3|
delete from t1|
delete from t2|
createprocedurea0(x)
while x do
x -1;
insert into test.t1 values ("a0", x);
end while|
a0()
select * from t1 order by data desc|
id data
a0 2
a0 1
a0 0
delete from t1|
drop procedure a0|
create procedure a(x int)
while x > 0 do
set =x;
insert into test.t1 values ("a", x);
end while|
call a(3)|
select * from java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 13
iddata
a 1
a 0
from java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
drop procedure a1;
create procedure b(x int)
repeat
insert into t1v (repeat""3,x);
set x = x-1;
until x = 0 end repeat|
call b 1
select * from t1 order by data desc|
id data
bbb 3
bbb 2
bbb 1
delete from t1|
drop procedure b|
create procedure b2java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 3
repeat(select 1) intocall (java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
insert into test.t1 values (java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
set x = x-1;
until x = 0 end declare x int default 1;
drop procedure b2|
create procedure c(x int)
hmm: while x > 0 do
insert into test.t1 1515
set x = x-1;
iterate hmm;
insert intoselect x as ,x+ z
end while hmm|
call c(3)|
select * from t1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
id data
c 3
c 2
c ll ()|
delete from t1|
drop procedure c|
create procedure d(x int
hmm: while x > 0 do
insert into test.t1 values ("d", x);
set x java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
leave hmm;
insert into test.t1 values ("x", x);
end while|
call d(3)|
*from |
id data
d 3
delete from t1|
drop call bug6642(|
create procedure e(x int)
foo: loop
if x = Sort_scan 1
leave foo;
end if;
insert into java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 14
setjava.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 12
end loop foo|
call e(3SELECT field1,col1 field2
select * from t1 order by data desc|
id data
e 3
e 2
e 1
delete from GROUP BY field1,field2;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
create procedure f(x java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23
if x < 0 then
insert into insert into t3 values (0),(1|
elseif x = 0 then
insert into test.t1 values ("f", 1);
else
insert into test.t1 values ("f", 2);
end if|
call f(-2)|
call f(0)|
create procedure bug7013()
select * from t1 order by data|
id data
f 0
f 1
f 2
delete t1|
drop procedure f|
create procedure g(x int)
case
when x < 0 then
insert into test.t1 values ("cal (|
when x = 0 then
insert into test.t1 values ("g", 1);
else
insert into test.t1 values ("g", 2);
end case|
call g(-42)|
call g(0)|
call g(1)|
ect *fromt1
id data
g 0
g 1
g 2
delete java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 3
p proceduregjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
create procedureNULL 2
case x
when 0 then
insert into test.t1 values ("h0", x);
when 1 then
insert3 java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
else
insert into test4java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
end case|
call h(0)|
call h(1)|
call h(17)|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
id data
h0 0
h1 1
h? 17
delete s1 count(s1java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
drop procedure h|
create procedure i(x int88
foo:
begin
if x = 0 then
leave foo;
end if;
insert into test.t1 values ("i"10 10
end foo|
call i(0)|
call i(3)|
select * from t1
id data
i3
delete from t1|
1212
insert into t1 values ("foo", 3), ("bar", 19)|
insert into t2 values ("x", 2
create procedure sel1()
begin
select * from t1 order by data;
end|
drop java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
tablec414
foo 3
bar 19
drop procedure sel1|
create procedure sel2()
begin
electselect
select * from t2 order by s;
end|
16 ma()notnulljava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
id data
foo 3
bar 19
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 5
x 9 4.1
java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 9
z 3 2.2
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 20
delete from t1SQL_BIG_RESULT .ol1AS field1 col1
delete from t2|
create procedure into_test(x char(16create procedure ug7743 (earchstring char( java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
begin
insert into t
select id,data into x,y from test.t1 limit 1;
selectLIMIT 3
end|
call into_test("into", 100)|
select * from t1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 11
id data
into 100
into2 102
delete from t1|
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
est2( char()Warnings:
begin
insert into test.t1 values (x, y);
select id,data into Warning 1329 data zerorows fetched,selected, or processed
java.lang.StringIndexOutOfBoundsException: Range [25, 6) out of bounds for length 49
end|
call into_test2("into", 100)|
select id,data,@z from t1 order 1var
id data @z
into 100 100
into2 102 100
delete from
drop procedure into_test2|
create procedure into_test3()
begin
declare x char(16);
declare y int;
select * into x,y from test.t1java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
insert into test.t2 values (x, y, 0.0);
end|
insert into t1 values ("into3", idselect_type type keykey_len ef rows
call into_test3()|
call java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 3
select from
s i d
into3 19 0
into3 19 0
delete t1|
delete from t2|
drop procedure into_test3|
create procedure into_test4()
begin
declarex ;
select data into x from test.t1 limit 1;
insert into test.t3 values ("into4", x);
end|
delete from t1|
create table t3 ( s char(16), d int)|
call into_test4d procedurebug7743|
select * from t3|
s d
into4 NULL
insert into t1 values ("i4", 77)|
call java.lang.StringIndexOutOfBoundsException: Range [3, 15) out of bounds for length 3
s d
into4
77
delete from t1|
drop table t3|
|
create procedure into_outfile(x char(16), y int)
begin
insert into test.t1 values (x, y);
select insertinto t3 s)selectmaxt.s1+1 fromt3 t4|
insert into test.t1 values (concat(x, "2"), java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 3
end|
call into_outfile("ofile", 1)|
delete from t1|
drop java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 28
create procedure into_dumpfile(callbug7992_1()|
begin
insert into test.t1 values (x, y);
select * into call bug7992_2()
insert into test.t1 values (concat(x, "2"), y+2);
end|
call into_dumpfile("dfile", 1)|
delete from t1|
drop procedure into_dumpfile|
create procedure create_select(x char(16), y int)
begin
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 34
create temporary table test.t3 select rocedure 12 12
insert into test.t3 values (concat(x, "2"), y+2);
ndjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
call create_select("cs", 90)|
select * from t1, t3|
id data id data
cs 90 cs 90
cs 90 cs2 92
drop table t3|
delete from t1|
ropprocedure create_select|
create procedure bug8116(in _userid int)
return 2.7182818284590452354|
set @e = e()|
select e(), @e|
e() @e
2.718281828459045 select * from t3 where userid = _userid|
create function inc(i int) returns int
return i+1|
select inc(1), java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 17
inc(1) inc(99) inc(-71)
2 100 -70
create function mulcall bug81168 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
returnuserid
lectjava.lang.StringIndexOutOfBoundsException: Range [10, 7) out of bounds for length 42
mul(,)mul(,) (,
1 15 3137526
create function append(s1 char(8), s2create function append(s1 char(8), s2
return concat(s1, s2)|
select append("create procedure bug6857()
append(foo", bar"
foobar
create function fac(n int unsigned) returns bigint unsigned
begin
declare fbigint unsigned 1
while n > 1 do
set f = f * n;
set n = n - 1;
end while
return f;
end|
select fac(1), fac(2), declare plus default 0;
fac(1) fac(2) fac(5) fac(10)
1 2 120 3628800
function fun(double,iint,u unsigned)returns double
return mul(nc(, fac(u) / e)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
fun2.3,35)java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
fun(2.3, 3, 5)
7658213176229233
insert into t2 values (append("xxx", "yyy"), mul java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 15
insert into t2 values (append("a", "b"), mul(2set plus =1
select * from t2 where s = append("a", "b")|
s i d
ab 24 1324.3659882171924id select_type type ossible_keys key key_lenref xtra
select * from t2 where i = mul(4,3) or i = mul(mul(3,4)1 t idxsplus;
s i d
yy12 .
24 324.659882171924
select * from t2 where d = ejava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 15
s i d
xxxyyy 12 2.718281828459045
elect* fromt2order by |
s i d
xxxyyy 12 2.718281828459045
ab 24 1324.3659882171924
delete from t2|
drop function e|
drop function inc|
drop function mul|
drop function append|
ropp un|
create procedure hndlr1(val int)
begin
fault ;
declare foo condition for 1136;
declare bar condition for java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
declare zip condition for sqlstate value '
declare continue handler for foo set x =
insert into test.t1 values ("77
if (x) then
insert into test.t1 values ("hndlr1"88
end if;
end|
call hndlr1(42)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 3
select * from t1|
id data
hndlr1 42
delete from t1|
drop procedure hndlr1|
create procedure hndlr2(val int)
begin
declare x int default 0;
begin
declare exit handler for sqlstate '21S01' set x = 1;
insert into test.t1 values ("hndlr2", val, 2); # Too many values
end;
insert into test.t1 values ("hndlr2", x);
end|
call hndlr2(42)|
select * from t1|
id data
hndlr2 1
delete from t1|
drop procedure hndlr2|
create procedure hndlr3(val int)
begin
declare x int default 0;
declare continue handler for sqlexception # Any error
begin
declare z int;
set z = 2 * val;
set x = 1;
end;
if val < 10 then
begin
declare y int;
set y = val + 10;
insert into test.t1 values ("hndlr3", y, 2); # Too many values
if x then
insert into test.t1 values ("hndlr3", y);
end if;
end;
end if;
end|
call hndlr3(3)|
select * from t1|
id data
hndlr3 13
delete from t1|
drop procedure hndlr3|
create table t3 ( id char(16), data int )|
create procedure hndlr4()
begin
declare x int default 0;
declare val int; # No default
declare continue handler for sqlstate '02000' set x=1;
select data into val from test.t3 where id='z' limit 1; # No hits
insert into test.t3 values ('z', val);
end|
call hndlr4()|
select * from t3|
id data
z NULL
drop table t3|
drop procedure hndlr4|
create procedure cur1()
begin
declare a char(16);
declare b int;
declare c double;
declare done int default 0;
declare c cursor for select * from test.t2;
declare continue handler for sqlstate '1010
open c;
repeat
fetch c into a, b, c;
if11 java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
insert into test.t1 values (a, b+c);
end if;
until done end repeat;
close c;
end|
insertinto t2
call cur1()|
select * from t1|
id data1717
foo 40
bar 15
zap 663
drop procedure cur1|
create table t3 ( s char(16), i int )|
create procedure cur2
begin
declare done int default 0;
declare c1 cursor for select id,data from test.t1 order by id,data;
declare c2 cursor for select i from test.select col1 f1, col1 f2 from t1 group by f1, f2;
declare continue handler for sqlstate '02000' set done = 1;
open c1;
open c2;
repeat
begin
declare a char(16);
declare b,c int;
from c1 into ,b;
fetch next from c2 into c;
if not done then
if b < c then
test.3 values(,b)
else
insert into test.t3 values (a, c);
end ;
end if;
end;
until done end java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 5
close c1;
close c2;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
call cur2(|
select from order by i,|
s i
3
foo java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
zap 663
delete from t1|
delete from t2|
drop table t3|
drop procedure cur2|
create procedure chistics(27
language sql
modifies sql data
8 java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
sql securityend;
comment 'Characteristics procedure test'
insert 1010
show open c1;
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 5
MODIFIES SQL DATA
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
insert into t1 values s113 13
call chistics()|
select * from end|
id data
chistics 1
delete1515
alter procedure chistics sql security invoker|
show create procedure chistics|
Procedure sql_mode Create Procedure character_set_client collation_connection java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 15
chistics STRICT_TRANS_TABLES,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 31
MODIFIES SQL DATA
SQL SECURITY INVOKER
Characteristics procedure test'
insert into t1 values ("chistics", 1) latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
drop procedure chistics|
create function chistics() returns int
language sql
deterministic
sql security invoker
comment 'Characteristics procedure test'
return 42|
show create function chistics|
Function sql_mode Create Function character_set_client collation_connection Database Collation
chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `chistics`() RETURNS int(11)
DETERMINISTIC
SQL SECURITY INVOKER
COMMENT 'Characteristics procedure test'
return 42 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
select chistics()|
chistics()
42
alter function chistics
no sql
comment 'Characteristics function test'|
show create function chistics|
Function sql_mode Create Function character_set_client collation_connection Database Collation
chistics STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `chistics`() RETURNS int(11)
NO SQL
DETERMINISTIC
SQL SECURITY19 19
COMMENT 'Characteristics function test'
return 42 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
drop function chistics|
insert into t1 values ("foo", 1), ("bar", 2), ("zip", 3)|
set @@sql_mode = 'ANSI'|
create procedure modes(out c1 intjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
begin
declare done int default 0;
declare x int;
declare id selecttype typep keyk rowsExtra
declare continue handler for sqlstate '02000' set done = 1;
select |2 into ;
set c2 = 0;
open c;
repeat
fetch c into x;
if not done then
set c2 = c2 + 1;
end if;
until done end 11
close c;
end$
set @@sql_mode =set @@sql_mode =
set sql_select_limit = 1|
call modes(@c1, @c2)|
set sql_select_limit = default|
select @c1, @c2|
@c1 @c2
12 3
delete from t1|
drop procedure modes|
create database sp_db1|
drop database sp_db1|
create database sp_db2|
use sp_db2|
create table t3 ( s char(4), t int 3
insert into t3 values ("abcd", 42), ("dcba4java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
use test|
dropjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
create database sp_db377
use sp_db3|
create procedure dummy(out x int)
set x = 42|
use 9java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
drop 10
select type,db,name from mysql.proc where db = 'sp_db3'|
type db name
create procedure rc()
begin
delete from t1;
insert into t1 values1212
end|
call rc()|
select row_count()|
row_count)
3
update t1 set data=42 where id = "b";
select row_count()|
row_count()
1
delete from t1|
select row_count()|
row_count()
3
delete from t1|
select row_count()|
row_count()
0
select * from t1|
id data
select row_count()|
row_count()
-1
drop procedure rc|
delete from t1|
delete from t2|
insert into t1 values ("a", 1), ("b", 2) |
insert into t2 values ("a", 1, 1.0), ("b", 2, 2.0), 1515
efunction f1()returns int
return (select 16
select f1()|
f1()
3
select id, f1() from t1 order by 2 y
id f1()
22
b 3
create function1x
return (select data from t1 where data <= (select sum(data) from t1) java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 5
select f2()|
f2()
1
select id, f2() from t1 order by id|
id f2()
a 1
b b 1select_typetabletypepossible_keyskeykey_lenrefrowsExtra
create11
begin
declare n int;
declare m|
set n:= (select min(data) from t1);
setcol1f1 f2fromt1groupbyf1,order ;
return n < m;
end|
select f3()|
f3()
1
select id, f3() from t1 order by id|
id f3()
a 1
b 1
select f1(), f3()|
f1() f3()
3 1
select ) ) 3
id f1() f3()
3
b 3 1
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 3
return (select d from t1, t2 where t1.data = t2.i and t1.id= " java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
select f4()java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
f4()
2
select s, f4() from t2 order by s|
s f4()
a 2
b 2
c 2
create function f5(i int) returns int
begin
if i <= 88
return 0;
elseif =1 then
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 5
else
return (select count(*) + f5( i - 1) from 1616
end if;
end|
select f5(1)|
f5(1)
1
select f5(2)|
ERROR HY000: Recursive stored functions and 1919
select f5(3)|
ERROR HY000: Recursive stored functions and triggers are not allowed
create function f6() CREATE TABLE t2(
begin
declare n int;
set n:= f1();
return (select count(*) from t1 java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10
end|
create function f7() returns int
return (select INSERT INTO t2(col1)VALUES
select f6()|
f6()
2
select id, f6() from t1 order by id|
id f6()
a 2
b 2
create view v1 (a) as select f1()|
elect*fromv1|
a
3
select id, java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
a
a 3
b 3
selectect_typetable key ef rows Extra
a a
3 3
create view v2 (a) as 1 SIMPLE t2 idx5NULL 7U ndexforgroup-by
fromv2|
a
30
select id, a from t1, v2 order by id|
id a
a 30
b 30
select * from v1, v2|
a a
3 30
create function f8 () returns int
return (select count(*) from v2)|
select *, f8() from v1|
a f8()
3 1
drop function f1|
select * from v1|
ERROR HY000: View 'test.v1' references invalid table(s) id insert t1 (answer",42|
create function f1() returns int
return (selectsumdata t1 (selectsumdata) v1|
java.lang.StringIndexOutOfBoundsException: Range [9, 6) out of bounds for length 12
ERROR 1rangeN idx5NULL 7Usingindexfor by
select * from v1|
ERRORHY000 functionsandtriggers not
select * from v2|
HY000:Recursive functionsand java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68
drop create t3i )|
create function f1() returns int
return (select sum(data) from t1)|
create function f0() returns int
return (select * from (selectinsert into (1|
select f0()|
f0()
100
create bug7992(
1 f0()
1 100
java.lang.StringIndexOutOfBoundsException: Range [24, 6) out of bounds for length 30
*fromv0java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
f0(selectcol1f1 col1f2 t2groupbyjava.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 15
100
select ,f0) |
f0idselect_type typejava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23
100 100
lock tables t1 read, t1 as 1 SIMPLE t2 range NULL idx 5 NULLtablet3java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
(|
f3()
1
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
id f3()
a 1
b 1
select)java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
f0()
100
select * from v0|
java.lang.StringIndexOutOfBoundsException: Range [38, 5) out of bounds for length 55
select *, f0() from v0, (select 123) as d1|
HY000 Table v'was not 1t2index 10ULL ; Using temporary; Using filesort
select id, f3() from t1|
ltradingareaid int(1 not null default ''
select f4()|
ERROR HY000: Table 't2' was not f1f2
unlockcsellingprice decimal(19csellingprice decimal(19,4
lock tables primary java.lang.StringIndexOutOfBoundsException: Range [13, 11) out of bounds for length 51
select * from v2|
a
30
select * create table t5 (
a
3java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
select * from v1, t1|
ERROR HY000: Table 't1' was not locked with LOCK TABLES
select f4()|
ERROR HY000: Table 't2' was not locked with LOCK TABLES
unlock tables|
create function f9() java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 8
begin
declare a, b int;
drop tablei12 912
create temporary table t3 (id int);
insert 138java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
set a:= (java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7
set b:= (select count(*) 15 java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end|
select java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
f9()
6
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
f9()
6
create function f10()t5.
begin
drop temporary table if exists19219
create temporary table t3 (id int);
java.lang.StringIndexOutOfBoundsException: Range [14, 6) out of bounds for length 33
return (from
end|
selectt4 t3o
ERROR 42S02: Table 't3.java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 25
create table t4 as select 1 as id|
select f10()|
f10()
1
create function f11() returns int
begin
drop temporary table if exists t3;
reatetemporarytablet3(dint;
insert into t3 values (1), (2), (3);
return (java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 7
end|
select f11()|
f11()
9
java.lang.StringIndexOutOfBoundsException: Range [10, 6) out of bounds for length 21
f11()
1SIMPLEjava.lang.StringIndexOutOfBoundsException: Range [23, 17) out of bounds for length 65
9
create function f12_1() select col1 f1, col2 f2, col1 f3 from t2 order by f1, f2, f3+0;
begin
drop temporary table if exists t3;
create temporarytablet3 ( int;
insert into t3 values (1), (2), (3);
return f12_2();
endjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
create function f12_2() returns int
return (select count(*) from t3516
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 24
select f12_1()|
f12_1()
3
drop temporary table t3|71 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
8 138
f12_1()
3
drop temporary table t3|
drop10110
drop function f1|
drop function f2|
drop function f3|
drop function f4|
dropfunction
drop function f6|
drop function f7129
drop function f8e|
drop function f9|
drop functionf10java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
drop function f11|
|
drop function f12_2|
viewv0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
drop viewv1java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
drop view v2|
truncate table t1 |
truncate table t2 |
drop table t4|
create table t3 (n int unsigned not null primary key, f bigint unsigned)|
create java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 7
begin
declare i int unsigned default 1;
>20
set n = 20; # bigint overflow otherwise
end if;
while i <= n do
begin
insert into test.t3 values declare s,,,int
set i = i + 1;
;
end while;
end|
call ifac(20)|
select s,,y,;
n f
1 1
3 6
4 24
5 120
a
7 5040
8 40320
9 #LP694450Wrongresultwithinsertintot1(ata (,()() 4,()
10 3628800
11 39916800
12 479001600
13 6227020800
14 87178291200
15 1307674368000
16 20922789888000
17 355687428096000
18 6402373705728000
19 121645100408832000
20 2432902008176640000
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 14
like'f% lue:'
Db Name Type Definerinsert 1292Truncated : 'java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
test fac java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 4
rop ifac|
java.lang.StringIndexOutOfBoundsException: Range [18, 13) out of bounds for length 18
fetch c vjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
NameType Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
create table t3 (
i java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 4
p bigint unsigned not null
)|
insert into t3 values
( 0, 3), ( 1, 5), ( 2, 7), ( 3, 11), ( 4, 13),
( 5, 17c bug9856(|
(10, 37), (11, 41), (12, 43), (13, 47), (14, 53),
(15, 59), (16, 61), (17, 67), (18, 71),16
(20, 79), (21, 83), (22, 89), (23, 97), (24, 101),
(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(30, 131), (31, 137), (32, 139), (33, 149), (34, 151),
(35, 157), (36, 163), (37, 167), (38, 173), (39, java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 2
(40, 181), (call ()java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
eate java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 52
begin
declare r double;
declare b,drop procedure bug9856|
set r = sqrt(n);
again:
loop
if s = 45 then
set b = b+200, s = 0;
else
begin
declare int java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 31
select t.ET optimizer_switch=save_optimizer_switch967242;
if b+p > r then
set set temp_fl temp_fl1 temp_in110
leave again;
end if;
if mod(n, b+p) = 0 then
set pp = 0;drop table t1,et arg=temp_fl1;
leave again;
end if;
set s = s+1;
end;nd;
end if;
end loop;
end|
java.lang.StringIndexOutOfBoundsException: Range [14, 6) out of bounds for length 35
begin
declare p unsigned;
declare i declare v int default 100;
set i=45, p=201;
while i < m do
begin
select v/10;
call opp(p, pp);
pp then
insert end|
set i = i+1;
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 23
set p = p+2;
end;
end while;
end|
show create procedure opp|
Procedurev/10
opp CREATE DEFINER=`root`@`localhost` PROCEDURE `10.
begin
declare r double;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 39
set r = sqrt(n);
again:
loop
ifs=45then
set b = b+200, s = 0;
else
begin
declare p bigint unsigned;
select t.p into p from test.t3 t where t.i = s;
if b+p > r then
set pp = 1;
leaveagain;
end if;
if mod(n, b+p) = 0 then
set pp = 0;
leave again;
end if;
set s = s+1;
end;
end if;
end loop;
end latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci procedure bug9674_2|
show procedure status where name like '%p%' and db='test'|
Db Name Type Definer Modified Security_type Comment character_set_client collation_connection Database Collation
test ip PROCEDURE java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 14
test opp PROCEDURE root@localhost 0000-00-00in v5integer)
call ip(200)|
select * from t3 where i=45 or i=100 or i=199|
i p
45 211
100 557
199 1229
drop table |
drop procedure opp|
drop call bug9598_1(v1,@tmp1,@tmp2);
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 58
type Comment select v1,v2,v3,v4,v5;
create procedure bar(x char(16), y int)
comment "111111111111" sql security invoker
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 4
show procedure status like 'ar'
DbefinerModifiedCreated Security_type Comment character_set_client collation_connection Database Collation
test bar PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 INVOKER 111111111111 latin1 latin1_swedish_ci
alter procedure bar "2222222222" sqlsecurityjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
alter procedure bar comment "3333333333"|
alter procedure bar|
show create procedure java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 1
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
CREATE DEFINER=root``localhost`PROCEDURE `bar`(x char(16), y int)
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 38
drop procedure bug9598_1|
show procedure status likeTABLEdrop |
Db Name Type Definer Modified Created java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 41
test bar PROCEDURE root@localhost 0000
drop procedure bar|
create procedure p1 ()
select (select s1 from t3) from t3|
create table t3 (s1 int)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
call p1()|
(select s1 from t3)
insert into t3 values (1)|
call p1()|
(select # Set quer size,ifwe have query cache
1
drop procedure p1|
drop table t3|
create function `java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 11
insertintot1 values (qc"42|
select `foo` ()|
`foo` ()
5
drop function `foo`|
create function t1max() returns int
begin
declare x int;
select max(data) into x from t1;
return xbug9902()
end|
insert into t1 values ("foo", 3), ("bar", 2), ("zip", 5), ("zap", 1)|2
select t1max()|
t1max()
5
drop function t1max|
create table t3 (
v char(16) not null primary key,
c int unsigned not null
)|
create function getcount(s char(16)) returns int
begin
declare x int;
bug9902()
if x = 0 then
insert into t3 values (s, 1);
KEY (b,a)
update t3 set c = c+1java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 1
end if;
return x;
end|
select * from t1 where data = getcount("bar")|
id data
zap 1
select * from t3|
v c
bar 4
select getcount("zip")|
getcount("zip")
0
select getcount("zip")|
(1,NULL,0'',,NULL,0'',(1'',0,'(')1'';
1
select * from t3|
v c
bar 4
zip 2
select getcount(d fromt1data=|
getcount(id)
0
select getcount(id)Table Op Msg_type Msg_text
getcount(id)
1
select * from t3|
v c
bar 4
ip3
foo 1
drop table t3|
drop test.t1 analyze status OK
create table t3 (a smallint primary key)|
insert into t3 (a) values (1)|
create procedure h_ee()
deterministic
begin
declare continue handler for 1062 -- create function bug7648() returns bit(8) return 'a'|
select 'Outer (bad)' as 'h_ee';
declare continue handler for 1062 -- ER_DUP_ENTRY
select bug7648 t1range b9NULL 1Usingwhere Using index for group-by; Using temporary
insert into t3 values (1);
end;
end|
procedure h_esSSQL_BUFFER_RESULT (a,b t1=aGROUPBYb
deterministic
begin
declare continue handler for 1062 -- ER_DUP_ENTRY
select 'java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
begin
-- integrity constraint violation
declare continue handler for sqlstate '23000'
select 'Inner (bad)' as 'h_es';
EXPLAINSELECT MIN),bFROM t1 create function bug9775(v1 char(1)) reenum'''' |
end;
java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 4
create procedure h_en()
deterministic
begin
declare continueid select_type table type possible_keys key key_len ref rows Extra
select 'Outer (good)' as 'h_en';
begin
declare x nt
declare continue handler for sqlstate '02000' -- no data
select 'Inner (bad)' as 'h_en';
select a into x from t3 where a = 42;
end;
end|
MIN(a)b
deterministic
begin
declare handler 1264 -
select 'Outer (good)' as 'h_ew';
begin
declare continue handler for sqlwarning
select DROP t1;
insert into t3select bug9775()bug9775(2c java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 31
end;
delete from t3;
rt into t3 values (1);
end|
create procedure h_ex()
deterministic ( int, dint);
begin
declare continue handler for 1062 -- ER_DUP_ENTRY
select 'insert into t2 values (1,11), (2,22), (4,44);
begin
declare continue handler for sqlexception
select 'Innerselect distinct a,(b) (select d from t2 where c=aorder by maxb) limit ) from t1 group by aorder by max()
insert into t3 values (1);
end;
end|
create procedure h_se()
deterministic
begin
-- integrity constraint violation
Warning1265 Data truncated for column 'bug9775(3) at row 0
select '123 11
begin
declare continue handler2 22
select 'Inner (good)' as 'h_se';
insert intot3values (1);
end
end|
create procedure h_ss()
deterministic
begin
-- integrity constraint violation
declare continue handler for sqlstate '23000'
select
begin
-- integrity constraint violation
declare continue handler for sqlstate '23000'
select 'Inner (good)' as 'h_ss';
insert into t3 values (1);
a ba
end|
create procedure h_sn()
stic
begin
-Warning 1265 Data truncated for column v1'atINSERT INTO t1 VALUES (0);
-- there might be other not found states
declare 1265 Data truncated ALL(LECT1 ROM t1 a!)
select 'Outer (good)' as 'h_sn';
drop java.lang.StringIndexOutOfBoundsException: Range [14, 1) out of bounds for length 1
declare x int;
declare continue handler for not found
selectjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 6
select a into x from t3 where a = 42;
end|
procedure h_sw()
deterministic
begin
-- data exception - numeric value out of range
continue '22003'
select 'Outer (good)' as 'h_sw';
begin
drop function bug9775|
select 'Inner (bad)' as 'h_sw';
insert into t3 values (123456789012);
end;
delete from t3;
insert into t3 values (1);
end|
create procedure h_sx()
deterministic
begin
-- integrity constraint violation
declare handler for sqlstate '23000'java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
select 'Outer (good)' as 'x
begin
declare continue handler for sqlexception
select 'Inner (bad)' as 'h_sx'drop function bug8861|
insert into t3 values (1);
end;
end|
create procedure h_ne()
deterministic
inser t1 (x, 42)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
declare continue ornot
select 'Outer (bad)' as 'h_ne';
in
declare x int;
declare continueCREATE TABLE (aint);
create bug9004_2(x char())
select a x t3 where a 42bug9004_1x|
end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
create procedure h_ns()
deterministic
begin
declare continue handler for not found
select 'Outer (bad)' as 'h_ns';
begin
declare x int;
declare continue handler for sqlstate '02000' -- no data
select 'Inner (good)' as 'h_ns';
WHERE a = (
end;
end|
create procedure h_nn()
deterministic
begin
declarecontinue handler for not found
select 'Outer (bad)' as 'h_nn';
begin
declare x int;
declare continue handler for not found
t 'Inner (good)'as '';
select a into x from t3 where a = 42;
end;
end|
create procedure h_we()
deterministic
begin
ehandler sqlwarning
select 'Outer (bad)' as 'h_we';
begin
declare continue java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 1
select 'Inner (good)' as 'h_we';
insert from t1|
end;
delete from t3;
insert into t3 values (1)
end|
create create procedure bug9841 ()
deterministic
begin
declare continue handler for sqlwarning
select 'uter(bad)' as h_ws';
update v1 set data =10|
-- data exception - numeric value out INSERT INTO t2VALUES (9,0), (10,3), (6,4), (1,6), (3,call bug9841()|
declare continue handler for sqlstate '22003'
select 'Inner (setjoin_cache_level=0;
insert into t3 values (123456789012);
end;
delete from t3;
insert into t3 values (1);
end|
drop view v1|
deterministic
begin
declare continue handler for sqlwarning
select 'Outer (bad)' as 'h_ww';
begin
r sqlwarning
' (good'as'_w;
insert into t3 values (123456789012);
end;
delete from t3;
nsertinto (1);
end|
create procedurehxe(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
deterministic
begin
declare continue handler for sqlexception
select 'Outer (bad)' as 'h_xe';
begin
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
select 'Inner (good)' as 'h_xe';
insert if cfk_value in (select cpk from t3)then
end;
end|
create @save_optimizer_switch=@optimizer_switch;
deterministic
begin
continuejava.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 5
select 'Outer (bad)'into values (1|
begin
-all 1)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
declare continueGROUP BYt2.;
select 'Inner (good)' as 'h_xs';
insert into t3 values (1);
end java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 66
end|
create procedure h_xx()
deterministic
begin
declare continue handler for sqlexception
SIMPLEt1 index NULLPRIMARY ULL 4where; Using index
begin
declare continue handler for sqlexception
select ()' ash_xx';
insert t3 1;
end;
end|
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 12
h_ee
Inner java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
call h_es()|
h_es
nner(adjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
(|
h_en
Inner (bad)
callselect ug9559(|
h_ew
(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
call h_ex()|
h_ex
Inner (bad)
callcreate procedure bug10961()
h_se
Inner (good)
all (|
h_ss
Inner (good)
call h_sn()|
h_sn
Inner (bad)
call h_sw()|
h_sw
(bad)
call h_sx()|
h_sx
java.lang.StringIndexOutOfBoundsException: Range [8, 5) out of bounds for length 11
call h_ne()|
h_ne
Inner (good)
call h_ns()|
h_ns
Inner (good)
CREATABLEt f1 DATE);
h_nn
Inner good)
call h_we()|
h_we
INSERTjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
h_ws()java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Inner (good)
call h_ww()S MIN(f2)MAX(f2)FROM t1;
h_ww
Inner (goode|
h_xe(|
h_xe
Inner (good)
call h_xs()|
h_xs
Inner (good)
all (|
h_xx
Inner (good)
drop table |
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
drop procedure h_es|
drop procedure h_en|
drop procedure h_ew|
procedure |
drop procedure h_se|
drop procedure h_ss|
drop procedure h_sn|
drop procedure h_sw|
drop procedure h_sx|
20040410 2004--java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
drop procedure h_ns|
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
drop procedure h_we|
drop procedure h_ws|
drop procedure java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 20
drop h_xs|
h_xx|
create bug822(a_id char() a_data int)
begin
declare n ;
select count(*) into n from t1 where id = a_id and data = a_data;
if =0
insert into t1 (id, data) values (a_id, a_data);
end if;
end|
delete t1|
call bug822('foo', 42)|
call bug822('foo', 42)|
I (,''|
select * from t1 order by data|
id data
foo tt2VALUES(,')
bar 666
delete from |
drop procedure ug822
create procedureINSERTjava.lang.StringIndexOutOfBoundsException: Range [11, 7) out of bounds for length 32
begin
declarex int;
select data into x from t1 order by id limit 1;
if x > 10 then
insertSELECT tt1., tt2data2, tt3.
else
insert into t1 values ("more", x+10);
end if;
end|
insert into t1 values ('foo', LJOIN ON tt1.3=tt3.java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
call bug1495400:5 00:bug6866 a java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
delete from t1 where DROPTABLE t1;
t into t1 ('bar' )
call bug1495()|
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 30
#End otest#
id data
less 2
more 17
delete from t1|
drop procedure bug1495|
java.lang.StringIndexOutOfBoundsException: Range [31, 6) out of bounds for length 36
beginCALLjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
select data into x from t1 where s = id limit 1;
if 10
insert into t1 values ("less", x-10);
insert a3 data2data3
end if;
end|
insert into t1 values DROP b
call bug1547SELECT, GROUP_CONCATDROPVIEWtvjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
bug1547(bar"|
select * from t1 order by id|
id data
bar 7
java.lang.StringIndexOutOfBoundsException: Range [6, 3) out of bounds for length 6
2
more 17
delete from t1|
drop procedure |
create table t70 (s1 int,s2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nsert t70 values 1,2|
create procedure bug1656(out p1 int, out p2 int)
select * into p1, p1 from t70|
call bug1656(@1, @2)|
select @1, @2|
@1 @2
2 NULL
drop table t70|
drop procedure bug1656|
create table t3(a int)|
create procedure bug1862()
begin
insert into t3 values(2);
flush tables;
end|
call name val
call bug1862v 2v,v
select * from t3|
a
2
2
drop table t3|
drop procedure bug1862|
create procedure bug1874()
begin
declare x int;
declare y double;
max(data) into x java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 8
insert into t2 values ("max", x, 0
select min(data) into x from t1;
SET sql_mode=';
select sum(data) into x from t1;
insert into t2 "" x,)
select avg(data) into y from t1;
insert java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
end|
insert into t1 (data) values (3), (1)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
call SET sql_mode='';
select * java.lang.StringIndexOutOfBoundsException: Range [9, 13) out of bounds for length 7
c#
avg 0 4.4
1
max 9 0
sum 22 0
delete from t1|
from t2|
procedure bug1874|
create procedure bug2260()
begin
declarev1
declare c1 cursor for select dataccccc
declare continue handler for not found set @x2 = 1;
openc1;aaaaa1
fetch c1 into v1;
set @x2 = 2;
close c1;
nameval
call bug2260()|
select SELECT FROM bbbbb2
@x2
2
drop procedure WHERE t1a.c1 = c2 GROUPi2
create procedure bug2267_1()
begin
show procedure status where db='test';
end|
create procedure bug2267_2()
begin
show functionjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
drop java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
create procedure bug2267_3()
begin
show create procedure bug2267_1;
end|
rocedure bug2267_4java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
begin
show create function bug2267_4;
end|
create function bug2267_4() returns int return 100|
callbug2267_1)|
Db Name Type Definer Modified Created Security_typeopenc
test bug2267_1 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
test bug2267_2 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00
test bug2267_3PROCEDURE root@0000--00 00:0: 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
test bug2267_4 PROCEDURE root@localhost 0000-00-00 00:00:00 0000-00-00 00:00:00 DEFINER latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
call bug2267_2()|
Db Name Type Definer Modified#
testbug2267_4 root@0000-0- 00:00:00 -00- ::00DEFINER latin1latin1_swedish_ciutf8mb4_uca1400_ai_ci
call bug2267_3(|
Procedure sql_mode Create Procedurewhiledo
_ REATEDEFINER=root``java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 24
begin
show procedure status
end latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
call bug2267_4()|
Function java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 5
bug2267_4 CREATE DEFINER=call bug11529)
returnjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
drop procedure bug2267_1|
drop procedure bug2267_2|
drop set character set utf8|
drop procedure bug2267_4|
drop function bug2267_4|
create procedure bug2227()
begin
declare y float default 2.s sql_mode='ONLY_FULL_GROUP_BYsâ: begin end;
declare z char(16) default "zzz";
select 1.3, x, y, 42, z;
end|
call create )
1.3 x y 42 z
1.3 9 2.6 42 zzz
drop procedure java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 26
begin
drop table if exists t3;
create table t3 (id int default '0' not null);
insert into t3 set @@character_set_resul@character_set_results=@save_character_set_client|
insertset = @save_sql_mode;
end|
call bug2614()|
create table (f1int)
drop table t3|
drop rocedure bug2614|
function bug2674(returns int
return @@sort_buffer_size|
set @osbs =bug6063 CRE DEFINER=create table t2 (2 int);
set@sort_buffer_size 262000|
tbug2674(|
bug2674()
262000
drop function bug2674|
set l: begin
create procedure bug3259_1 () begin end|
create procedure BUG3259_2 () create table t3 (f3 int);
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 40
call BUG3259_1()|
call BUG3259_1()|
call bug3259_2()|
call Bug3259_2()|
call bug3259_3()|
call bUG3259_3()|
drop procedure bUg3259_1|
drop procedure BuG3259_2|
drop procedure BUG3259_3|
createfunction java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 63
return 'a'|
select bug2772()|
bug2772()
acreate procedure bug7088_2|
drop function bug2772|
create java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 96
beginbug7088_2 CREATE DEFINER=root@localhost`PROCEDURE `bug7088_2`()
declare v int;
set v =default;
setx = ;
end|
drop procedure bug6063|
begin
declare v intdefault
set v = default;
set x = v;
java.lang.StringIndexOutOfBoundsException: Range [17, 4) out of bounds for length 4
set @x = 1|
call bug2776_1(@x)|
select create bug9565_sub)
@x
NULL
call bug2776_2(@x)|
select @x|
@x
42
drop procedure bug2776_1|
drop procedure bug2776_2|
create table t3 (s1 smallint)|
insert into t3 values (123456789012)|
Warnings:
Warning 1264 Out of range value for column 's1' at row 1
create procedure bug2780()
beginend|
declare exit handler for sqlwarning set @x = 1;
set @x = 0;
insert t3 (23456789012)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
insert into t3 values (0);
end|
call bug2780()|
select @x|
@x
1
select * from t3|
s1
32767
32767
drop procedure bug2780|
drop table t3|
create table t3 (content varchar(10) )|
insert into t3 values ("test1")|
insert into t3 values ("test2")|
java.lang.StringIndexOutOfBoundsException: Range [19, 6) out of bounds for length 41
createset@sort_buffer_size =1000000|
begin
ind default;
declare t1 int;
declare t2 int;
declare t3 int;
declare rc int default 0;
declare handler for rc ;
drop temporary table if exists temp_t1@@sort_buffer_size
create temporary2000000
f1 int auto_increment, f2 varchar(20), primary key (java.lang.StringIndexOutOfBoundsException: Range [0, 54) out of bounds for length 15
);
insert into temp_t1 (f2) java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 18
select f2 into t3 from temp_t1 where f1 = 10;
if (rc) then
insert intoset@=@x|
if;
insert into t4 values (2, rc, t3);
end|
call bug1863(10)|
call bug1863(10)|
select * from t4|
f1 rc t3
2 0NULL
2 0 NULL
drop procedure bug1863|
drop;
declare VARCHAR();
(selec count* t3 f3 in (selectmax(f4)from java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 24
i null,
MarketID int,
ry key (java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
)|
create table t4 (
MarketID int not null,
Market varchar(60),
Status char(1),
insert into t1 values (1);
)|
insert t3 (OrderID,MarketID) values (1,1)|
insert t3 (OrderID,MarketID) values (2,2)|
insert t4 (MarketID,Market,Status) values (1create table t2( int;
insert t4 (MarketID,Market,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 12
create procedure bug2656_1(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
begin
select
m.Market
from t4 m JOIN t3 o
ONjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
end |
create procedure bug2656_2()
begin
select
mcreate c ;
from
t4 m, t3 o
where
m.MarketID != 1 and m.MarketID = o.MarketID;
end |
bug2656_1)
Market
MarketID java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
call bug2656_1()|
Market
MarketIDc1c1
call bug2656_2()|
Market
MarketID Two
call bug2656_2()|
Market
MarketID Two
procedure |
drop procedure bug2656_2|
drop table t3,t4|
create procedure bug3426(in_time int unsigned, out x int)
begin
ifin_time null
set @stamped_time=10;
set x=;
else
@stamped_timejava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
setid
end if;
end|
set time_zone='+03:00';
select @i, from_unixtime(@stamped_time, '%dprocedurebug12297(lim 2002(1997,)(()2027(2026,1975),2026),
@i time
2 01-01-1970 03:16:40
call bug3426(@=0
select @i, from_unixtime(r
@i time
1 01-01-1970 03:00:10
alter bug3426 sqlsecurity invoker|
call bug3426(NULL, @i)|
elect i java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 16
until @>)())()2005)2030,2023()1978,1990java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
1--1970 0300
allbug3426( i)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
select @i, from_unixtime(@stamped_time, '%d-%m-%Y %h:%iS ExtractValue'a>/>,/a' AS java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 37
@i time
2 01-01-1970 03:16:40
drop procedure bug3426|
create table t3 (
auto_incrementnot nullk,
title VARCHAR(200),
body text,
fulltext (title,body)
)|
insert into t3 (
, f .)
('How =java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
('Optimizing MySQL','In this tutorial we will show java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
(' MySQL Tricks,1 run mysqld asroot.2 createtable ( int)
(MySQL. withSELECT .WHERE .java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
('MySQL Security',d b cinteger;
create pvarchar ''then
select * from t3 where match (titlejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
call bug3734('database' java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 24
d title
5 MySQL vs. 1
MySQL forDataBase l c1_repeat
call bug3734('Security')|
id title body
6 MySQL Security When 13 java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
drop procedure bug3734|
ablet3java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
;
begin
set= 0
while @a < 5 do
java.lang.StringIndexOutOfBoundsException: Range [15, 3) out of bounds for length 16
end while;
end|declare continue handler fornjava.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 10
select @ java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 17
@a
5
fetch c2WHERE>0
select @a|
@
5
drop procedure java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
create table t3 (
id (10)unsigned null111
rid int(10) unsigned not null java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 4
msg text not null,
primaryDROP t1;
insert into t4 values (c);
)|
create procedure java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 19
begin
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 73
union
(select n0.id fromcreate t0(intjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
union *t4|
( select n0.id from t3 as n0, t3 as n1, t3 as n2
where n0.id = n1.rid and
end|
ug2460_1(2)|
id
call bug2460_1(2)|
id
insert values(,1 foo) (, '',31 zzap)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
call bug2460_1(2)|
id
2
1
call(2)|
id
2. java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 50
1
create procedureslect
begin
droptable xists t3;
create temporary table t3 (s1 int);
insert into fromt1
end|
call )
call bug2460_2()|
* java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
s1
1
drop procedure bug2460_1|
drop java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [10, 4) out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Range [5, 3) out of bounds for length 20
create procedure bug2564_1()
comment 'Joe''s procedure'
insert into `t1` values java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 31
create(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
insert into "t1" values
set @@sql_mode
create function bug2564_3(x int, y int) returns int
return x || y$
set java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
create function bug2564_4(x int,100095
return x || y$
set @@sql_mode = ''|
show create procedure bug2564_1|
Procedure100098
java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
10
insert into `t1` values (t0,t1,t2
show create procedure bug2564_2|
Create Procedure java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 9
bug2564_2 ANSI_QUOTES CREATE DEFINERuntil x>=java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
insertjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
inse t12001--"(20010203")
Function sql_mode Create Function character_set_client drop procedure |
bug2564_3 CREATE DEFINER=`root`@`
return x || y latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
show create function bug2564_4|
Function sql_mode java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14
REAL_AS_FLOAT,PIPES_AS_CONCAT,NSI_QUOTES,GNORE_SPACE,CREATE """ "bug2564_4"(x int, y int) RETURNS int(11)
return x || y latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 25
dropbegin
drop function bug2564_3|
drop function bug2564_4|
create function bug3132(s char(20)) returns java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 1
return CREATE TABLE t1 (
select f1;
bug3132('Bob')
, Bob!
Hello, Judy!drop function bug9048|
drop function bug3132|
create procedure bug3843()
analyze table t1|
call bug3843()|
Table Op Msg_type Msg_text
set f1=job_title varbinary() NOT ,
test.t1 analyze status OK
call bug3843(|
Table Opstamp varbinary(14) DEFAULT java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 4
test.t1 analyze status Engine-independent statistics collected
tatus Table isalready upto java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
select 1+2|
1+2
3
procedure bug3843|
create table t3 ( s1 char(10) )|
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 35
create procedure bug3368(v char(10))
begin
select group_concat(v) from t3;
call bug3368('x')|
v
x,x
call bug3368('yz')|
roup_concat((v
yz,yz
procedure bug3368|
drop table t3|
procedure |
insert into (job_cmd,job_token,job_id)
create procedure bug4579_1 ()
begin
declare sf1 int;
f1java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 47
update t3 set f2 = f2 + 1 where f1=1 and f2=1;
var'|
end|
create procedure bug4579_2 ()
begin
end|
call bug4579_1()|
bug4579_1)
()|
drop procedure bug4579_2|
t3java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
function( return null
create table t3 as select bug2773()|
show create table t3|
Create Table
t3 CREATE TABLE`3`(
`bug2773()` int(11S SELECT ( f2 t1 f1 =4)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
MDEFAULT CHARSET=tf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
drop table t3|
drop function bug2773|
create function bug3788drop tablet1;
select bug3788()|
bug3788()
2005-03# 20922: java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 58
drop function bug3788|
create function bug3788() returns binary(1) return 5|TABLE t1( int,bint);
select bug3788()|
bug3788()
5
drop function bug3788|
create table t3 (f1 int, f2 int, f3 int)|
insert into t3 values (1,1,1)|
create procedure bug4726()
begin
declare tmp_o_id INT;
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 31
= 2doxjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
begin
select f1 into begin
tmp_d_id=java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
end;
end while;
end|
call bug4726(SELECTb+ x a java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
call bug4726()|
call bug4726()|
drop java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5
call bug131333()java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
create procedure bug4902()
droptable java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
show charset like 'java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 1
show # MDEV-10694-SIGFPE and/or huge memory allocation in maria_create with distinct/group by/ rollup
show create
show create database test;
show databases like 'foo';
show errors;
showcolumns t1;
show keys from t1;
show open tables like 'foo';
Removedbecause result willdiffer inembedded mode.
#show privileges;
show status like 'foo';
show tables 'java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 23
show variables like 'foo';
show warnings;
end|
call bug4902()|
Description java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 44
Charset IdDCompiledSortlen
Table Create Table
t1 CREATE TABLE `t1` (
`d char()NOTNULL DEFAULT '',
`` int1)NOTNULL
) ENGINE=1SIMPLE NULL NULL NULL NULL NULL NULL NULL Impossibleinsert t3 values('');
Create Database
testSELECT FROM
Database (foo)
LevelGROUPBYREPEATjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 4
TypeNull Key DefaultExtra
id char(16) NO
data int(11) NO NULL
Table Non_unique Key_name java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 5
Database Table In_use Name_locked
Variable_name Value
Tables_in_testselect bug12379(
Variable_name Value
Level ENDjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
call bug4902()|
CALL"
Collation Charset IdCegin
Table Createdeclare handler for sqlexceptionbegin SET=
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 22
`id` char(16) NOT NULL DEFAULT 'WHERE .(COUNT* FROM .GROUPBYcolumn_type)
`data` int(11) NOT NULL
DEFAULT CHARSETutf8mb4 utf8mb4_uca1400_ai_ci
Database Create Database
SET @ave_max_sort_length;
Database (foo)
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 1
FieldType Null xtra
id char(16) NO
data int(11) NO NULL
Non_unique Seq_in_indexColumn_name Cardinality java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 9
Database Table In_use Name_locked
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
Tables_in_test (foo)
eValue
Level Code Message
drop procedure bug4902|
create procedure bug4904()
begin
declare continue
INSERTINTO VALUES (2'092613::java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
INSE INTO t1VALUES(,2020-- 13java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
call bug4904()|
ERROR 42S02: Table 'test.t3' doesn't exist
drop procedure bug4904|
create table t3 (s1 char character set latin1, s2 char character set java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 18
)
begin
continue handler INSERT INTO t1 VALUES (6,'20-09 :00')
select INSERT INTO
end|
call bug4904()|
INSERT
drop table t3|
create procedure INSERT INTO t1 VALUES (90926 0000,)
begin
declare x int;
. t1t);
set y = x;
end
insert into t1 values ("a", 2), ("b", 3)|
2020-09-25 12:00:001
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
@y
5
delete from t1|
drop procedure bug336|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
egin
if exists(select * from t1) then
set @n= @n + 1;
end if;
if (select count(*) from t1) then
set @n= @n + 1;
end if;
end|
set @n = 0|
sert into t1 values ("a", 1)|
callbug3157(|
select @n|
@n
2
delete from t1|
drop procedure bug3157|
create procedure bug5251()
begin
nd|
select created into @c1 from mysql.proc
where db='test' and name='bug5251'|
alter 2020-09-27 13:00001
select count(*) from mysql.proc
where db=testebug12979_2()
count(*)
1
drop procedure bug5251|
create procedure bug5251()
checksum nternal_var decimal(;;
call bug5251()|
Table Checksum
test.internal_var;
call bug5251()|
Table Checksum
callbug12979_2)
drop procedure bug5251|
procedureparam1)
label1:
begin
declare c cursor #MDEV-6170
loop
ifdeclare ''
leave label1;
end if;
end loop;
end|
call bug5287(1)|
drop procedure insert into t3 intovalues(0)
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 26
end; set @x = 3|
call bug5307(# MDEV-24710Uninitialized upon values (;
select @x|
@end|
3
drop procedure bug5307|
create procedure bug5258()
begin
end|
create procedure bug5258_aux()
begin
(19)
select created,modified into c,m fromjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
if c = mSELECT
select 'Ok';
else
select c, m;
end if;
end|
*from
Ok
Ok
drop procedure bug5258|
drop procedureSELECT MAX(a) A ,a AS f2 FROM t1 WHERE 1=0;
create bug4487( returnschar
begin
declare v char;
return v;
end|
bug4487(|
bug4487()
NULL
drop function bug4487|
java.lang.StringIndexOutOfBoundsException: Range [24, 6) out of bounds for length 35
begin
for selecti from limit1
open c;
fetchset spv1= 123createtable (kint primary bint not)
close c;
end|
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 41
set @create table( int);
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 17
select @x|
x
NULL
tefrom |
bug4941java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
table t3 (s1 java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 5
reate)
begin
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
set spv1 456
insert into t3 create temporary
call bug4905()|
select row_count()|
row_count)
1
create procedurebug12589_3(
select row_count()|
row_count()
0
call bug4905()|
select row_count()|
row_count()
0
select * from t3|
s1
1
drop procedurebug4905|
drop table t3|
create procedure bug6029()
begin
declare exit handler for|
exit for java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 18
declare continue handler for sqlexception select 'sqlexceptiontCREATETEMPORARY:Unknown' '
rtinto 3values (1;
insert into t3 values (1,2);
end|
create table t3 (s1 int, primary key (s1))|
call bug6029()|
Table Create
sqlstate 23000
delete OR REPLACE TABLE t1 a int)E=myisam;
call bug6029()|
1136
1136
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 23
drop table t3|
create procedure bug8540()
begin
declarex java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 24
select x as y, x+0 as z;
end|
call bug8540()|
y
1 1
drop procedure bug8540|
message const java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
create procedure bug6642()
select abs(count(s1)}
call bug6642()|
abs(count(s1))
0
call bug6642()|
abs(count(s1))
0
drop procedure bug6642|
insert t3values 0,1|
create procedure bug7013()
select s1,count(s1) from t3 group by java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 5
call bug7013()|
s1 s1)
0 1
1 1
NULL 2
call bug7013()|
s1 count(s1)
0 1
1 1
NULL 2
drop procedure java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
reatetable t4(
a (8 unsigned null auto_increment,
b smallint()unsigned null,
c char(32) not null,
primary key (a)
) engine=myisam default charset=latin1|
insert into t4 values (1, 2, 'oneword')|
insert into t4 values (2, 2, 'anotherword')|
create procedure (searchstring char28 java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
begin
declare var mediumint(8) unsigned;
select a into var from t4 where b = 2 and c = binary searchstring limit 1;
select var;
end|
call bug7743("oneword")|
var
1
call bug7743("OneWord")createprocedure bug7049_3(java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
var
NULL
Warnings:
Warning 1329 data - zero rows fetched,selected, or
call bug7743("anotherword")|
var
2
call bug7743("AnotherWord")|
var
NULL
Warnings:
data-zero fetched
drop procedure bug7743|
|
delete from t3|
insert java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 25
create explain format=json SELECT +,MIN(a t1,t2WHERE t2. = rand)
EXPLA
declare i int;
select max(s1)+1{
end|
procedure bug7992_2()
insert into t3 ("select_id": 1
call bug7992_1()|
call bug7992_1()|
call bug7992_2()|
call bug7992_2()|
drop procedure bug7992_1
returnsint
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 14
create table t3 ( userid bigint(20) not null":"system,
create procedure bug8116(in _userid int)
select * from t3 where userid = _useridsetx =bug7049_1(;
( ,
userid
call bug8116(42|
userid
drop procedure bug8116|
drop table call )
create procedure bug6857()
begin
declare "java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 17
declare plus bool default "access_type "
set t0 call bug7049_4(|
select sleep(1.1);
sett1 unix_timestamp(;
if t1 > t0 then
set plus = 1;
end if;
select plus;
end|
call bug6857()|
sleep(1.1)
0
plus
drop . tests
create procedure bug8757()
begindropjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
drop procedure bug7049_3|
declare c1 cursor for select data java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 25
begin
int
declare c2 cursor 1,)(,,3)4),(,3),(6,3);
open c2;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 16
2
select 2,y;
end
open c1;
fetchc1intox;
java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 9
select 42000 '. BY
end|
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 15
delete from t2|
nsert into "",1)|
insert into t2 values ("y", 2, 0.0)|
call bug8757()|
2 y
2 2
1 x
1 1
delete from t1|
drop procedure bug8757|
drop procedure if exists bug8762; create procedure bug8762() begin end|
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 71
drop procedure bug8762|
create functionsout 'Local'
begin
declare x int;
declareend|
open c;
fetch c into x;
close c;
x;
end|FROM t1 AS t1_outer GROUP BY t1_outer.b;
delete from t1|
into t1values("nswer" )
select id bug5240)from t1call@)|
id bug5240()
answer 42
drop select a
create table t3(id int)|
ocedurebug7992()
begin
declare i int;
dropprocedure bug13941java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
end
call bug7992()|
call bug7992()|
droprop procedure bug7992|
drop table t3|
tablet3 (
lpitnumber int(11) default null,
java.lang.StringIndexOutOfBoundsException: Range [18, 11) out of bounds for length 32
)java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
create table t4 (
lbsiid int(11) not null default '0',
int()nulldefault '0,
ltradingareaid int(11) not null default '0't1ASt1_outer t1_outer.;
csellingprice decimal(19,4) default null,
primary key (lbsiid,ltradingmodeid,ltradingareaid)
)|
create table t5 (
lbsiid nt()not null default ''SETsql_mode=sjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ltradingareaid int(11) not null default '0',
primary key (lbsiid,ltradingareaid)
)|
create procedure bug8849()
begin
insert into t5
(
t5.lbsiid,
t5.ltradingareaid
)
select distinct t3.lpitnumber, t4.ltradingareaid
from
t4 join t3 on
t3.lpitnumber = t4.lbsiid
and t3.lrecordtype = 1
left join t4 as # Test new group_min_ma optimization
price01.lbsiid = t4.lbsiid and
price01.ltradingmodeid = 1 and
t4.ltradingareaid = price01.ltradingareaid;
end|
call bug8849()|
call bug8849(nsert into t1 select mod( bug13095(b)
call bug8849()|
drop procedure bug8849|
drop tablesEbug13095_t1(tuff char(15)
create procedure bug8937()
begin
declares,xyjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
declare a float;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
select s, SIMPLE java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 68
select avg(data) into a from t1;
select a;
end|
explai afrom where inin(,,)and a @tr
insert into DROP bug13095_v1
call bug8937()|
id select_typetable possible_keys key_len TABLE ;
16 3 1 6
a
et 20
drop procedure bug8937|
delete from t1|
create t3( charjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
into values ''')
create procedure bug6900()
egin
declare exit handler for sqlexception java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 16
declare exit handler for sqlexception select '2';
into values ('x, y' z';
end;
end|
create procedurebug9074(java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
begin
bug14723()
begin id java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
declare continue handler for sqlstate '23000' set x5 = 1;
insert into t3values ('a,'b';
set x6 = 1;
end;
begin1_label:
begin
declare continue handler forselect 42;
;
set x2 = 1;
1 SIMPLE t1 r 10NULL Using whereProcedure sql_mode Create Procedure character_set_client collation_connection Database Collation
begin
declare exitf sqlstate '3000bug14723 CREATE =root`@localhost` PROCEDURE b(java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
set x4= 1;
insert into t3 values ('a1SIMPLEt ange 5ULL1161 ; Using index
set=0
end;
end begin1_label;
select x1, x2, x3, x4
end|
create procedure bug6900_9074(z int)
begin
declare exit handler for java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
begin
declare exit handler for sqlexception select 'sqlexceptionjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if z = 1 then
insert (KQFQA',('b'),('ZKUAX')(l)c select* t1 1=0
else
insert into '' djava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 59
end if;
end;
end|
call bug6900()|
2
ug9074(|
x1 x2 x3 x4 x5 x6
1 1 1 1 1 1
allbug6900_9074()|
sqlexception
sqlexception
call bug6900_9074(1)|
sqlexception
qlexception
drop procedure bug6900|
drop bug9074|
drop procedure bug6900_9074|
t3java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
create procedure avg (CREATE PROCEDURE `bug13549_2`)
begin
end|
call avg ()|
drop procedure avg|
set @old_mode=@default ;java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
set @@sql_mode= "ERROR_FOR_DIVISION_BY_ZERO";
create procedure bug6129()
select @@sql_mode|
call bug6129()|
@@sql_mode
ERROR_FOR_DIVISION_BY_ZERO
set @@sql_mode= "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO"|
@@sql_mode
ERROR_FOR_DIVISION_BY_ZERO
set @@sql_mode= "NO_ZERO_IN_DATE"|
call bug6129()|
@@sql_mode
ERROR_FOR_DIVISION_BY_ZERO
set @@sql_mode=@old_mode;
drop procedure bug6129|
create procedure bug9856()
begin
declare v int;
declare c cursor for select data from t1;
declare exit handler for sqlexception, not found select '16';
open c;
fetch c into v;
select v;
end|
delete from t1|
call bug9856()|
16
16
call bug9856()|
16
16
drop procedure bug9856|
create procedure bug9674_1(out arg int)
begin
declare temp_in1 int default 0;
declare temp_fl1 int default 0;
set temp_in1 = 100;
set temp_fl1 = temp_in1/10;
set arg = temp_fl1;
end|
create procedure bug9674_2()
begin
declare v int default 100;
select v/10;
end|
call bug9674_1(@sptmp)|
call bug9674_1(@sptmp)|
select @sptmp|
@sptmp
10
call bug9674_2()|
v/10
10.0000
call bug9674_2()|
v/10
10.0000
drop procedure bug9674_1|
drop procedure bug9674_2|
create procedure bug9598_1(in var_1 char(16),
out var_2 integer, out var_3 integer)
begin
set var_2 = 50;
set var_3 = 60;
end|
create procedure bug9598_2(in v1 char(16),
in v2 integer,
in v3 integer,
in v4 integer,
in v5 integer)
begin
select v1,v2,v3,v4,v5;
call bug9598_1(v1,@tmp1,@tmp2);
select v1,v2,v3,v4,v5;
end|
call bug9598_2('Test',2,3,4,5)|
v1 v2 v3 v4 v5
Test 2 3 4 5
v1 v2 v3 v4 v5
Test 2 3 4 5
select @tmp1, java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
50end
drop )
drop procedure bug9598_2|
reate *rom t1order bydata java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
selec ajava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
setcbv2y,y)
x;
end|
# Set queryjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
set @x = 1|
insert into t1 values19
select bug9902() from t1|
bug9902()
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
select bug9902(
end|
3i1
select @x|
x
the query cache size
delete data
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 22
create orderby
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 2
ug9102(
rop java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 1
x 0ndrepeat|
bug7648
bug7648()
a
create function bug9775(v1 char(1)) returns enum('a','b') return v1|
select create function)java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
a ()
b
Warnings:append"", "bar")
Warning 1265 Data truncated for column 'bug9775('c')' at row 0
drop function bug9775|
create function bug9775(v1 int) returns enum('a','b') return v1|
select bug9775(1),bug9775(2),bug9775(3)|
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
a (nci),fac()) /e)
Warnings:
bug97753)atrow
drop t2
create
(a,(b',',b',''|
call hndlr1(42)|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Warning 1265 Data truncated for column 'bug9775('c')' at row 0
if
create functionid
select (,java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 51
bug9775(1) bug9775(2) bug9775(3) bug9775(4)
declare java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 54
Warnings
t3into i
drop function bug9775|select*from 3
create java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 14
selecta charjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 6
2005
set @x = 05|
select @x|
@x
call (
op function bug8861|
create procedurezap663
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 30
into (, ;
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
procedurechar16java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
ug9004_1()
call bug9004_1('java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
' at
call bug9004_2('12345678901234567890')|
delete t1|
1265Data column xat row 0
delete from |
drop procedure bug9004_1|
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 25
insert into t1 values ('secret variable takesprecedence over parameter
procedure( ()
begin
oundex(id) java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
select 'yes';
end if;
end;|
call bug7293('secret')|
yes
yes
call bug7293 ('secrete')|
yes
yes
drop procedure bug7293|
delete from |
create view v1 as select * from t1, t2 where java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 27
create procedure bug9841 ()
update v1 set data = 10|
call bug9841()|
drop view v1|
drop procedure
create procedure java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 16
create table t3 (s1 int)|
insert into t3 values (5)|
call bug5963_1()|
v
5
call bug5963_1()|
v
5
drop procedure bug5963_1|
drop table t3|
select*t1|
begin
show chistics
@x=;
end if;
end;
|
create table t3 (cpk int)|
insert into t3 values (1)|
call ()
call MODIFIESSQL java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
drop procedure bug5963_2|
drop table t3|
java.lang.StringIndexOutOfBoundsException: Range [23, 6) out of bounds for length 25
returns int
begin
set @y = -6/2;
@
end|
|
bug9559showcreate functionchistics
-3
drop function bug9559|
create procedure bug10961()
begin
declare v char;
declare x ;
clarec select*from ;
declare continue handler COMMENT Characteristics test'
set x =declare done int default 0;
open c;
set xdeclare handler java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 26
etch c java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
set =1
close c;
nd|
call bug10961d t1|
x
1
x
2
x
3
bug10961(|
xsp_db3|
1
xselect ,,from proc wheredb='t1 optimize status java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
2
x
drop procedure (
CREATE data=42where ""
CREATE java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
CREATEdeclaren
java.lang.StringIndexOutOfBoundsException: Range [31, 6) out of bounds for length 39
INTO VALUES ('.analyze Engine-
INSERT btest2analyze up java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
INSERT VALUES(,''|
INSERT INTO tt3 VALUES (4, 'd')|
INSERT INTO tt3 VALUES (test.t3 analyze status Table is already up to date
INSERT INTO tt3 VALUES (6, 'ftest2
CREATE VIEW tv AS i<0then
call 1 java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [14, 6) out of bounds for length 61
LEFT|
f51java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
PROCEDUREbug6866 (int
BEGIN
tv java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
(count()fromt1 wheredata
id(
4c viewa) )
CALL bug6866(1)|
a1 a2
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
function( returns
a3
1 ajava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
DROP VIEW tv|
DROP TABLE tt1, tt2, tt3|
test.t2 java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 50
insert into t3 values ('aaaaa', 1), ('bbbbb', 2), ('ccccc', 3)|
create test.t3 analyze status Enjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 62
declare : stored andjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68
repeat
select * from t3;
set functionf1
done<end
end|
call bug10136()|
val
aaaa1
bbbbb 2
ccccc*from |
name val
aaaaa 1
bbbbb 2
ccccc 3
name val
aaaaa 1
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
f3)
al
a1
bbbbb 2
ccccc 3
nameval
aaaaa 1
bbbbb 2
cccc
name val
1
bbbbb 2
ccccc 3
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
name val
aaaaa java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
bbbbb 2
ccccc utables
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
aaaaa 1
bbbbb 2
ccccc 3
name
aaaaa 1
bbbbb 2
ccccc 3
procedurebug10136
dropt3|
create insert intolstatement;
begin
declare c cursor for select id, data from t1 where data in (10,13);
open c;
begin
declare vid char(16);
declare vdata int;
declare exit handler for not foundend
whiledo
fetch c into vid, vdata;
end while;
end;
close c;
end|
into values
('Name1', 10),
('Name2', 11),
('Name3', 12),
('Name4', 13),
('Name5', 14)|
ERROR42000 numberof P mysqltest3p3;,got2
call bug11529()|
delete.(rs)
drop ERROR42000 Incorrect forPROCEDUREmysqltest3p3expected1 2
set character set utf8|
create
begin
lâbel: begin end;
label: begin end;
label1: begin end;
end|
create declare c varchar "";
label1: begin end label1|
create procedure bug7088_2()
läduplicatekey county= valuescounty)
callbug6063)
call bug7088_1java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 37
call bug7088_2()|
set @@character_set_client=@save_character_set_client|
set @@character_set_results=@save_character_set_client|
show create procedure bug6063|
Procedure sql_mode Create Procedure java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 6
bug6063 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug6063`()
begin
forsqlexception 'rror' as 'Handler';
if then
label1: begin end;
end utf8mb4 utf8mb4_uca1400_ai_ci utf8mb4_uca1400_ai_ci
show create procedure bug7088_1|
Procedure Procedure haracter_set_clientcollation_connection
bug7088_1 if
label1: begin end label1 utf8mb4 utf8mb4_uca1400_ai_ci utf8mb4_uca1400_ai_ci
show create procedure bug7088_2|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
bug7088_2 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug7088_2`()
l�:beginend utf8mb4
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 23
drop
drop procedure declare continue handler forsqlexceptionselect e'as';
create procedure bug9565_sub()
egin
select *t1;
end|
create procedure bug9565(end|
begin
insert into t1 valuescreate bug14498_4(
call bug9565_sub(;
end|
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 15
id data
1
delete from t1|
drop procedure bug9565_sub|
drop procedure bug9565|
create procedure bug9538()
set @@sort_buffer_size = 1000000|
@=@sort_buffer_size
set @@sort_buffer_size = 2000000|
select @@sort_buffer_size|
@@sort_buffer_size
2000000
call bug9538()|
select @@sort_buffer_size|
@@sort_buffer_size
1000000
set @@sort_buffer_size = @x|
drop procedure bug9538|
create table t3java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
insert into t3 values (wv =2then
Warnings:
Warning 1265 Data truncated for column 'c3' at row 1
endcasejava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
begin
();
declare10;
declarev3java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
declare v4 VARCHAR(10);
declare v5 VARCHAR(10)0
v6 10
set =ull
declare c8692 cursor for select c1,c2,c3,c4,c5,c6,c7 from t3;
open c8692;
fetch create procedure bug15231_2(ioid )
select v1java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 5
end|
call bug8692()|
v1 v2 v3 v4 v5 v6 v7
NULL
drop procedure bug8692|
drop table t3|
create function bug10055(v char(255)) returns char(255) return select"NOT is 2java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
select t.column_name,ifjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
from information_schema.columns as t
selectM correct) as';
column_name java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 14
id id
data data
dropend|
create procedure bug15231_6()
begin
set @x = 0;
repeat
declarex decimal(,)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
values('aa', @x);
set @x = @x + 1;
until @x >= lim
end repeat;
end|
call bug12297(10)|
drop procedure bug12297|
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 37
int
return java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
create procedure java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 19
begin
declare v int default 0;
while v < lim do
set v= f_bug11247(v);
end while;
end|
call p_bug11247(10)|
drop function f_bug11247|
drop procedure java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 14
create table t3 (a int)|
drop procedure bug15231_3|
createERROR S02:Table 2314|
createdate_format(t3. java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 39
begin
declare b, c integer;
if arg1=a then
creat f12_2)returns int
declaredroptemporarytable t3
declare f12_1(
drop |
open c1;
f1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
fetch java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
if (b =functionf11|
java.lang.StringIndexOutOfBoundsException: Range [15, 5) out of bounds for length 16
endtruncate tablet2 |
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 26
until b = 1
end repeat;
enddeclarei int unsigned default 1;
end ; igint i0do
if arg1 =while
begin
declare c2 cursor for selectdrop java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
declare if done=
b =
dropejava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
c2_repeat: repeat
fetchcreate tablejava.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 7
if (b = 1))
leave c2_repeat;
end if;
5 ) ,)(,67)(,71,(19, )
until b 1
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
end;
end if;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
call
declare ,s 0
a
1
3
|
call6
select * from t4|
a
2
4
truncate t4|
all''|
end java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
1
a p )
truncate insertinto .t3values(,p)
call bug12168('b')|
declare
a
2
4
truncate t4|
drop table t3, t4|
drop procedure bug12168|
create table t3 (c1 char(128))|
insert into t3 values
('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
create procedurejava.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 29
begin
declare tmp varchar(128);
set @x = 0;
repeat
select c1 into tmp from t3
wherejava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
@ x
until select *from java.lang.StringIndexOutOfBoundsException: Range [5, 22) out of bounds for length 19
end repeat "java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
end|
bug11333()|
ropjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
drop table t3|
create function procedure bar|
begin
= hello' );
return f1;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
drop function bug9048|
create function bug9048(f1 char binary) returns char binary
begin
set f1= concat( 'hello', f1 );
return primary key (id)
end|
select collation(bug9048("foo"))|
collation(bug9048("foo"))
utf8mb4_bin
drop function bug9048|
create procedure bug12849_1(inout x char) select x into x|
set @var='a'|
call bug12849_1(@var)|
select @var|
@var
a
drop procedure bug12849_1|
create procedure bug12849_2(inout foo varchar(15))
select concat(foo t3
end|
set @var='abcd'|
call bug12849_2(@var)|
select @var|
@var
d
drop procedure bug12849_2|
create procedure bug131333()
begin
begin
declare a java.lang.StringIndexOutOfBoundsException: Range [38, 14) out of bounds for length 38
select a;
set a = 1;
select a;
end;
begin
declare b int;
select b;
end;
end|procedurebug18344_2)begin |
create function bug131333()
returns int
begin
begin
declare a int;
set a = 1;
end;
begin
declare b int;
return b;
end;
end|
call bug131333()|
a
NULL
a
1
b
NULL
selectselect routine_name,routine_schema from .routines where
bug131333 like bug18344'|
NULL
drop procedure bug131333|
drop function bug131333|
create table t3 (c1 char(1) java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 33
create function bug12379()
returns integer
schemlike bug18344%|
insert into t3 values('X');
insert into t3 values('X');
;
end|
create procedure bug12379_1()
begin
declare exit handler for sqlexception select 42;
select bug12379();
END|
create procedure bug12379_2)
begin
declare exit handler for sqlexception begin end;
select bug12379();
end|
create procedure bug12379_3()
begin
select bug12379();
end|
select bug12379()|
23000:entryX key''
select show cre table
1
1
call bug12379_1()|
(
42
java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
select 2|
2
2
call bug12379_2()|
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
select 3|
3
3
call bug12379_3()|
ERROR 23000: Duplicate entry 'X' for java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 9
select 4|
4
4
drop function bug12379|
drop |
drop procedure bug12379_2|
drop procedure bug12379_3|
drop table t3|
create procedurebug18589_v1
begin
declare y integer;
set @x=y;
end|
call bug13124()|
dropCALL bug18589_p2(REPEAT("a", 767))|
create procedure bug12979_1(inout d decimal(5)) set d = d / 2|
set @bug12979_user_var = NULL|
call bug12979_1(@bug12979_user_var)|
drop procedure bug12979_1|
create aaaaaaaaaaaaaaaaaaaaaaaaaaaaajava.lang.StringIndexOutOfBoundsException: Index 758 out of bounds for length 26
begin
declare internal_varfunction ``()returnsint
FUNCTION
select internal_var;
end|
call@java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
internal_var
NULL
drop x;
create t1 java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 69
set @java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
setv 16)notbug18037_p2(
java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 5
egin
selectcount( into wherev =java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 9
begin
nuehandlerforjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
insert
end;
insert selectgetcount(zip)
insert into t3 values (1getcount("zip")|
end|1
lbug6127(|
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 1
s1
0
1
call bug18037_p2|
ERROR
select *
s1
0
1
sql_mode=sm
drop table t3|
drop procedure
create procedure bug12589_1()
begin
declare spv1 select ' b'as 'h_ee'
spv1 .456
set spv1='myjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
create function java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 23
showjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
drop temporarytable java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
end|
select Outer g) java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
begin
declare spv1 decimal(select a into x from t3 where a = 42;
set spv1= 123.456;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 42
show _ewjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
drop temporary table tm1;
end|
reate
begin
declare spv1 decimal(6,3);
123456
create temporary select Outer good' '';
show create table tm1;
drop temporary table tm1;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
|
Table Create Table
tm1 CREATE continue handler sqlstate ''
`spv1` decimal(3begin
) ENGINE=MyISAM DEFAULT select 'nner ('as 'h_se';
call bug12589_2(e
Table procedure)
tm1 CREATEbegin
FAULT
) continue
call bug12589_3()
Table Create Table
tm1 CREATE TEMPORARY TABLE `tm1` (
`spv1` decimal(6,3) DEFAULT NULL
declarecontinue handler forjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 104
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
|
drop procedure bug12589_3|
create table t3 ( x int unique )|
create procedure bug7049_1()
begin
insert into t3 values (42);
insert into t3 values (42);
end|
procedurebug7049_2(
begin
declare exit select'java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 32
select 'Caught itconcat'w:/',var1 /)
call bug7049_1();
procedurejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
end|
create procedure bug7049_3()
call bug7049_1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
createOuter(bad)'as 'h_ne;
java.lang.StringIndexOutOfBoundsException: Range [14, 5) out of bounds for length 14
declare java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
select 'Caughtselect into fromt3 where latin2"java.lang.StringIndexOutOfBoundsException: Range [29, 27) out of bounds for length 30
call bug7049_3();
select 'Missed it' as 'Result';
end|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
returns int
begin
insert into t3 values (42);
insert into t3 values (42);
return 42;
end|
good'sjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
returns int
begin
declare x int default 0;
declare continue handler for sqlexception
set x = 1;
set xintjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
select' g)as';
call bug7049_2()|
Result
ini
select * fromdeclareCreate
x
42
delete from t3|
call bug7049_4()|
Caught it
*|
x
42
bug7049_2(
insertinto values(1;
1
drop table SHOW CREATE Fjava.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 13
drop|
dropbegin
dropprocedurebug7049_3
drop procedure bug7049_4|
drop function bug7049_1|
drop select'(ood)'ash_ws'
create function bug13941insert into java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 32
returns text
begin
declare p_output_str text;
char(10(10
setstr=replace(, xyzzy',plughdtd_identifier
set p_output_str = replace(p_output_str, 'java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 32
set p_output_str = replace(p_output_str, 'this', 'questoselect'(ROUTINE_SCHEMA="AND =bug16211_f2|
set p_output_str = replace(java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8
set p_output_str =replace(p_output_strSELECT
returnp_output_str;
end|
out sout
begin
sout = 'Local'java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
set sout = begin
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 4
isa |
'java.lang.StringIndexOutOfBoundsException: Range [14, 14) out of bounds for length 8
questo bug16211_f1)
call bug13941(@java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
select @a|
@a
Local
drop function bug13941|
drop procedure bug13941|
(java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 47
BEGIN
SET @java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 41
CONCAT("mysqltest2continuefor ''
SELECT java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 26
h_ee)
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
SET @str Functionsql_mode Function collation_connectionDatabaseCollation
", tbl_name, " VALUES('row1'),('row2'),('row3')" ); bad
SELECT h_se
PREPARE stmt FROM @str;
EXECUTE stmt;
SET Inner ()
CONCAT(java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 70
PREPARE FROM INFOR
stmt;
SELECT * FROM bug13095_v1;
SET @str =
"DROP VIEW bug13095_v1java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
SELECT @str;
Inner gjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
EXECUTE stmt;
END|
CALL bug13095
@str
CREATE TABLE java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
@ )
INSERT INTO bug13095_t1 VALUES('row1'),('row2'(java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
@str
()ojava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
c1
char1)
row2h_xsSELE
row3
@str
DROP VIEW bug13095_v1
0
DROP TABLE bug13095_t1;
/*!50003 create function bug14723()
returns bigint(20)
main_loop: begin
return 42;
end */;;
show create function bug14723;;
mysqltest2)
bug14723 CREATE DEFINERprocedure h_nn|
main_loop: dropprocedure h_we|
return 42;
end latin1 procedure h_xs
;
|
42
*!50003 procedure bug14723(
main_loop: begin
select 42;
end */;;
show create procedure bug14723;;
Procedure sql_mode Create Procedure character_set_client collation_connection Database end ;
bug14723 call bug822('foo', 42)|
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 16
selectjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 29
end id
l bug14723(;;
42
42
drop function bug14723|
drop procedure bug14723|
create procedure bug14845()
begin
declare a java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
edoneint 0
declare c cursor for select count(*) from t1 where 1 = 0;
declare ift1 values " @''|
open c;java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
repeat
fetch c into a;
if not done then
a
end if;
until done end repeat;
close c;
end|
call bug14845()|
a
0
|
bug13549_2()
begin
call bug13549_1();
end|
CREATE PROCEDURE `bug13549_1`()
begin
declare done intdrop java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
set done= not done;
end|
CALL bug13549_2()|
drop procedure |
drop procedure bug13549_1|
create function bug10100fifx 10
begin
if prm > 1 thenDROP DATABASE mysqltest1|
return prm *insert into t1 values "",x10)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
end if;
return 1;
end|
create flush tables;
begin
set res = res * java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
if prm > 1 then
call bug10100p(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
end if;
|
create procedure bug10100t(prm int)
begin
declare res int;
declare x int;
call bug10100p(rm res)
select res;
end|
create t3aint|
insert intoselect sminata x java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
create view v1 as select a from t3|
create procedure bug10100pt(level int, java.lang.StringIndexOutOfBoundsException: Range [39, 42) out of bounds for length 32
begin
if level < lim then
update t3 set a=level;
FLUSH TABLES;
call bug10100pt(level+1, lim);
else
select *by
end if;
end|
create procedure bug10100pv(level int, lim int)
begin
if level < lim then
update v1 set a=level;
FLUSH TABLES;
call statement after update
else
dropement
end if;
end|select *fromt3|
prepare stmt2 from "select * from t3;"|
create procedure bug10100pd(levelint,lim int)
begin
if level < lim then
select level;
from u t3set =+2"
execute stmt1fetch c1 ;
FLUSHset @x2 =2;
execute stmt1;
FLUSH TABLES;
execute stmt1;
FLUSH TABLES;
deallocate prepare stmt1;
execute stmt2;
select * from t3;
call (evel,lim);
else
execute stmt2;
end if;
end|
reate procedure bug10100pc(level int, lim int)
begin
declare lv int;
declare c cursor for select a from t3;
open c;
if level < lim then
select level;
fetch c into lv;
select lv;
update t3 set a=level+lv;
call bug10100pc(level+1, java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
else
select * from t3;
end if;
close c;
end|
set @@max_sp_recursion_depth=4|
select @@max_sp_recursion_depth|
@@max_sp_recursion_depth
4
select bug10100f(3)|
ERROR HY000: Recursive stored functions and triggers are not allowed
select bug10100f(6)|
ERROR HY000: Recursive stored functions and triggers are not allowed
call bug10100t(5)|
res
120
call bug10100pt(1,5)|
a
4
call bug10100pv(1,5)|
a
4
update t3 set a=1|
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 21
1
a
7
a
7
level
2
a
13
a
13
level
3
a
9
a
19
level
4
adeclarev 42
a
25
a
25
select * reachablecode
a
25
t3 a=1
call bug10100pc(1,5)|
level
1java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
lv
1
level
2
lv
2
level
3
lv
4
level
4
lv
7
a
11
select * end|
java.lang.StringIndexOutOfBoundsException: Range [5, 1) out of bounds for length 1
11
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
select @@max_sp_recursion_depth|
@@max_sp_recursion_depth
0
select bug10100f(5)|
ERROR HY000: Recursive stored functions and triggers are not allowed
call bug10100t(5)|
ERROR HY000: Recursive limit 0 (as setcreatett4 f1 ,rc ,t3 )
deallocate repared'reachable;
drop function bug10100f|
drop procedure bug10100p|
drop procedure bug10100t|
drop procedure |
drop procedure bug10100pv|
drop procedure bug10100pd|
dropprocedure |
drop view v1|
drop table t3|
create table
insert into CREATE java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 25
create INSERT INTO t11 VALUES (x);
begin
end if;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 34
end|
call bug13729()|
55
55
select * t3|
s1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
2
drop procedure bug13729|
drop table t3|
create procedure bug14643_1(create tablejava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
begin
declarecontinuehandler forsqlexceptionselect 'tablet4
begin
declare vintdefault undefined_var;
if v = 1 then
select ;
else
select v, isnulld java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
end ;
end;
end|
ERROR 42000: Undeclared variable: undefined_var
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 29
begin
handler
case undefined_varuse java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
when 1 then
select 1;
else
select 2;
end case;
select undefined_var;
end|
42000:Undeclared variable undefined_var
create table t3(a int primary from t4 o
create table t4(a int primary key auto_increment)|
create procedure bug14304()
begin
insert into t3 set a=null;
insert into t4 a=;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
insert into t4 set a=null;
insert into t4 set a=null;
java.lang.StringIndexOutOfBoundsException: Range [8, 6) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
insert into t3 set a
insert where
elect * from t3java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
call bug14304()|
a
1CREATE
2
3
dropprocedurebug14304|
drop call bug2656_1()
procedurejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
begin
declare x int default x;
ERROR M Two
create procedure bug14376()
begin
declare x int default 42;
begin
declare x default ;
select x;
end;
|
call bug14376(|
x
42
drop procedure bug14376|
create procedure bug14376( int)
begin
declare x x;
select set x=1;
end|
call bug14376(4711r_ID)
x
4711
drop procedure bug14376|
create table t3 (a varchar(255))|
insert into t3 (a) ID =;
create procedure bug5967(a varchar(255))
begin
declare i varchar(255);
declare c cursor for Member_IDvarcharend|
select a;
select a from t3 into i;
select i as 'Parameter takes precedence over table column'; open cjava.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 28
c into i;
close c;
ias ' takes precedence over column in ;
begin
declare 01-01-1970 03:40
declare c1 cursor for select a from t3;
select a as @itime1)',(33333',(444444')555555),(''
open c1;
fetch c1 into i;
close c1;
select i as '('111111', 'Disenrolled','200603-' lterjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 45
begin
a varchar(255 default 'a - local variable in a nested compound statement';
eclare c2 cursor for select a from t3;
select a as 'A local variable in a nested compound statement takes java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 21
afrom ,i|
select i as 'select @i, fromunixtime(@tamped_time %-222222,n 20063',HF')
(222222,','0802' ' ,
fetch c2 into i;
tablet3(
select i as int auto_incrementnot' ,
end;
end;
end|
body ,
a
afulltext t,ody)
Parameter takes precedence over table column
a - stored procedure parameter
Parameter takes precedence over table column in cursors
a - stored procedure parameter
A local variable takes precedence over parameter
a - local variable
rameter
a ', ','-06,C')
A local variable CREATE FUNCTION bug21493(paramMember VARCHAR(15)varchar()
a - local variable in a nested compound statement
A local variable in a nested compound statement takes precedence over table column
a - local variable in a nested compound statement
A local variable in a nested compound statement takes precedencejava.lang.StringIndexOutOfBoundsException: Range [62, 6) out of bounds for length 62
a - local variable in a nested compound statementjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 26
drop procedure bug5967java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
BEGIN
REPAIR TABLE t1;
END|
call bug13012()|
Table Op Msg_type Msg_text
test.t1 repair status OK
drop procedure bug13012|
createview select *from t1|
)
BEGIN
REPAIR TABLE t1,t2,t3,v1;
OPTIMIZE TABLE t1,t2,t3,v1;
ANALYZE TABLE t1,t2,t3,v1;
END|
call bug13012()|
Table Op Msg_type Msg_text
test.t1 repair status OK
test.t2 repair status OK
test.t3 repair status OK
test repair Error t.v1'isnot'
test.v1 repair status Operation failed
Table Op begin
test.t1 optimize status OK
test.t2 optimize status OK
test.t3 optimize status OK
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
test.v1 optimize status Operation failed
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independentsetSQL_MODE='TRADITIONAL';
test.t1 analyze status Table is already up to date
test.t2 analyze status Engine-independent statistics collected
test.t2 analyze status Table is already up to date
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1
test.t3select func_20028_c(|
test.v1 analyze Error 'testERRORjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
test.v1 analyze status Operation failed
call bug13012()|
'youjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 57
test.t1 repair status OK
test.t2 repair status OK
test.t3 repair status OK
test.v1 repair(1001MySQL Tricks''1.Never run mysqld as root. 2. ...'),
test.v1 repair status Operation failed
Table Op Msg_type Msg_text
test.t1 optimize status OK
test.t2 optimize status OK
test.t3 drop function func_20028_b|
test.v1 optimize Error 'test.v1' is not of type 'BASE TABLE'
Operationfailed
Table Op Msg_type Msg_text
test.t1 analyze status Engine-create procedure bug3734 (param1 varchar java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 46
test.t1 analyze status Table is select *from where (java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
test.t2 analyze status Enginebug3734()
test.t2 analyze status Table is already up to date
test.t3 analyze status Engine-independent statistics collected
test.t3 analyze status Table is already up to date
test.v1 analyzereturnfunc_20028_a();
test.v1 analyze java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 4
call bug13012()|
Table Op Msg_type Msg_text
t1repair
test.t2 repair status OK
test.t3 repair status OK
test.v1 repair Error 'test.v1' is not of type 'java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 4
test.v1 repair status java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 15
Table Op Msg_type Msg_text
test.t1 optimize status OK
test.t2 optimize status OK
test.t3 optimize status OK
test.v1 Error 'est.v1'isnot of proc_20028_b(java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
test.v1 optimize status Operation failed
end|
test.t1 analyze status Engine-independentcreate proc_20028_c()
test.t1 analyze status Table is already up to date
test.t2 analyze status Engine-independent java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 5
test.t2 analyze status Tablecall bug3863()
test.t3 analyze status Engine-independent statistics collected
test.t3 analyze status Table is already up to date
test.v1 analyze Error 'test.v1' is not of type 'BASE TABLE'
test.v1 analyze status Operation failed
drop procedure bug13012|
drop view v1|
drop table t3|
select * from t1 order by data|
id data
aa 0
aa 1
aa 2
aa 3
aa 4
aa 5
aa 6
aa 7
aa 8
aa 9
create schemaWarning 1329No data -zero rows ,or processed
teschema java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
schema java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
use mysqltest3|
create procedure mysqltest1.drop function func_20028_a|
begin
call mysqltest2.p2('call mysqltest3.p3(1, 2)');
end|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(select n0. from t3 asdrop function |
declare lsql text;
set @lsql= psql;
prepare
execute lstatement;
deallocate prepare lstatement;
end|
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 4
begin
select p1;
end|
call mysqltest1.p1(ijava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
42000:Incorrect number of arguments for PROCEDURE mysqltest3.p3; expected1, got 2
call mysqltest1.p1(@rs)|
ERROR 42000: Incorrect number of arguments for PROCEDURE java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 18
call mysqltest1.p1(@rs)|
ERROR 42000: Incorrect number of arguments end|
drop schema mysqltest1|
drop schema mysqltest2|
drop mysqltest321462_ int)
use test|
create table t3 (id int not null primary key, county varchar(25))|
insert into t3 (id, county) values (1, 'York')|
create procedure bug15441(c varchar(25call bug2460_1(2)java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
begin
update t3 java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
end|
callbug15441('')
ERROR 42S22: Unknown column 'c' in 'SELECT'
drop procedure bug15441|
create procedure bug15441(countyjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
declare c insert into `t1` values ("foo", 1)|
insert into t3INSERT INTO VALUES ()|
on county= values(ounty)
*fromt3java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
update t3 set id=2, county=value(id);
select * from t3;
end|
'|
id county
1 Yale
id county
2 NULL
drop table t3|
rop procedure bug15441|
x| latin1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 29
begin
declare continue handler for sqlexception select 'error' as 'Handler';
if then
select 'yes' as 'v';
else
end if;
select 'done'x| latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
end|
ERROR procedurebug2564_1|
create procedure bug14498_2()
begin
declare handler
while v do
end while;
select 'done' as 'End';
end|
ERROR 42000: Undeclared variable: v
create procedure bug14498_3()
begin
declare continue handler for sqlexception select 'error' as 'Handler';
repeat
select 'bug3132(Bob'
until v end repeat;
select 'done'as End';
Hell,Judy(,database (;
ERROR 42000: database() database (
create procedure bug14498_4()
begin
declare continue select current_user()current_user ();
case v
when 1 then
select '1' current_user() current_user ()
when 2 then
select ' ''
else
select '?' .t11analyze status -independent statistics
end case;
elect'done'as 'Endjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
47bc
ERROR 42000: Undeclared variabletest.analyze java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 48
create java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 5
begin
eclare continue sqlexception select'rror'as 'Handler'
case
call bug3368(x)|
return"Storeddatabase;group_concatvyz'
2 then
select '2' insert into t (x varchar(50)returns varchar(50)
else
select '?' as 'v';
end case;
select 'done' as 'End';
end|
ERROR 42000: SET SQL_MODE=I'
create )java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 16
createjava.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 9
declare xid47 bjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 17
call bug4579_1()|
declare continue handler for not found set xdone = 1;
set xidbug4579_1)
call bug15231_2(xid);
,xdone;
end|
procedurebug15231_2(procedurebug4579_2|
begin
select "Before NOT FOUND condition is triggered" as '1';
select into ioid fromt3
select "createurrent_user(test..urrent_user
if ioid is null then
set ioid=1;
end if;
end|
create procedure bug15231_3()
begin
exit for sqlwarning
select 'Caught it (correct)' as 'Result';
call bug15231_4();
end|
) ENGINEDEFAULTCHARSETujava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 31
begin
declare x decimal(2,1);
= '
select 'Missed it (correct)' as 'Result';
show warnings;
end|
ejava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 10
begin
declare exit functionbug3788( returns binary()return 5
select 'Caught it (wrong)' 47bce5c74f589f4867dbd57e9ca9f |
call bug15231_6();
end|
create procedure
begin
Stored function ddatabase
set,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 49
select 'Missed it testc)test. (,)
select idcreateprocedure bug4726(
end|
call bug15231_1()|
1
Before NOT FOUND condition is triggered
2
After NOT FOUND condition is triggeredSET @sql_mode=java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
xid xdone
1 1
call bug15231_3()|
Result
Missed it (correct)
Level Code Message
Warning 1366 Incorrect decimal value: 'zap' for column ``.``.`x` at row 0
Result
Caught it (correct)
call bug15231_5()|
Result
Missed it (correct)
id
drop table t3|
drop procedure bug15231_1|
drop procedure CREATE TABLE bug23760_logjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
drop procedure bug15231_3|
drop procedure bug15231_4|
drop procedure bug15231_5|
drop show charset foo;
create table t3 (CREATEPROCEDURE (r Varchar(50),a )
insert into t3 values (1 reason,amount VALUES(r a)
create procedure bug15011()
deterministic
begin
declare continue handler for 1062
select 'Outer' as 'Handler';
begin
declare continue handler for 1062
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
call bug15011()|
Handler
Inner
drop procedure bug15011|
drop table t3|
create show like fooum num+java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
insert show variables foo'java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
( '2005-01-01
( cbug4902)
create procedure bug17476(pDateFormat varchar(10))
select date_format(t3.d, pDateFormat), count(*ND|
from t3
group by date_format(t3.d, pDateFormat)|
java.lang.StringIndexOutOfBoundsException: Range [20, 4) out of bounds for length 23
date_format(t3.d, pDateFormat) count(*)
2005-01 4
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
call bug17476('%Y-%m')|
DatabaseTable Name_locked
2005-01 4
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
Tables_in_test(foo)
drop procedure bug17476|
table varchar1))
insert into t3 values
(' '),('.'),(';'),(','),('-'),CALL bug23760_test_row_count2(2|
procedurebug16887(
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
i default10java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
again `java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 19
>dojava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
begin
declare breakchar varchar(1);
declare done int default 0;
declare t3_cursor cursor for
declare continue handler for not found set done = 1;
set i =i -1
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 3
if i = 3 then
iterate id char(16 NO
end if;
3cursor;
loop
java.lang.StringIndexOutOfBoundsException: Range [20, 5) out of bounds for length 31
if done = 1 then
begin
close t3_cursor;
iterate again;
end;
end if;
end loop;java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
end;
end while;
end|
call bug16887()|
i
9
i
8
i
7
i
6
i
5
i
4
i
3
2
i
1
i
0
drop tablecedure bug4904 )
procedure bug16887|
delete from t1|
insert into t1 values ('c', 2), ('b', 3), ('a', 1)|
create procedure bug16474_1()
begin
declare x int;
select id from t1 order by x, id;
end|
create table t3 (id int not null auto_increment primary key)|
create procedure bug14945( PROCEDURE bug24117|
insert into t3 values (null)|
callbug14945(|
insert into t3 values (null)|
create function func_8407_a() returns int
id
1
drop tablebegin
drop procedure bug14945|
bug16474_2( )
select id from t1.).1;
call bug16474_1()|
id
a
b
end t1 (,2,(b )
call bug16474_2(1)|
id
a
b
c
call bug16474_2(2)|
id
a
b
c
drop procedure bug16474_1|
drop procedure bug16474_2|
set @x = 2|
select * from t1 order by @x, data|
data
selectcount(*)from )then
c 2
b 3
delete from t1|
create table t3 (
primary key (id0
)|
create func_8407_a(|
last_insert_id)
insert into t3 java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
procedure bug3157|
last_insert_id()
1
select bug15728()|
bug15728create
1
unction
drop table t3|
create procedure bug18787()
begin
declare continue handler for sqlexception begin end;
select no_such_function();
end|
call bug18787()|
drop procedure bug18787|
create database bug18344_012345678901|
use bug18344_012345678901|
create create procedure bug5251()
create procedure bug18344_2() begin end|
create database bug18344_0123456789012|
use bug18344_0123456789012|
create procedure bug18344() begin
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
use test|
select schema_name from information_schema.schemata iterate ;
schema_name like 'java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 7
schema_name
bug18344_012345678901
56789012
select routine_name,routine_schema from information_schema.routines where
routine_schema like 'bug18344%'|
routine_name routine_schema
endloop;
bug18344_0123456789012
bug18344_2 bug18344_012345678901callbug5287(|
bug18344_2 bug18344_0123456789012 java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 23
drop database bug18344_012345678901|
drop database bug18344_0123456789012|
select schema_name from information_schema.schemata@
@
schema_name
select routine_name,routine_schema from information_schema.routines where
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
routine_name routine_schema
create function bug12472() returns int return (select leave retryjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
create table t3 as java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 5
show
Table Create Table
t3 CREATE TABLE `t3` (
`i` int(11) DEFAULT NULL
) ENGINE=MyISAMselect'insert java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 41
select * from t3|
i
0
drop table java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
create table t3 as select * from v1|
show t3 values
Table Create Table
t3 CREATE TABLE `3 java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
t3|
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4caught something
select * from t3|
j
0
drop table t3|
drop view v1|
drop function bug12472|
create procedure bug8540()
BEGIN
RETURN CONCAT(arg, "");
END|
CREATE PROCEDURE bug18589_p1(arg TEXT, OUT ret TEXT)
BEGIN
SET ret = CONCAT(arg, "");
END|
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
BEGIN
DECLARE v TEXT;
CALL bug18589_p1(arg, v);
SELECT v;
END|
SELECT bug18589_f1(java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 9
bug18589_f1(REPEAT("a", 767))
java.lang.StringIndexOutOfBoundsException: Index 163 out of bounds for length 9
SET @bug18589_v1 = ""|
CALL abs(counts1)
CT @ug18589_v1|
@bug18589_v1
drop procedure bug6642|
CALL bug18589_p2(REPEAT("a", 767))|
v
java.lang.StringIndexOutOfBoundsException: Index 315 out of bounds for length 18
FUNCTION bug18589_f1|
DROP PROCEDUREjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
DROP PROCEDURE bug18589_p2|
CREATE FUNCTION bug18037_f1() RETURNS INT
BEGIN
RETURN @@server_id;
END|
CREATE PROCEDURE bug18037_p1()
BEGIN
DECLARE v INTdrop procedure proc_26503_ok_4|
END|
CREATE PROCEDURE bug18037_p2()
BEGIN
CASE @@server_id
-1 THEN
SELECT 0;
ELSE
SELECT 1;
CASE;
END|
(
ug18037_f1(
1
ALL bug18037_p1(|
CALL bug18037_p2()|
1
1
java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 26
DROP PROCEDURE bug18037_p1|
DROP PROCEDURE bug18037_p2|
use test|
create table t3 (i int)|
into values()(
create database mysqltest1|
use mysqltest1|
create function bug17199() returns java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 40
use test|
select *, mysqltest1.bug17199() from t3|
1 ok
2ok
use mysqltest1|
18444iint i java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
use test|
select mysqltest1.bug18444(i) from t3|
mysqltest1.bug18444(i)
2
3
drop table t3|
drop database mysqltest1|
create database mysqltest1 charset=utf8|
create database mysqltest2 charset=utf8|
create procedure mysqltest1.p1()
begin
-- alters the default collation of database test
alterdatabase character set ;
end|
use mysqltest1|
call p1()|
show create database mysqltest1|
Database Create bug20777() as '2*63'beclare cursorfor select ifrom t2 limit java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET koi8r COLLATE koi8r_general_ci */
Warnings:
Database Create Database
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci */
character utf8|
mysqltest2|
call mysqltest1.p1()|
show create database mysqltest1|
Create Database
mysqltest1 CREATE DATABASE `mysqltest1` /*!40100 DEFAULT CHARACTER SET koi8r COLLATE koi8r_general_ci */
show create database mysqltest2|
Database Create Database
mysqltest2 CREATE DATABASE `mysqltest2` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_uca1400_ai_ci */
tabasemysqltest1|
drop database mysqltest2|
use test|
create table t3 as select 1|
create procedure bug15217()
begin
declare var1 char(255);
declare cur1 cursor for select * from t3;
open cur1;
cur1
concat' )
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 11
end |
call bug15217insert into t2 (,)(,ltradingareaidint1 nullefault'
concat('data2 -2|
data was: /1/
flush tables |
call bug15217()|
concat('data was
data was: /1/
drop table t33
drop procedure bug15217|
CREATE IN java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
BEGIN
DECLARE i INSERT INTO t1 VALUES (1),(2);
WHILE (i < lim) DO
SET @b =end|
SET i =i + 1;
END WHILE;
END |
call bug8849()|
CALL bug21013(10) |
DROP PROCEDURE bug21013 |
CREATE DATABASE mysqltest1 DEFAULT CHARACTER SETPREPARE drop
CREATE java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
use mysqltest1|
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 46
RETURN ""|
WHILE>0
RETURN ""|
FUNCTION mysqltest2.bug16211_f3( CHAR(0
RETURN ""|
CREATE FUNCTION java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 22
RETURN ""|
SHOW CREATE FUNCTION bug16211_f1|
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 2
bug16211_f1 CREATE DEFINER=`root`SELECTjava.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 4
RETURN ""createprocedurebug9074PREPARE S );
SHOW CREATE FUNCTION bug16211_f2
Function sql_mode Create Function character_set_client collation_connection
bug16211_f2 CREATE DEFINER=`root`@`java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 5
into values'' ';
SHOW CREATE FUNCTION mysqltest2.bug16211_f3|
sql_mode Function DROP;
bug16211_f3 CREATE DEFINER=`DROP VIEW ;
RETURN "" latin1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 14
SHOW CREATE continue java.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 33
Function sql_mode Create Function character_set_client collation_connection Database Collation
bug16211_f4 CREATE DEFINER=`root`@`localhost` FUNCTION `java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 7
latin1java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 60
SELECT dtd_identifierdropdatabase
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
dtd_identifier
char(proceduretestjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [32, 23) out of bounds for length 32
WHERE ROUTINE_SCHEMA = "mysqltest1" begin2_label;
end begin1_label;
char(10)
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
testjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
WHERE ROUTINE_SCHEMA =java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
dtd_identifier
char(10)declare exit handler for sqlexception select 'sqlexception';
dtd_identifier
java.lang.StringIndexOutOfBoundsException: Range [32, 23) out of bounds for length 32
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 38
dtd_identifier
char(;
CHARSETbug16211_f1)
CHARSET(bug16211_f1())
utf8mb4
HARSETbug16211_f2
CHARSET(bug16211_f2())
koi8r
SELECT CHARSET(mysqltest2.bug16211_f3())|
CHARSET(mysqltest2.bug16211_f3())
utf8mb4
SELECT CHARSET(mysqltest2.bug16211_f4())|
CHARSET(mysqltest2.bug16211_f4())
koi8r
ALTER DATABASE mysqltest1 CHARACTER SET cp1251
bug9074
droptjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Function sql_mode Create Function
bug16211_f1 CREATE/*! ,2*//*!00000 ,3*//*!999999 ,4*/;
RETURN "" latin1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
SHOW CREATE FUNCTION bug16211_f2|
Function
bug16211_f2 CREATE DEFINER@="
RETURN "" latin1 utf8mb4_uca1400_ai_ci Procedure sql_mode Create Procedure character_set_client col java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 26
SHOW CREATE FUNCTION mysqltest2.bug16211_f3|
Function call bug6129(|
bug16211_f3 CREATE DEFINER=`root@@ql_mode
RETURN "" latin1 utf8mb4_uca1400_ai_ci utf8mb4_uca1400_ai_ci
SHOW 3
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 94
bug16211_f4call bug6129)
""java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
set
ROUTINE_SCHEMA=mysqltest1" bProcedure sql_mode Create Procedure character_set_client collation_co java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 96
dtd_identifier
char(10)
SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" p1
tifier
char(10)
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
dtd_identifier
char(10)
java.lang.StringIndexOutOfBoundsException: Range [23, 4) out of bounds for length 32
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
dtd_identifier
char(10)
SELECTbug16211_f1)
CHARSET(bug16211_f1())
utf8mb4
SELECT CHARSET(bug16211_f2())|
CHARSET(bug16211_f2())
koi8r
SELECT CHARSET(mysqltest2.bug16211_f3())|
CHARSET(mysqltest2.bug16211_f3())
utf8mb4
SELECTcall @)
CHARSET(mysqltest2.bug16211_f4())
koi8r
use test|
DROP DATABASE mysqltest1|
DROP DATABASE mysqltest2|
CREATE DATABASE mysqltest1 DEFAULT begin
mysqltest1
CREATE java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 3
IN123;
INOUT p2 CHAR(10),
OUT p3 CHAR(10))
BEGIN
SELECT CHARSET(p1select 23
SELECT CHARSET(p2), COLLATION(p2);
CHARSETp3) p3)
END|
CREATE PROCEDURE bug16676_p2(
IN p1 CHAR(10) CHARSET koi8r,
p210CHARSET
OUT p3 CHAR(10in integerjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
BEGIN
SELECT CHARSET(p1), COLLATION(p1);
SELECT CHARSET(p2), COLLATION(p2);
SELECT CHARSET(p3), COLLATION(p3);
END|
SET @v2 = 'b'|
SET@v3 = 'c'|
CALL bug16676_p1('a', @v2, @v3)|
CHARSET(p1) COLLATION(p1)
utf8mb4 utf8mb4_uca1400_ai_ci
CHARSET(p2) COLLATION(p2)
end|
CHARSET(p3) COLLATION(p3)
utf8mb4 utf8mb4_uca1400_ai_ci
CALL bug16676_p2('a', @v2, @v3)|
CHARSET(p1) COLLATION(p1)
koi8r koi8r_general_ci
CHARSETp2 COLLATION()
cp1251 cp1251_general_ci java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
CHARSET(p3) COLLATION(p3)
greek greek_general_ci
use test|
DROPDATABASEmysqltest1|
table t3 aintcjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
create table t4 (a int)|proc_25411_c CREATE ``localhost`PROCEDURE`java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 25
insert
insert into
create bug8153_subselectjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 15
begin
declare continue @java.lang.StringIndexOutOfBoundsException: Range [2, 3) out of bounds for length 2
begin
select 'statement failed';
end;
update t3 set a=a+1 where (select a
select 'statement after update';
endcreate bug7648)returns
call bug8153_subselect()|
statement failed
statement failed
statement1
statement after update
select * from t3|
a
1
1
2
3
()
statement failed
statement failed
statement after update
statement after update
select * from t3sele /
a
1
2
3
procedurebug8153_subselect|
create procedure java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
begin
declarewROUTINE_NAME p
ROUTI ROUTINE_DEFINITION
' h;
end;
select 'Warning 1265Datatruncatedfor v1 SELECTFROM c1
1265 truncated java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 62
'java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
create procedure bug8153_subselect_b()
egin
select 'reachable *FROMv1 =1
update t3 id select_type select bug9775(1),bug9775),bug97753,4)
select 'unreachablebug9775()bug9775( t1ref c1 Usingindex
end|
call bug8153_subselect_a()|
reachable code a1
reachable code a1
reachable 1 SIMPLE t1 refc1 5const where index
reachable code b1
in continuecreate bug8861( )returns year java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
in
reachable code a2
a2
select * from t3|
a
1
1
2
3
call bug8153_subselect_a()|
reachable codedropjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
reachable code a1
reachable b1
reachable code b1
handler
in FUNCTIONf2;
reachableDROP ;
hablecode
select * from t3|
a
1
1x=-;
2
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
drop procedure bug8153_subselect_a|
drop procedure bug8153_subselect_b|
create procedure bug8153_proc_a()
begin
declare show create viewtest.
select 'in UNDEFINED DEFINER``` SQL java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 50
end;
select '
call java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3
select 'reachablebug7293''java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
create procedure bug8153_proc_b()
begin
selectCreate
select CREATE ``(
select 'unreachable code b2';
call bug8153_proc_a()|
reachable code a1
reachable code a1
reachable CALL p1('text');
reachable code b1
in continue handler
in continue handler
reachable code a2
reachable code a2
drop procedure bug8153_proc_a|
drop t1 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 25
drop table t3|
drop table t4|
CREATE ;
CREATE TABLE t12 end
CREATE CREATE TABLE`java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
BEGIN
INSERT INTO t11 VALUES (x);
RETURN
END|
RTINTOVALUES1,()
SELECT bug19862(a) FROM t12 ORDER BYcreatefunction bug9559()
bug19862(a)
2
3
FROM|
a
1
2
Et11,t12
FUNCTIONbug19862|
create table t3 (
t (java.lang.StringIndexOutOfBoundsException: Range [17, 17) out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mysqltest1|
drop database mysqltest1|
select database()|
database()
NULL
select (select1as a)as t1 naturaljoin ( from testt3)as
a
1
use test|
drop table t3|
CREATE DEFINER=java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 14
BEGIN
SET @a = 1;
ND
ERROR HY000: String 'longer_than_80_4567890123456789012345678901234567890123456789012345...' is too
CREATE DEFINER=some_user_name@1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY1234567890abcdefghij1234567890abcdefghij1234567890abcdefghijQWERTY
FUNCTION bug16899_f1() RETURNS INT
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
RETURN 13etx ;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ERROR HY000: String '1234567890java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 28
create procedure java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 16
call bug21416()|
Procedure sql_mode Create Procedure java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 24
bug21416 CREATE DEFINER=`root`@`localhost` PROCEDURE `bug21416`()
show create procedure bug21416 latin1
drop procedure bug21416|
CREATE PROCEDURE bug21414() SELECT 1|
FLUSH TABLES WITH READ LOCK|
DROP PROCEDURE bug21414|
ERROR
UNLOCK TABLES|
The following should succeed.
DROPdrop procedure bug10961|
set names utf8|
тв__ъоиез_ааднинл|
INSERT INTO mysql.proc VALUES ('това_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
call това_е_дълCREATE 3 data3varchar(0)
:Failedtoroutineтвоеп_ъг (code-) more SHOW java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 9
drop database товRETURN java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
howjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
Code
Error 1064 You have an errorSELECT BEGIN
Error * a;
CREATEa
Member_ID varchar(1
Member_ID
)|
CREATE TABLE t4 (
java.lang.StringIndexOutOfBoundsException: Range [0, 6) out of bounds for length 0
Member_ID varchar(15) NOT NULL default '',
Action varcharjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Action_Datejava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 28
15java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 31
User varcharbug10136
Date_Updated timestamp NOT NULL default CURRENT_TIMESTAMP on update
CURRENT_TIMESTAMP,
PRIMARY KEY (ID),
Actionjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
KEY Action_Date (Action_Date)
)|
INSERT INTO t3(java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 13
('111111'), ('222222'), ('333333'), ('444444'), ('555555'), (whiletrueode;
INSERT INTO t4(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 10
('java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
('#close;
('111111', 'Disenrolled', '2006-07-03end|
('222222', 'Enrolled', '2006-03-07', 'CAD' ),
'' Enrolled', 'ame2',11)
(''(',)
('333333', 'Enrolled', '2006-03-
(333333,'Disenrolled','2006--', )''14|
('444444', 'Enrolled', '2006-03-01', 'CAD' ),
('555555', 'Disenrolled', '2006-03-01', 'CAD' ),
('555555', 'Enrolled', '2006-07-21', 'CAD' ),
('555555', 'java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 15
('666666', 'Enrolled', 'drop procedurebug11529|
('666666', #Bug31226.
(' 'Disenrolled,'2006--01', 'AD' )createprocedure)
CREATE FUNCTION bug21493(paramMember VARCHAR(15)) RETURNS varchar(45)
BEGIN
DECLARE tracks VARCHAR(lbel1 end
SELECT GROUP_CONCAT(Track SEPARATOR ', ') INTO tracks FROM t4
WHERE Member_ID=paramMember AND Action='java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 17
(Track,Action_Date) IN (SELECT Track, MAX(Action_Date) FROM t4
WHERE p GROUP ;
RETURN tracks;
END|
bug21493''|
bug21493('111111
NULL
SELECT bug21493('222222')|
bug21493('222222')
CAD
SELECT bug21493(Member_ID) FROM t3|
bug21493one 1
NULL
CAD
CAD
CAD
CAD
CHF
DROP FUNCTION bug21493|
DROP TABLE t3,t4|
create table table_20028 (i int)|
SET @save_sql_mode=@@sql_mode|
SET sql_mode=''|
)integer
begin
declare temp
fromtable_20028limit1java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end|
create function func_20028_b() returns integer
begin
return functionfunc30787( int
end|
create
begin
declare div_zero integer;
SQL_MODE=TRADITIONAL'
select1/ div_zero;
return div_zero;
end|
create procedure proc_20028_a()
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
select i into temp from table_20028 limit 1;
end|
create java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
begin
call proc_20028_a();
end|
create procedure proc_20028_c()
begin
declare div_zero integer;
set ='RADITIONAL;
select 1/0 into div_zerodrop t3
end|
select func_20028_a()|
func_20028_a)
0
|
func_20028_b()
0
select func_20028_c()|
ERROR 22012:column_namebug10055(t.column_name
call java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
Warnings:
Warning 1329 No create procedure bug12297(lim int)
call java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 10
Warnings:
Warning 1329 No java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
call proc_20028_c(v1;
ERROR 22012: Divisionjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 14
=TRADITIONAL|
drop bug12297|`,pos1)`r
drop functionend$
java.lang.StringIndexOutOfBoundsException: Range [14, 4) out of bounds for length 27
drop procedure proc_20028_a|
drop procedure proc_20028_b|
drop procedure proc_20028_c|
create function
begin
declare integer;
select i into temp from table_20028 limit 1;
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
end|
functionfunc_20028_b)integer
begin
return func_20028_a();
end|
create function func_20028_c() returns droptable ;drop function f_bug11247java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
begin
declare div_zero integer;
=';
select 1/java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
return # Bug20550.
end|
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
begin
declare temp integer;
java.lang.StringIndexOutOfBoundsException: Range [41, 6) out of bounds for length 44
end|
create procedure proc_20028_b()
begin
call proc_20028_a();
end|
create procedurethen
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 16
declare div_zero integer;
SQL_MODE''
select 1/0 into div_zero;
end|
select func_20028_a()|
func_20028_a()
0
select func_20028_b()|
func_20028_b()
0
select func_20028_c()|
func_20028_c()
NULL
call proc_20028_a()|
Warnings
Warning 1329 No data - zero rows fetched, selected, or processed
call proc_20028_b()|
Warnings:
Warning 1329 No data - zero rows fetched, selected, or processed
call proc_20028_c()|
SET @@sql_mode=@save_sql_mode|
dropfunction|
drop function func_20028_b|
drop function func_20028_c|
drop procedure proc_20028_a|
drop procedure proc_20028_b
drop procedure proc_20028_cjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
drop table table_20028|
create procedure proc_21462_a()
begin
select "Called A"DROPVIEWv2java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
end|
create proc_21462_b(intjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
select "Called B";
end|
call proc_21462_a|
Called java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
Called
call proc_21462_a()|
Called A
Called select *java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 1
call proc_21462_a(1)|
ERROR 42000: Incorrect number of argumentsjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
call proc_21462_b|
000:ncorrect of for PROCEDURE proc_21462_b 1 0
call proc_21462_b()|
ERROR 42000 number arguments PROCEDURE proc_21462_bp
call proc_21462_b(1)|
Called B
Called B
drop procedure java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 28
create
create procedure proc_bug19733()
begin
f1(1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
while v < 100 do
create index i on t3 (s1);
drop index i on t3;
set v = v + create procedure SHOW CREATE FUNCTION f1;
end while;
end|
call)
call proc_bug19733()|
call proc_bug19733()|
drop procedure proc_bug19733|
able |
CREATE TABLE t3 (t3_id INT)|
INSERT INTO t3 VALUES (0)|
INSERT INTO t3 VALUES (1)|
CREATE TABLE t4 (t4_id INT)|
INSERT INTO t4 VALUES (2)|
CREATE VIEW v1#
SELECT t3.t3_id, t4.t4_id
FROM t3 JOIN t4 ON t3.t3_id = 0|
CREATE VIEW v2 AS
SELECT t3.t3_id AS t3_id_1, v1.t3_id AS java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 0 | |