Quelle func_str.result
Sprache: Lisp
|
|
ALTER DATABASEabcd,'' ',,ab'
set ajava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 15
obal=;
connect lpad,20Cjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 40
select''7,'';
etjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 77
h'""'''l'o java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
hello 'hello' ""hello"" 'h'e'l'l'o' hel"lo hel) (16,) ,4*-.,.0)1321*.110,""9,greatest(A,",0)
select 'hello' 'monty';
hellomonty
hellomonty
select length('\n\t\r\b\0\_\%\\');
length('2east(,,)|greatest(,8 (541-.,.)* (21*. 1110(10,)""""""java.lang.StringIndexOutOfBoundsException: Index 139 out of bounds for length 139
10
select bit_length('\n\t\r\b\0\_\%\\');
bit_length('\n\t\r\b\0\_\%\\')
80
select char_length('\n\t\r\b\0\_\%\\');
char_length('\n\t\r\b\0\_\%\\')
10
select length(exp
length(_latin1'\n\t\n\b\0\\_\\%\\')
10
select concat('monty',' java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 1
length(hello') char(ascii('h')) ord('h')
monty was here again java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
select hex(('\'\"\\test)
hex(char''\java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 11
0100
select locate('he','hello'),locate('java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 31
locateselect 10,'0Z)
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Warnings
instr1365 by0
1 0 select lengthq((()"test)))
length(quote(((),test"))
position(java.lang.StringIndexOutOfBoundsException: Range [9, 15) out of bounds for length 1
3 0
select left('hello',null), right('hello',null);
left('java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
select unhex(hex(") unhex"A")"
left('ABCDEFVx ULL
he lo select h("") 12 ((") unhex(1234",(java.lang.StringIndexOutOfBoundsException: Range [91, 90) out of bounds for length 123
select concat('01012312341java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
happy
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 72
.e www
select substring_index('www.tcx.se','tcxjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 76
www. .se
select substring_index('.tcx.se','.',-2),substring_index('.tcxjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
tcx.se .se
select substring_index('aaaaaaaaa1','a',1);
substring_index('aaaaaaaaa1','a',1)
select substring_index('aaaaaaaaa1','aa',1);
substring_index('aaaaaaaaa1','aa',1)
select substring_index('aaaaaaaaa1','aa',2);
substring_index('aaaaaaaaa1','aa',2)
aa
select substring_index('aaaaaaaaa1','aa',3);
substring_index('aaaaaaaaa1','aa',3)
aaaa
select substring_index('aaaaaaaaa1','aa',4);
substring_index('aaaaaaaaa1','aa',4)
aaaaaa
select substring_index('aaaaaaaaa1','aa',5);
substring_index('aaaaaaaaa1','aa',5)
aaaaaaaaa1
select substring_index('aaaaaaaaa1','aaa',1);
substring_index('aaaaaaaaa1','aaa',1)
select substring_index('aaaaaaaaa1','aaa',2);
substring_index('aaaaaaaaa1','aaa',2)
aaa
select substring_index('aaaaaaaaa1','aaa',3);
substring_index('aaaaaaaaa1','aaa',3)
aaaaaa
select substring_index('aaaaaaaaa1','aaa',4);
substring_index('aaaaaaaaa1','aaa',4)
aaaaaaaaa1
select substring_index('aaaaaaaaa1','aaaa',1);
substring_index('aaaaaaaaa1','aaaa',1)
select substring_index('aaaaaaaaa1','aaaa',2);
substring_index('aaaaaaaaa1','aaaa',2)
aaaa
select substring_index('aaaaaaaaa1','1',1);
substring_index('aaaaaaaaa1','1',1)
aaaaaaaaa
select substring_index('aaaaaaaaa1','a',-1);
substring_index('aaaaaaaaa1','a',-1)
1
select substring_index('aaaaaaaaa1','aa',-1);
substring_index('aaaaaaaaa1','aa',-1)
1
select substring_index('aaaaaaaaa1','aa',-2);
substring_index('aaaaaaaaa1','aa',-2)
aa1
select substring_index('aaaaaaaaa1','aa',-3);
substring_index('aaaaaaaaa1','aa',-3)
aaaa1
select substring_index('aaaaaaaaa1','aa',-4);
substring_index('aaaaaaaaa1','aa',-4)
aaaaaa1
select substring_index('aaaaaaaaa1','aa',-5);
substring_index('aaaaaaaaa1','aa',-5)
aaaaaaaaa1
select substring_index('aaaaaaaaa1','aaa',-1);
substring_index('aaaaaaaaa1','aaa',-1)
1
select substring_index('aaaaaaaaa1','aaa',-2);
substring_index('aaaaaaaaa1','aaa',-2)
aaa1
select substring_index('aaaaaaaaa1','aaa',-3);
substring_index('aaaaaaaaa1','aaa',-3)
aaaaaa1
select substring_index('aaaaaaaaa1','aaa',-4);
substring_index('aaaaaaaaa1','aaa',-4)
aaaaaaaaa1
select substring_index('the king of thethe hill','the',-2);
substring_index('the king of thethe hill','the',-2)
the hill
select substring_index('the king of the the hill','the',-2);
substring_index('the king of the the hill','the',-2)
the hill
select substring_index('the king of the the hill','the',-2);
substring_index('the king of the the hill','the',-2)
the hill
select substring_index('the king of the the hill',' the ',-1);
substring_index('the king of the the hill',' the ',-1)
hill
select substring_index('the king of the the hill',' the ',-2);
substring_index('the king of the the hill',' the ',-2)
the hill
select substring_index('the king of the the hill',' ',-1);
substring_index('the king of the the hill',' ',-1)
hill
select substring_index('the king of the the hill',' ',-2);
substring_index('the king of the the hill',' ',-2)
the hill
select substring_index('the king of the the hill',' ',-3);
substring_index('the king of the the hill',' ',-3)
the hill
select substring_index('the king of the the hill',' ',-4);
substring_index('the king of the the hill',' ',-4)
the the hill
select substring_index('the king of the the hill',' ',-5);
substring_index('the king of the the hill',' ',-5)
of the the hill
select substring_index('the king of the.the hill','the',-2);
substring_index('the king of the.the hill','the',-2)
.the hill
select substring_index('the king of thethethe.the hill','the',-3);
substring_index('the king of thethethe.the hill','the',-3)
the.the hill
select substring_index('the king of thethethe.the hill','the',-1);
substring_index('the king of thethethe.the hill','the',-1)
hill
select substring_index('the king of the the hill','the',1);
substring_index('the king of the the hill','the',1)
select substring_index('the king of the the hill','the',2);
substring_index('the king of the the hill','the',2)
the king of
select substring_index('the king of the the hill','the',3);
substring_index('the king of the the hill','the',3)
the king of the
select concat(':',ltrim(' left '),':',rtrim(' right '),':') as exp;
exp
:left : right:
select concat(':',trim(leading from ' left '),':',trim(trailing from ' right '),':') as exp;
exp
:left : right:
select concat(':',trim(LEADING FROM ' left'),':',trim(TRAILING FROM ' right '),':') as exp;
exp
:left: right:
select concat(':',trim(' m '),':',trim(BOTH FROM ' y '),':',trim('*' FROM '*s*'),':') as exp;
exp
:m:y:s:
select concat(':',trim(BOTH 'ab' FROM 'ababmyabab'),':',trim(BOTH '*' FROM '***sql'),':') as exp;
exp
:my:sql:
select concat(':',trim(LEADING '.*' FROM '.*my'),':',trim(TRAILING '.*' FROM 'sql.*.*'),':') as exp;
exp
:my:sql:
select TRIM("foo" FROM "foo"), TRIM("foo" FROM "foook"), TRIM("foo" FROM "okfoo");
TRIM("foo" FROM "foo") TRIM("foo" FROM "foook") TRIM("foo" FROM "okfoo")
ok ok
select concat_ws(', ','monty','was here','again');
concat_ws(',''java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 42
monty, was here, again
select concat_ws(NULL,'a'),concat_ws(',',NULL,'');
'' ''NULL,'java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
NULL
select java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
,,'')
,a
SELECT CONCAT(a java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 68
exp
select insert('txs,,1')(is ,,,a)'java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 78
insert('txs',2,1,'hi') insert('is ',4,0,'a') insert('txxxxt',2,4,'es')
this is test
(''''b)''''',java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 128
concat""""
select"tcx,,)
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 34
Table TypeMaxlengthjava.lang.StringIndexOutOfBoundsException: Range [92, 91) out of bounds for length 110
def
replace('aaaa',1301Result)java.lang.StringIndexOutOfBoundsException: Range [47, 42) out of bounds for length 88
bbbbbbbbbbbbbbbb
select replace(concat(lcase(concat('THIS',' " " ) "" 2)java.lang.StringIndexOutOfBoundsException: Range [72, 71) out of bounds for length 91
exp
this is a REAL test
select(" 123) 01)
soundex('') position(("1" in (1,2,3)) in "01")
I51231
select (a,),concat"32000,(a,)length(aaaaa""r(10000)irepeata,)1,java.lang.StringIndexOutOfBoundsException: Range [187, 186) out of bounds for length 200
m'
""1000000lengthconcata,)a32000repeat",))length(replaceaaaaa""repeat",))r",)1000a48000)
'Glazgo' sounds like 'Liverpool'
select java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
null select row(A COLLATE latin1_general_ci'b''c' (a COLLATE latin1_bin,b,c)java.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
NULL
select 'null' sounds like null;
'null' sounds like null
NULL
select null sounds select concat_'',latin2'';
sounds like null
NULL
)
md5('helloE java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 153
5d41402abc4b2a76b9719d911017c592
select crc32("123")_a,',_java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 59
crc32(" java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 61
2286445522
select sha('abc');
sha('abc')
a9993e364706816aba3e25717850c26c9cd0d89d
select sha1('abc')''A'B)
sha1('FIELD('b''',B'
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
aes_decryptaes_encrypt('abc','1'),'1');
aes_decrypt(aes_encrypt(FIELD'B'',B)
abc
select aes_decrypt(aes_encrypt(select (b COLLATE latin1_bin,A,B)
aes_decrypt(aes_encrypt('FIELD('b' COLLATE latin1_binA'''java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
bc
select aes_encrypt(NULL,"a");
NULL""
NULL
select aes_encrypt(select aes_encrypt(2b,A,B;
",)
NULL
select aes_decrypt(NULL"a)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
"a")
NULL
select ''_3,2,1;
aes_decrypt("a",NULL)
NULL
select java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
""""
NULL
aes_decrypt(",a)"";
aes_decrypt(java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
select aes_decrypt("",l''INlabcd java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 56
"" a)
NULL
select POSITION(_latB ljava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 56
select_java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 90
montymontymontymontymonty * *
select reverseHY000 mix java.lang.StringIndexOutOfBoundsException: Range [109, 107) out of bounds for length 116
') ')
cba dcba
select rpad('a',4,'1'),rpad('a',4,'12')ERROR collations(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 125
',,1)''4'' (,,12)1,10,22)java.lang.StringIndexOutOfBoundsException: Range [89, 75) out of bounds for length 89
java.lang.StringIndexOutOfBoundsException: Range [24, 4) out of bounds for length 35
'',(a,,12)'java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 79
lpad('a',4,'1') lpad('a',4,'12') lpad(' of(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 121
2222222211
select ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 59
rpad(741653838,Sjava.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 51
74165383800000000
select rpad('abcds java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59
rpad('abcd',7,'ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE) select_java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 104
abcdaba abaabcd
rpad(a,,'
rpad('abcd',1,'ab') lpad('_' java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 52
a a
select rpad('STRING', 20, CONCAT
(,20 ',,d))
STRINGpadpadpadpadpa
select lpad('_latin1'B' collateB java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 63
lpadjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
padpadpadpadpaSTRING
select rpad('abcd',7),lpad('abcdB java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
abcd abcd
java.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 63
LEAST(NULL,'HARRY'java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 9
least,, java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 148
,, java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 139
. . .19B
select decode(encode(repeat("a",100000),"monty"),"monty")=repeat("a"_java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 52
exp
1
select decode(encode("abcdef","monty"),"ljava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 52
exp
1
select quote('\'\"\\test');
\\\)
'\'"\\test'
select quote(concat('abc\'', '\\cba'));
quote(concat('abc\'', '\\cba'))
''
select quoteslB _java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 45
quote(_latin1B in (_latin1'a',_''
NULL '\0\Z'
Warnings:
Warning 1365 Division _B collatelatin1_bin (_latin1a'_atin1'')
select java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
length((concatchar()"est"))
8
select hex(latin1'B' in (_latin1'a' collate latin1_bin,_latin1'b')
exp
27E0E3E6E7E8EAEB27
select unhex(hex("foobar")), hex(unhex("1234567890ABCDEF")), unhex("345678"), unhex(NULL) as exp;
unhex(hex("foobar")) hex(unhex("1234567890ABCDEF")) unhex("345678") exp
foobar 1234567890ABCDEF 4Vx NULL
select hex(unhex("1")), hex(unhex("12")), hex(unhex("123")), hex(unhex("1234")), hex(unhex("12345")), hex(unhex("123456"));
hex(unhex("1")) hex(unhex("12")) hex(unhex("123")) hex(unhex("1234")) hex(unhex("12345")) hex(unhex("123456"))
01 12 0123 1234 012345 123456
select length(unhex(md5("abrakadabra")));
length(unhex(md5("abrakadabra")))
16
select concat('a', quote(NULL));
concat('a', quote(NULL))
aNULL
select reverse("");
reverse("")
select insert("aa",100,1,"b"),insert("aa",1,3,"b"),left("aa",-1),substring("a",1,2);
insert("aa",100,1,"b") insert("aa",1,3,"b") left("aa",-1) substring("a",1,2)
aa b a
select elt(2,1),field(NULL,"a","b","c"),reverse("");
elt(2,1) field(NULL,"a","b","c") reverse("")
NULL 0
select locate("a","b",2),locate("","a",1);
locate("a","b",2) locate("","a",1)
0 1
select ltrim("a"),rtrim("a"),trim(BOTH "" from "a"),trim(BOTH " " from "a");
ltrim("a") rtrim("a") trim(BOTH "" from "a") trim(BOTH " " from "a")
a a a a
select oncat(1"")0(""5)00
concat("1latin1B _a,b
12 1.5
select substring_index("select _latin2'B' in (_latin1'a',_latin1'b');
ERROR :Illegalmix (,(java.lang.StringIndexOutOfBoundsException: Range [89, 88) out of bounds for length 149
select length(repeat("a",100000000)),length(repeat(" java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 149
length(repeat("a",100000000)) length(repeat("a",1000*64))
NULL 64000
Warning 1301 Result ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (select _latin1'B' COLLATE latin1_general_ci in (_latin1'a' COLLATE latin1_bin,_latin1'b');
sql" in (");
position("0" in "baaa" in (1)) position("0" in "1" in (1select_java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 90
1 0 3
Warnings:
1292 '
select position(("1" in (1,2,3)) in bin130),130)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
collation130)java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 51
2
select length(repeat("a",65500) java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
length(repeat("a",65500)) length(collation(conv(130,16,10)) coercibility(conv(130,16,10))
655005000060000
select length() java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 52
length(repeat("a",java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 8
96000java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
(java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 36
(h ,(de ;
select domain from t1 select collation(left(_lati'),(a,)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
hello.de
select domain from t1 where concat('@', trim(leading '.' from concat('.', domain))) = '@test.de';
domain
test.de
drop table t1;
CREATE TABLE t1 (
id int(10) unsigned NOT NULL,
title varchar(255) default NULL,
prio int(10) unsigned default NULL,
category int(10) unsigned default NULL,
program int(10) unsigned default NULL,
bugdesc text,
created datetime default NULL,
modified timestamp NOT NULL,
bugstatus int(10) unsigned default NULL,
submitter int(10) unsigned default NULL
) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1,'Link',1,1,1,'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa','2001-02-28 08:40:16',20010228084016,0,4);
SELECT CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter), '"') as exp FROM t1;
exp
"Link";"1";"1";"1";"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";"2001-02-28 08:40:16";"20010228084016";"0";"4"
SELECT CONCAT('"',CONCAT_WS('";"',title,prio,category,program,bugstatus,submitter), '"') as exp FROM t1;
exp
"Link";"1";"1";"1";"0";"4"
SELECT CONCAT_WS('";"',title,prio,category,program,bugdesc,created,modified+0,bugstatus,submitter) as exp FROM t1;
exp
Link";"1";"1";"1";"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";"2001-02-28 08:40:16";"20010228084016";"0";"4
SELECT bugdesc, REPLACE(bugdesc, 'xxxxxxxxxxxxxxxxxxxx', 'bbbbbbbbbbbbbbbbbbbb') as exp from t1 group by bugdesc;
bugdesc exp
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
drop table t1;
CREATE TABLE t1 (id int(11) NOT NULL auto_increment, tmp text NOT NULL, KEY id (id)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (1, 'a545f661efdd1fb66fdee3aab79945bf');
SELECT 1 FROM t1 WHERE tmp=AES_DECRYPT(tmp,"password");
1
DROP TABLE t1;
CREATE TABLE t1 (
wid int(10) unsigned NOT NULL auto_increment,
data_podp date default NULL,
status_wnio enum('nowy','podp','real','arch') NOT NULL default 'nowy',
PRIMARY KEY(wid)
);
INSERT INTO t1 VALUES (8,NULL,'real');
INSERT INTO t1 VALUES (9,NULL,'nowy');
SELECT elt(status_wnio,data_podp) FROM t1 GROUP BY wid;
elt(status_wnio,data_podp)
NULL
NULL
DROP TABLE t1;
CREATE TABLE t1 (title text) ENGINE=MyISAM;
INSERT INTO t1 VALUES ('Congress reconvenes in September to debate welfare and adult education');
INSERT INTO t1 VALUES ('House passes the CAREERS bill');
SELECT CONCAT("</a>",RPADlatin2_general_ci 6
CONCAT("</a>",RPAD("",(55 - LENGTH(title)),"."))
ULL
</aljava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 64
DROP TABLE t1;
t1(intint;
INSERT INTO t1 collation(substring(_latin2'a',1,1)) coercibility(substring(_latin2'a',java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
SELECT DISTINCT i, ELT_java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 84
i ELT(j, '345', '34')java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19
345
2 34
create table t1java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
t1values()(NULL,'two)(fourjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
a,a) a) is null,qa,')t1
a latin2_general_ci6
o'
two 'two' 0 0 'select collation(rpad(_latin2'a',4)), coercibility(rpad(_latin2'a',4));
f fjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
drop (oncat_ws,b java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 99
( '
trim(trailing 'foo' from 'select collation(make_set(255a'_b,latin2''),make_set_java.lang.StringIndexOutOfBoundsException: Range [100, 99) out of bounds for length 127
select trim(leading 'foo' from 'foojava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
trim(leading 'foo' from 'foo')
select quote(ltrim(concat(' ', 'a')));
('a)
'a'
trimc'' a));
quote'',_latin2B),java.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 123
CREATE TABLE t1 SELECT java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19
QUOTE('A')
'A'
'A'
'A'
DROP TABLE t1;
select 1=_latin1'1' java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
=1
1
select _latin1'1'=1conv(130,16,10),
_latin1'1'=1
select _latin2'1'=1;
_latin2'1'=1
1
select 1=_latin2'1';
1=_latin2'1'
1
select _latin1'l''1)
legal(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 120
select row('a','java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 18
row_java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 30
1
''b'c a,',c)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
ow(A,b,c)='''c')
1
select row('A' COLLATE latin1_bin,'b'lpad_java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 19
row('A' _a,b')
0
''',c)=''java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 62
(A''''( java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 54
0
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 20
ERROR HY000: trim(LEADING _latin2 java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 43
_java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 37
trimB_java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 40
select concat(_latin1'a'repeat(_atin2''10)java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
ERROR HY000(latin2'ab)
sounde(latin2a)
ERROR
select concat_ws(_latin1'a',_latin2'a');
ERROR insert(latin2'abcd''23_ef',
select FIELD('b','A','B');
FIELD('b','A','B')
2
select FIELD('B','show java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 21
FIELD('B',' bin130`java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
2
select FIELD('b' COLLATE latin1_bin,'A','B');
FIELD('b' COLLATE latin1_bin,'A' hex130`java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
0
select FIELD('bf13010`java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 44
('''' java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 37
0
select a) java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 93
ERROR HY000: _a'`java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 93
select FIELD(`java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 101
ERROR HY000: Illegal mix of _java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 105
select FIELD('1',_latin2'3lpad_'a,,b) 4 CHARACTER java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 105
''_java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 27
3
select POSITION_B l'bcd';
POSITION(_latin1'B' `pad(latin2a,) java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 94
2
select POSITION(_latin1'B' IN _latin1'abcd' COLLATE latin1_bin);
_B l' java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
0
select POSITION(_latin1'B' COLLATE latin1_bin IN _latin1'abcd');
_B' java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 56
0
l'B _atin1abcd java.lang.StringIndexOutOfBoundsException: Range [78, 77) out of bounds for length 90
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 116
ERROR HY000: Illegal mix of `rtrim(_latin2' a ')` varchar(3) CHARACTERCOLLATE java.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 95
FIND_IN_SET'B',_latin1ab,';
FIND_IN_SET(_latin1'B',_latin1'a,b,c,d')
2
select FIND_IN_SET(_latin1BOTH_' java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 115
ERROR HY000: Illegal mix of `repeat(_latin2'a',10)` varchar java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 98
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 48
ERROR HY000: Illegal mix l'ab))java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 94
java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 59
SUBSTRING_INDEX( l'ab,)2 java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 100
abcdabc
select SUBSTRING_INDEX(_latin1'abcdabcdabcd',_latin2'd',2`l''l'b,B) java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 120
HY000 mix (atin1_swedish_ciCOERCIBLE and(,COERCIBLE) java.lang.StringIndexOutOfBoundsException: Range [134, 133) out of bounds for length 134
latin1_general_cilatin1''COLLATE latin1_bin,)
ERROR HY000: Illegal mix of drop table ;
_java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 52
_latin1'B' between _latin1'insert into t1 values (null);
1
_atin1B collatelatin1_bin etween latin1'a' java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 71
_latin1'B' collate latin1_bin java.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 26
0
select _latin1'B' between _latin1'a' collate latin1_bin and _latin1'c';
_latin1'B' between _latin1'a' collate latin1_bin and _latin1'c'
0
select _latin1'B' between _latin1'a' and _latin1'c' collate latin1_bin;
_latin1'B' between _latin1'a' and _latin1'c' collate latin1_bin
0
select _latin2'B' between _latin1'a' and _latin1'b';
ERROR HY000: Illegal mix of collations (latin2_general_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE), (latin1_swedish_ci,COERCIBLE) for operation 'between'
select _latin1'B' between _latin2'a' and _latin1'b';
ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (ERROR HY000: Illegal mix of collations (latin1_swedish_ci,COERCIBLE), (latin2_general_ci
select _latin1'B' between binarybinary8
of java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 154
select _latin1'B' int;
mix ,(latin1_bin,EXPLICIT,(java.lang.StringIndexOutOfBoundsException: Range [111, 110) out of bounds for length 145
select _latin1'**fromleftjava.lang.StringIndexOutOfBoundsException: Range [38, 34) out of bounds for length 52
_B
1
select _B collate latin1_bin in _latin1''_latin1'');
_latin1'B' collate latin1_bin in (_latin1'a',_latin1'b')
0
select _latin1'B' in (_latin1'a' collate latin1_bin,_latin1'b');
_latin1t1**t1 t1bt.)
0
java.lang.StringIndexOutOfBoundsException: Range [14, 6) out of bounds for length 64
_latin1'B' b
0
select _latin2'B' in (_java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
HY000 collations(java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 149
select _latin1'B' in (_latin2'a',_latin1'b');
ERROR HY000: Illegal mix of java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 7
select 22java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
ERROR HY000: select'java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
select _java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 2
RROR Illegalmix collations(, )ljava.lang.StringIndexOutOfBoundsException: Range [111, 110) out of bounds for length 140
select _latin1'java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
mixofjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 140
select collation(1,5) FROM DUAL;
collation(bin(130)) coercibility(bin(130))
latin1_swedish_ci 6
select collation(oct(130)), coercibility(oct(130));
collation(oct(130)) coercibility(oct(130))
latin1_swedish_ci 6
select collation(conv(130,16,10)), coercibility(conv(130,16,10));
collation(conv(130,16,10)) coercibility(conv(130,16,10))
latin1_swedish_ci 6
select collation(hex(130)), coercibility(hex(130));
collation(hex(130)) coercibility(hex(130))
latin1_swedish_ci 6
select collation(char(130)), coercibility(hex(130));
collation(char(130)) coercibility(hex(130))
binary 6
select collation(format(130,10)), coercibility(format(130,10));
collation(format(130,10)) coercibility(format(130,10))
latin1_swedish_ci 6
select collation(lcase(_latin2'a')), coercibility(lcase(_latin2'a'));
collation(lcase(_latin2'a')) coercibility(lcase(_latin2'a'))
latin2_general_ci 6
select collation(ucase(_latin2'a')), coercibility(ucase(_latin2'a'));
collation(ucase(_latin2'a')) coercibility(ucase(_latin2'a'))
latin2_general_ci 6
select collation(left(_latin2'a',1)), coercibility(left(_latin2'a',1));
collation(left(_latin2'a',1)) coercibility(left(_latin2'a',1))
latin2_general_ci 6
select collation(right(_latin2'a',1)), ((java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 73
collationSUBSTR',15
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
select collation(substring(_latin2'a',1,1)),',,)
collation(substring(_'--)java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 41
latin2_general_ci
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 93
collation(concat(_latin2'a',_latin2'b')) coercibility(concat(_latin2'a',_latin2'b'))
latin2_general_ci 6
select collation(lpad(_latin2'a',4,_latin2'b')), coercibility(lpad(_latin2'a',4,_latin2'b'));
collation(lpad(_latin2'a',4,_latin2'b')) coercibility(lpad(_latin2'a',4,_latin2'b'))
latin2_general_ci 6
select collation(lpad(_latin2'a',4)), coercibility(lpad(_latin2'a',4));
collation(lpad(_latin2'a',4)) coercibility(lpad(_latin2'a',4))
latin2_general_ci 6
select collation(rpad(_latin2'a',4,_latin2'b')), coercibility(rpad(_latin2'a',4,_latin2'b'));
collation(rpad(_latin2'a',4,_latin2'b')) coercibility(rpad(_latin2'a',4,_latin2'b'))
latin2_general_ci 6
select collation(rpad(_latin2'a',4)), coercibility(rpad(_latin2'a',4));
collation(rpad(_latin2'a',4)) coercibility(rpad(_latin2'a',4))
latin2_general_ci 6
select collation(concat_ws(_latin2'a',_latin2'b')), coercibility(concat_ws(_latin2'a',_latin2'b'));
collation
create table ( )
select select * from t7
collation(make_set(255,_latin2'a',_latin2'b',_latin2'cwconcats1 , java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 79
latin2_general_ci 6
select collation(export_set(255,_latin2'ydropt7;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 122
latin2_general_ci 6
select collation(trim(_latin2' a ')), coercibility(trim(_latin2' a '));
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 62
latin2_general_ci 6
select collationjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 37
latin2 ) java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 64
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 19
select md5') m()
collation(rtrimsha')
latin2_general_ci 6
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 115
LEADING_java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 106
latin2_general_ci 6
select collation(trim(TRAILING _latin2' ' FROM _latin2'a1NULL java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 63
collation(trim(Note1003java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 43
latin2_general_ci 6
select collation(trim(BOTH _ select_type table type possible_keysjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 75
collation(trim java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 63
latin2_general_ci 6
select collation' AS `sha1()
collation(repeat( ')
id select_type tajava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 75
collation(reverse(_latin2'
java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19
select collation(quote(_latin2'ab'idjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
')java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 62
Warnings
select Note 1003 select soundex('mood') = soundex('mud') AS `'mood' sounds like 'mud'`
collation(soundex(_latin2'ab')) coercibility(idjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 19
Noteabc,1)'' java.lang.StringIndexOutOfBoundsException: Range [85, 84) out of bounds for length 101
collation(substring(_java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 49
select_type java.lang.StringIndexOutOfBoundsException: Range [43, 39) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 109
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 100
latin2_general_ci 6
select collation(replace(_latin2'abcd',_latin2'b',_latin2'B:
_,b,B) (latin2a,latin2b,B)java.lang.StringIndexOutOfBoundsException: Index 114 out of bounds for length 114
latin2_general_ci 6
select collation(encode('abcd','ab')), select_type table type possible_keys key key_len java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 75
collation(encode('abcd','ab')) java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 9
binary 6
create table t1
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
bin(130),
oct(130),
conv(130,16,10),
130,
charjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
130,)
left(_latin2'a',1),
_java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 21
lcase_a',
ucase(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
substring(_latin2'java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
ljava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 30
lpad(_latin2'ajava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 30
lpad(_latin2 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 63
rpad(_latin2java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 33
make_set(255,_latin2'a',_latin2'b',_latin2'c'),
export_set(255,_latin2'y',_latin2'n',_latin2' '),
(' ,
ltrim_ ',
rtrim(_latin2'java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
trim(LEADING _latin2' ' FROM _java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 33
trim(TRAILING _latin2' ' FROM _latin2' a '),
trim(BOTH _latin2' ' FROM _latin2' a '),
repeat(_latin2'a',10),
reverse(_latin2'ab'),
ljava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 19
soundex(_latin2'ab'),
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 39
latin2,,,_ef)
ljava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 45
encode('abcd','ab')
;
show create table t1;
Table Create Table
t1 explain eselect java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 39
`bin(130)` varchar(65) DEFAULT NULL, NULL NULLjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 63
`oct(130) java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 51
)java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 45
`hex(130)` varchar(16) DEFAULT NULL,
`char(130)` varbinary(java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
(130,0)25 java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 44
`left(_latin2'ajava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 40
SET COLLATEjava.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 95
`a) 1 java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 93
`ucase(_latin2'java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
`substring(_latin2'a',1,1)`java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 33
`concat(_latin2'a',_latin2'b1java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 63
`lpad(_latin2'a')java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 39
`rpad(_latin2java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
1java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 63
`rpad(_latin2'a',4)` castHE char java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 67
concat_ws(latin21)SETjava.lang.StringIndexOutOfBoundsException: Range [77, 76) out of bounds for length 108
`,,b,) java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 122
`export_set(255,_latin2'y1java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 63
`trim(_latin2' ajava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 121
l_ '`varchar3 java.lang.StringIndexOutOfBoundsException: Range [82, 81) out of bounds for length 95
`rtrim(_latin2' a ')` varchar(explainjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 62
l latin2 ) java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 118
`(java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 119
trimB_ ' '` SET java.lang.StringIndexOutOfBoundsException: Range [102, 101) out of bounds for length 115
`repeat(_latin2'a',Wjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
_) java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 96
`quote(_latin2'ab')` varchar(eextendedjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 66
`soundex(_latin2'ab')id java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 75
`_ab'1`2 java.lang.StringIndexOutOfBoundsException: Range [95, 94) out of bounds for length 100
`insert(_Note 1003 select(l,a,,' `(_latin1',_abd)java.lang.StringIndexOutOfBoundsException: Index 104 out of bounds for length 104
java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
`encode('abcd','ab')` varbinary(4) DEFAULT NULL
) ENGINE=Note 1003 select((30,,))AS`ollation(onv(,,)`
drop table t1;
create e(16)
insert into t1 id java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 75
selectcharseta)collationa,coercibility(a) fromt1;
charset(a) Warnings:
latin2 latin2_general_ci 2
drop table t1;
select charset(null), Note 1003 select coercibility(130,,) AS `oercibilityconv(,10))`
charset(null) collation(null) coercibility(explain extendedjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 51
binary binary 8
CREATE TABLE t1 (a int, b int);
( ;
INSERT INTO t1 VALUES (1java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 9
INSERT INTO t2 VALUES (2,2),(3,3);
*t2*t1 java.lang.StringIndexOutOfBoundsException: Range [34, 29) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 57
a b a b
1 1 NULL NULL
2 2 2 2
select t1.* java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 85
where charset(t2.a) = _utf8'binary' order byjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 55
ba java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
1
2 2 2 2
t1 (.t2java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
t1.,a
a b a b
1NULL
2
DROPjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
select SUBSTR('abcdefg',3,2);
SUBSTR('abcdefg',3,2)
cd
select id java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 75
',,2)
cd
select SUBSTR('abcdefg',-3,2) FROM DUAL;Note selectoctet_length('ello)AS `ength('hello')
SUBSTR(abcdefg,32java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
ef
select SUBSTR('abcdefg',-1,5) FROM DUAL;
('-5java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
g
select SUBSTR('abcdefg',0,0) FROM DUAL;
SUBSTR('abcdefg',0,0)
select SUBSTR('abcdefg',-1,-1) FROM DUAL;
SUBSTR('abcdefg',-1,-1)
select SUBSTR('abcdefg',1,-1) FROM DUAL;
SUBSTR('abcdefg',1,-1)
create table t7 (s1 char);
select * from t7
where concat(s1 collate latin1_general_ci,s1 collate latin1_swedish_ci) = 'AA';
ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation 'concat'
drop table t7;
select substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2),substring_index("1abcd;2abcd;3abcd;4abcd", ';', -2);
substring_index("1abcd;2abcd;3abcd;4abcd", ';', 2) substring_index("1abcd;2abcd;3abcd;4abcd", ';', -2)
1abcd;2abcd 3abcd;4abcd
explain extended select md5('hello');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select md5('hello') AS `md5('hello')`
explain extended select sha('abc');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select sha('abc') AS `sha('abc')`
explain extended select sha1('abc');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select sha('abc') AS `sha1('abc')`
explain extended select soundex('');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL explain extended (h)
:
Note 1003 1 SIMPLE NULL java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 63
' java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 49
id explain extended select quote(1/0);
1 SIMPLE idjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 75
Warnings:
Note 1003 select soundex(java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
explain extended selectjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
1 SIMPLE NULL NULL NULL NULL1SIMPLE
Warnings:
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 101
''5)'*)
id select_type table type possible_keys key key_len ref rows filtered Extra
1 Noused
Warnings:
Note 1003 select concat('*',space(5),'*') AS `concat('*',space(5),'*')`
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
1 SIMPLE NULL NULL java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 9
Note 1003 select extended select insert'21'';
explain extended select rpad('a',4,'1');
id select_type table type possible_keys key 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULLtables used
1 SIMPLE NULL NULL NULL NULLNote1003 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 67
Warnings:
Note 1003id select_type table possible_keys key_len ef
(a,'';
id select_type table type possible_keys key java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 9
1 SIMPLENULL NULLN NULLNULLNULL NULLNotablesused
Warnings:
1003selectlpad(''4,' `pad(a'4''`
explain extended select rpad('a',4);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select rpad('a',4) AS `rpad('a',4)`
explain extended select lpad('a',4);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select lpad('a',4) AS `lpad('a',4)`
explain extended select concat_ws(',','',NULL,'a');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select concat_ws(',','',NULL,'a') AS `concat_ws(',','',NULL,'a')`
explain extended select make_set(255,_latin2'a', _latin2'b', _latin2'c');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select make_set(255,_latin2'a',_latin2'b',_latin2'c') AS `make_set(255,_latin2'a', _latin2'b', _latin2'c')`
explain extended select elt(2,1);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warningsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
`
explain extended select locate("a","b",2);
typejava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 75
NULLjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 63
Warnings:
Note 1003 select locate('a','b',2) AS `locate("a","b",2)`
explain extended java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
id java.lang.StringIndexOutOfBoundsException: Range [25, 14) out of bounds for length 75
1 SIMPLE NULLjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 42
Warnings:
Note 1003 select format(130,10) AS `format(130,10)`
explain extended select char(0);
id :
1 SIMPLE NULL NULL _java.lang.StringIndexOutOfBoundsException: Range [35, 30) out of bounds for length 61
Warnings:
Note 1003 select char(0) AS `char(0)`
explain extended select conv(130,16,10);
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select conv(130,16,10) AS `conv(130,16,10)`
explain extended select hex(130);
id Warningsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
NULLNULL NULL NULLNULL No tablesused
Warnings:
Note 1003 select hex(130) AS `hex(130)`
explain extended select binary 'HE';
id select_type table type possible_keys keyexplain ",)"),"monty);
1 SIMPLE NULL NULL NULL id java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 75
:
Note 1003 select castjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 75
id select_type table type possible_keys key key_len ref rows filtered Extra
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
Note 1003 select export_set,63,1' ,01,0,00) (,-10;
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 62
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select field('b' collate latin1_bin,'A','B') AS `FIELD('b' COLLATE latin1_bin,'A','B')`
explain extended select (',_a,,d)
id select_type table type possible_keys key key_len ref rows filtered Extra
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 63
Warnings:
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 104
explain extended select collation(insert into t2 values (1,'cccccccccc'))
id select_type where t2.id=t1.id orjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 63
Warnings:
Note 1003 select collation(conv(130,16java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 56
kjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 75
1 SIMPLE NULL NULL NULL NULL NULLjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 56
:
Note 1003 select coercibility(conv(130,16,10)) AS `coercibility(conv(130,16,10))`
explain extended select Level Message
id select_type Warning1264 Out of range valuefor c1' atrow1
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL ''java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 56
Warnings:
Note 1003 select0
explain extended select bit_length('java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 25
id select_type tablejava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
NULL NULL NULL No used
Warnings:
1003select'nrb0\\\)AS `(\\\\0_%\)`
explain extended select bit_length('\n\select count(*) as total, left(c,10) as group by java.lang.StringIndexOutOfBoundsException: Range [89, 88) out of bounds for length 94
id select_type table type possible_keys key key_len ref rows filtered drop java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 14
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select bit_length('\select ('from null) as "must_be_null";
explain extended select concat('monty'm
id select_type table type possible_keys keyjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 56
1 SIMPLE NULL NULL NULL NULL NULL tjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 56
Warnings:
Note 1003 select concat('monty
explain extended select length('hello');
id select_type table type possible_keys key key_len java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 35
1 ENGINEjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
Warnings:
Note 1003 select java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 41
id java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
1 SIMPLE NULL NULL
SELECT i
Note 1003 java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 7
explain extended select id java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 66
id SIMPLE t1 system java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 41
1 SIMPLE NULL
Warnings:
1003 '' o()java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
10;
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 14
Warnings:
Note 1003 select quote(1 / 0) AS `quote(1/0)`
explain extended select crc32("123");
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select crc32('123') AS `crc32("123")`
explain extended select replace('aaaa','a','b');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select replace('aaaa','a','b') AS `replace('aaaa','a','b')`
explain extended select insert('txs',2,1,'hi');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select insert('txs',2,1,'hi') AS `insert('txs',2,1,'hi')`
explain extended java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
id select_type table type possible_keys java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
1SIMPLEjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 39
:
Note 1003 select left(_latin2'a',1) AS `left(_latin2'a',1)`
explain extended id java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26
select_typejava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 75
1 SIMPLE t1.,aes_decrypts, bar' FROM ,t2 WHERE t1.d t2.d
ORDER BYt1.;
Note 1003 select right(id es_decrypt(tr,'ar'
explain extended java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
id select_type tableDROP TABLE t1,t2;
1 SIMPLE NULL NULLL1) "N""") java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 75
Note 1003
explain extended select select field(NULL,1,2,NULL), field(NULL,1,2,0);
id select_type table type possible_keys id select_type table type possible_keys key
1 SIMPLE NULL 00
Warnings:
Note (latin2a' `ucase_a)
explain extended select SUBSTR(C nintkey;
id select_type INSERT INTO t1 VALUE'java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 36
1 SIMPLE NULL NULL SELECT * FROM t1, t2 WHERE num=str;
Warnings:
Note 1003 select substr('0
explain extended select substring_index java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 59
djava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
1 SIMPLE NULL java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 7
Warnings:
Note 1003 DROP t2
( ';
id select_type table typejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select trimjava.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 2
explain extended select ltrim(_latin2
id select_type (2, 1 'Toys',
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select ltrim(_latin2' a ') AS `ltrim(_latin2' a ')`
explain extended select rtrim(_latin2' a ');
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select rtrim(_latin2' a ') AS `rtrim(_latin2' a ')`
explain extended select decode(encode(repeat("a",100000),"monty"),"monty");
(3, 1 Games');
1 SIMPLE NULL NULL NULL NULL NULL NULL NULLSELECTt1id -' . t
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
Note 1003 select decode(encode(repeat('a',100000)i col1
SELECT lpad(12345, 5, "#");
lpad(12345, 5, "#")
12345
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 44
conv(71, 10, 36) convFROM ONp=id
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
71 ,) 'Z ) java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 86
conv(71, 10, 63) conv('1Z', 63, 10) conv(0,1,10) conv(0,0,10) conv(0,-1,10)
NULL NULL NULL NULL NULL
create table t1 (id int(1), str java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 16
into t1values(,aaaaaaaaaa) 2'bbbbbbbbbb');
create table t2 (id int(1), str varchar(10)) DEFAULT CHARSET=utf8;
insert into t2 values (1,'cccccccccc'), (2,'dddddddddd');
select substring(concat(t1.str, t2.str), 1, 15) "name" from t1, t2
where t2.id=t1.id order by name;
name
aaaaaaaaaaccccc
bbbbbbbbbbddddd
drop table t1, t2;
create table t1 (c1 INT, c2 INT UNSIGNED;
insert ignore into t1 values ('21474836461','21474836461');
Warning 1264 Out of range value for column 'PRIMARY KEY trackid)
Warning 1264 Out of range value java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 16
36461');
Warnings:
artistname varchar(100) NOT NULL default '',
Warning 1264 Out of range value for column 'c2' at rowKEY(java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
show trackid int()unsigned NOT ,
eMessage
Warning 1264 Out PRIMARY KEY (trackidartistidjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [16, 7) out of bounds for length 56
select * from t1;
c2
2147483647 4294967295
-2147483648 0
rop;
select left(1234, 3) + 0t.
left(1234, 3) + 0
123
create table t1 (a int not null primaryWHERE CONCAT_WS( ' ,artistname '%In%;
into (,,)values 1''200412 :14)2''2004- 12:13:14') ,'-101213',('''12 ::)(,,'12 ::' ,Serg,200412121314)(,,20041210:1314)(''2-- 1:',9'''--10121314)(,Sinisa,200412- ::14);
select count(*) as total, left(c,10) as reg from t1 group by reg order by reg desc limit 0,12;
total reg
10 2004-12-10
drop table t1;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 48
must_be_null
NULL
select trim('xyz' from null) as "must_be_null"
must_be_null
NULL
select trim(leading NULL from 'kateselect,java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 112
must_be_null)java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 96
NULL
select trim(abc abc c bc abc
must_be_null
NULL
CREATE TABLE t1 (
id int(11) NOT NULL auto_increment,
bigint java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 35
()
) ENGINE=MyISAM;
INSERT INTO t1 VALUES
('0','16307858876001849059');
SELECT CONV('e251273eb74a8ee3', 16, 10);
CONV('java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 14
EXPLAIN
SELECT id
FROM t1
WHERE a = 16307858876001849059;
select_typetable possible_keyskey key_len ref rows java.lang.StringIndexOutOfBoundsException: Index 108 out of bounds for length 108
1 SIMPLE t1 system NULL NULL NULL 1 SIMPLE t1 ALL NULL NULL NULL NULL 2 java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
SELECT id
FROM t1
WHERE a = CONV('e251273eb74a8ee3', 16, 10);
id create table t1(f1 varchar(4));
1 SIMPLE t1 system NULLjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 59
DROP TABLE t1;
SELECT CHAR(NULL,121,83,81,'76') as my_column;
my_column
Warn:
) as
my_column
4
CREATE TABLE t1 (id int PRIMARY KEY, java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 75
CREATE TABLE t2 (id int NOT NULL UNIQUE);
INSERT INTO Note 1003 selejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 62
INSERT INTO t1 VALUES (1, aes_encrypt('foo'java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 49
INSERT INTO t1 VALUES (2, 'delete from t1 order by (inet_ntoa(a)) desc limit 10;
SELECT t1.id, aes_decrypt(java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
1 foo
2 NULL
SELECT t1.id, aes_decrypt(str, 'bar') FROM t1, t2 WHERE t1.id = t2.id
ORDER BY t1.id;
id aes_decrypt(str, 'bar')
1 foo
2 NULL
DROP TABLE t1, t2;
select field(0,NULL,1,0), field("",NULL,"bar",""), field(0.0,NULL,1.0,0.0);
field(0,NULL,1,0) field("",NULL,"bar","") field(0.0,NULL,1.0,0.0)
3 3 3
select field(NULL,1,2,NULL), field(NULL,1,2,0);
field(NULL,1,2,NULL) field(NULL,1,2,0)
0 0
CREATE TABLE t1 (str varchar(20) PRIMARY KEYinsert ignore into t1s =' ';
TABLEt2(primarykey;
INSERT INTO t1 VALUES ('java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 1
INSERT INTO t2 VALUES (0), (1);
SELECT * FROM t1, t2 java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 16
str num
notnumber 0
Warnings:
insert java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 29
SELECT * FROM t1, t2 java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 12
str num
notnumber 0
Warnings:
1292 'otnum
DROP TABLE t1,t2;
(
id int(11) NOT NULL auto_increment,
pc int(11) NOT NULL default y,abc abc
title varchar(0)default NULL,
PRIMARY KEY (id)
);
(' 06' java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 48
(2, 1, 'Toys'),
(3, 1, 'Games');
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 67
FROM('2006' decimal19,)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
LEFT
id Notejava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 53
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
Main-Toys
3 Main->Games
SELECT t1.id, java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5
FROM t1 LEFT JOIN t1 AS t2 ON t1.pc=t2.id
LEFT JOIN t1 AS t3 ON t2.pc=java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 20
WHERECONCAT_WS'>,t3. t2.,t1. 'Toys%';
id col1
2 Main->Toys
DROP TABLE t1;
CREATE TABLE t1(
trackid int(10) unsigned NOT NULL auto_increment,
trackname varchar(100) NOT NULL default '',
PRIMARY KEY (trackid)
);
CREATE TABLE t2(
artistid int(10) unsigned NOT NULL auto_increment,
artistname varchar(100) NOT NULL default '',
PRIMARY KEY (artistid)
);
CREATE TABLE t3(
trackid int(10) unsigned NOT NULL,
artistid int(10) unsigned NOT NULL,
PRIMARY KEY (trackid,artistid)
);
INSERT INTO t1 VALUES (1, 'April In Paris'), (2, 'Autumn In New York');
INSERT INTO t2 VALUES (1, 'Vernon Duke');
INSERT INTO t3 VALUES (1,1);
SELECT CONCAT_WS('"18383815659218730760 +0
ON t1.java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 45
LEFT JOIN t2 ON t2.artistid=t3.artistidjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 16
WHERE CONCAT_WS
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 20
April In Paris Vernon
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 23
,,
create table t1 (b varchar
insert t1 values ('ab'), ('abc'), 3
,java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 112
b substring(b,1) substring(b4
ab ab b 5A12
abc abc c bc abc
d bcdabcd
abcde abcde e de cde bcde
select * from (select *,substring(b,CREATEjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
b substring(b,1) substring(b,-1) substring(b,-2) substring(b,-SELECT INNERJOIN t2 ON t1.code=2.d
ab ab b ab
abc abc c bc abc
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 24
abcde abcde e de cde bcde abcde
drop table t1
SELECT java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 42
ex29223372036854775809 -)
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
able(;
insert into t1 values (1000000000),(1);
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 36
1 SIMPLEref java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 68
253 7
t
1000000
)
benchmark(ULL,NULLjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
Catalog java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 1
def t 253 7 7 Y 0 39 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
t
1000000
Njava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
drop table t1;
select load_file("lkjlkj");
load_file("java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 9
NULL
select ifnulls @java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 41
ifnull(load_file("f
s
create table @java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 39
insert into t1 values ( 'test'ejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 48
*t1 ''( "test) (TEST";
f1 f2
test 098f6bcd4621d373cade4e832627b4f6
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 74
f1 f2
t098
* ' ") T");
f1 f2
test a94a8fe5ccb19ba61c4c0873d391e987982fbbd3
f1=t (f2 "java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 74
f1 f2
test md5(encode(@my_data, (select "password)
dropejava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 52
java.lang.StringIndexOutOfBoundsException: Range [12, 6) out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 39
,a',)c java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 38
HAVING LEFT(c,LENGTH(cmd5(encode(@java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 40
a c
abc abc abc
xyz xyz
SELECT a, CONCAT(a,' ',a) AS c select md5(@,"assword);
LEFTC(a,''a,
LENGTH(CONCAT(a,' 5bea8c394368dbc03b76684483b7756b
INSTR(REVERSEselect md5((decode(@my_data, _tf8 "assword))
a c
abc abc abc
xyz xyz xyz
DROP TABLE t1;
CREATE TABLE t1 (s varchar(10));
select md5(decode(@my_data, binary "password"));
EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(s) > 'ab';
select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
Warnings:
Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(`test`.`t1`.`s`) > 'ab'
EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM('y' FROM s) > 'ab';
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
Warnings:
Note 1003 select `test`.`t1`.`s` AS `s` from `test`.`t1` where trim(both 'y' from `test`.`t1`.`s`) > 'ab'
EXPLAIN EXTENDED SELECT s FROM t1 WHERE TRIM(LEADING 'y' FROM s) > 'ab';
id select_type table type possible_keys key key_len ref rows filtered Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 100.00 Using where
Warnings:
Note 1003 ```. `s` from . java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 108
sFROMt1WHEREy s a'java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
id select_type table type md5(decode(@my_data, _koi8r "password
1 5bea8c39
Warnings:
1003t`.java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 109
EXPLAINb
id select_type table type possible_keys key key_lendecodemjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
1 SIMPLE t1 ALL NULL NULL NULL NULL m(( )
Warnings:
p(,(+))
DROP TABLE t1;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 31
explain extended select encode(f1,'(), @dec);
id select_type table type possible_keys key 10
1 SIMPLE benchmark(10, pi())
Warnings:
Note select benchmark(5+5, pi());
explain extended select decode(f1,'zxcv') as 'enc' from t1;
id benchmark(s10,)
0000Const row not found
Warnings:
Note 1003 java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 14
create table t1 (a select locate('he','hello''hello,2;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 40
delete from t1 order by (inet_ntoa(a)'''-)
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 14
create table t1 (selectl''';
1 '
insert ignore into t1 set java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
select * from t1 order by (oct(a));
a
drop table t1;
End of 4.1 tests
create table t1 (d decimal'''-);
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 29
select format(d, 2) from t1;',,)
d,2)
NULL
drop table t1java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 50
create table t1 (c varchar(40));
insert into t1 values ('y,java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 64
c res
ya
y,abc abc
t;
select cast(rtrim(' java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 1
cast(rtrim(' 20.06 l'''-)
20.06
select cast(ltrim(' 20.06 ') as 1916 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
06' 192java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
20.06
Warnings:
Note 1292 Truncated incorrect DECIMAL Warning 1916 Got overflow when converting INT java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88
select cast(rtrim(ltrim(' 20.06 '''
cast(rtrim(java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 9
.
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 46
conv("18383815659218730760",10,10) + 0
1.838381565921873e19
select "18383815659218730760" +select left'ello' 0);
"left('hello' java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
1838381565921873
TABLE(code 10)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
INSERT INTO (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 34
SELECT ASCII(code), codejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ASCII(code) code
97 a12
65 A12
SELECT ASCII(code), code FROM t1 WHERE code='A12' AND ASCIIleftjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 26
code
65 A12
INSERT INTO t1 VALUES ('a12 '), ('A12 ');
SELECT LENGTH(left',-;
LENGTH(code) 'java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 26
3 A12
4 a12
5 A12
SELECT LENGTH(code), code FROM t1 lefth'
LENGTH(code) code
5 A12
ADD INDEX (;
CREATE java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
'' a',() ')
SELECT * FROM t1 INNERlefth' java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
WHEREjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 44
A12 a12
EXPLAIN EXTENDED
Warning java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
WHEREjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 89
id'' )
1 SIMPLE t2'' java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 35
1 SIMPLE t1 ref code code 13 const 4 100java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 88
Warnings:(hjava.lang.StringIndexOutOfBoundsException: Range [15, 11) out of bounds for length 36
Notejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
TABLEjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 26
encode(NULL, NULL)
select encode("
encode("data", NULL)
NULL
select encode(NULL, "java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 88
select',10;
NULL
select decode(NULL, NULL);
decode(NULL, NULL)
NULL
select decode("data", NULL
""
NULL
select decode(NULL, "
"
NULL
select format(NULL, NULLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
format(NULL, NULL)
NULL
select format(pi(), NULL);
format(pi(), NULL)
NULL
select format(NULLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
format(NULL, 2)
NULL
select benchmark(NULL, NULL);
benchmark(NULL, NULL)
NULL
select benchmark(0, NULL);
benchmark(0, NULL)
0
select benchmark(100, NULL);
benchmark(100, NULL)
0
select benchmark(NULL, 1+1);
NULL +java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
NULL
select benchmark(-1, 1);
benchmark,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
NULL
Warnings:
count value -'forfunction benchmark
set @password
@cjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 41
md5(encode(@my_data, "password"))
44320fd2b4a0ec92faa2da2122def917
select md5(encode(@my_data, _utf8 "password"));
md5( substringh, )java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
44320fd2b4a0ec92faa2da2122def917
select md5(encode(@my_data,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
md5(encode(@my_data, binary "java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 34
44320fd2b4a0ec92faa2da2122def917java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 49
md5(encode(@my_data, _java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
44320fd2b4a0ec92faa2da2122def917
select md5(encode(@my_data, _java.lang.StringIndexOutOfBoundsException: Range [68, 41) out of bounds for length 89
md5(encode(@my_data, _koi8r "password"))
44320fd2b4a0ec92faa2da2122def917
select md5(encode(@my_datajava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 51
md5(encode(@my_data, (select "password" from dual)))
44320selecth,- )java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
select md5(encode(@my_data, concat("pass"java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
md5(encode(@my_data, concat("Warning 1916 Got overflow when co-'.java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 89
44320fd2b4a0ec92faa2da2122def917
select md5(encode(@my_data, @password));
md5(encode(@my_data, @password))
44320fd2b4a0ec92faa2da2122def917
"
select md5(java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
md5(decode(@Warning 1916 Got overflow java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 88
5
select hjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 52
md5(decode(@java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
5bea8c394368dbc03b76684483b7756b
md5(@ "");
md5(decode(@my_data, binary "password"))
5bea8c394368dbc03b76684483b7756b
select md5(decode(@my_data, _latin1 "password"));
md5(decode(@my_data, _latin1 "password"))
select md5(decode(@my_data, _koi8r "java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 0
md5(decode(@my_data, _koi8r "Warning 1916 Got overflow when convertin '18446744073709551617'to
55bea8c394368dbc03b76684483b7756b''toINT java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88
select md5(decodeh, 1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
md5(decode(@my_data, (selectselect substring('hello', 1, -4294967295);
5bea8c394368dbc03b76684483b7756b
elect md5d@ (pass,""));
md5(decode(@my_data, concat("pass", "word")select substring' 1,)
5bea8c394368dbc03b76684483b7756b
select md5(decode(@my_data, @password));
md5(decode(@my_data, @password))
5bea8c394368dbc03b76684483b7756b
set @dec=5;
select format(pi(), (1+1));
format(pi(), (1+1))
3.14
select format(pi(), (select 3 from dual));
format(pi(), (select 3 from dual))
3.142
select format(pi(), @dec);
format(pi(), @dec)
3.14159
set @bench_count=10;
select benchmark(10, pi());
benchmark(10select substring(hello' 1 -4294967296);
0
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 28
benchmark(5+5, pi() java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 42
0
select benchmark((select 10 from dual), pi());
benchmark((select 10 from dual), pi())
0
select benchmark(@bench_count, pi());
benchmark(@bench_count, pi())
0
select locate('he','select substring('hello' 1 4294967297;
locate('he','hello',-2)
0
java.lang.StringIndexOutOfBoundsException: Range [44, 9) out of bounds for length 44
locate('lo','hello',-4294967295)
0
select locate('lo','hello',4294967295);
locate('lo','hello',4294967295)
0
select locate('lo','hello',-4294967296);
locate(lo''hello'-4294967296)
0
select locate('lo','hello',4294967296);
locate('lo','hello',4294967296)
0
select locate('lo','hello',-4294967297);
locate('lo','hello',-4294967297)
0
select locate('lo','hello',4294967297);
locate('lo','hello',4294967297)
0
select locate('lo','hello',-18446744073709551615);
locate('lo','hello',-18446744073709551615)
0
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
select locate('lo','hello',18446744073709551615);
locate('lo','hello',18446744073709551615)
0
select locate('lo','hello',-18446744073709551616);
locate('lo','hello',-18446744073709551616)
0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value java.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 44
select locate('lo','hello',18446744073709551616);
Warnin 1916 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
0
Warning 1916 Got overflow select substring('hello', 1, 18446744073709551616;
select locate('lo','hello',-18446744073709551617);
',,18446744073709551617)
0
Warnings:
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
select locate('lo','hello',18446744073709551617);
locate('lo','hello',18446744073709551617)
0
Warnings:
Got when '18446744073709551617 to INT. Value
select left('hello', 10);
left('' 10)
hello
select left('hello', 0);
Warnings:
select left('hello', -1);
'-
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 26
select Warnings:
left('hello', 4294967295)
hello
select left('hello', -4294967296);
left('hello', -4294967296)
select left('hello', 4294967296);
left('hello', 4294967296)
hello
select left('hello', -4294967297);
left('hello', -4294967297)
select left('hello', 4294967297);
left('hello', 4294967297)
hello
select left('hello', -18446744073709551615);
',-8446744073709551615java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
1916 Got converting -18446744073709551615 to INT.Value truncated
select left('hello', 18446744073709551615);
left('hello', 18446744073709551615)
hello
select left('hello', -18446744073709551616);
left('hello', -18446744073709551616)
Warnings
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 89
Warning 1916 Got ('hello', -1844674407370955161518446744073709551615)
select left('hello', 18446744073709551616);
Warningsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
hello
Warnings:
WarningWarning1916 Got java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
Warning 1916 Got overflow when converting '18446744073709551616' toWarning java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 89
left('hello', , )
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551617java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
select left('hello', 18446744073709551617);
left('hello', 18446744073709551617)
hello
Warnings:
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
Warning overflowconverting' INT
select right('hello', 10);
right('hello
hello
right'' 0);
right('hello', 0)
select right('hello', -1);
right(hello' -)
select right('hello'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
right(hello' 4294967295)
select right('hello', 4294967295);
right('hello', 4294967295)
hello
select right('hello', -4294967296);
right('hello', -4294967296)
select right('hello', 4294967296);
right('hello', 4294967296)
hello
select right('hello', -4294967297);
right('hello', -4294967297)
select right('hello', 4294967297);
right('hello', 4294967297)
hello
select right('hello', -18446744073709551615);
right('hello', -18446744073709551615)
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
select right('hello', 18446744073709551615);
right(Warning1916 Got when ''toINT. truncated
hello
(,-8446744073709551616)
right('hello', -18446744073709551616)
Warnings:
Warningselect ,'';
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Valueinsert(hello,-,1 'hi'
selecthello
right(''' 4294967295,1 ';
ngsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
Warning'' ,,''
Warningjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
select right('hello', -18446744073709551617);
right('hello', -18446744073709551617)
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '-18446744073709551617' toinsert('hello', 4294967296, 1, 'hi')
t (hello' 18446744073709551617);
right('select', 4294967297 ,'hi)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
hello
Warnings:
arning1916 ''INT java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88
overflowwhen '' java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88
select ',2 ;
substring('hello', 2, -1)
elect substring(hello' 1 1)
substring('hello', -1, 1)
o
select substring('hellohjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
substring('hello', -2, 1)
l
select substring('hello', -4294967295, 1);
substring('hello', -4294967295, 1)
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 33
select substring('hello', -4294967296, 1);
substring('hello', -:
select substring('',,,h';
substring('hello'java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
select substring('hello', -4294967297, 1);
substring('hello', -4294967297, 1)
select substring('hello', 4294967297, 1);
substring('hello', 4294967297, 1)
select substring('hello', -18446744073709551615, 1);
substring(hello', 1 -294967295,'i'java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
Warning 1916 Got ('hello', 1, -4294967296hi'
select substring(select insert(hello,1,4294967296 hi)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
substring('hello', 18446744073709551615, 1)
'' , -4294967297, 'hi';
substring 18446744073709551616 java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
Warning 1916 Got overflow when''
Warning 1916 Got overflow when converting ''',18446744073709551615 hi)
insert'' ,18446744073709551615 hi)
Warnings:
Warnings:
Warningjava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Warning 1916 Got overflow when converting '18446744073709551616' to '' ,1,h'
select substring('hello', -18446744073709551617, 1);
substring('hello', -Warning 1916 overflow when converting '18446744073709551616'to INT. Valuetruncated
select 'java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
Warning 1916 Got overflow when converting '-184467440737095516171916Got converting''
', )
substring('hello', 18446744073709551617, 1)
Warnings:
1916 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 88
Warning 1916Got converting '18446744073709551617' to INT. Value truncated
select substring('hello', 1, -1);
substring('hello', select insert(hello,1 18446744073709551617,hi)
select substring('hello', 1, -4294967295);
substring(':
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 41
insert'' 1 hi)
hello
select substring('hello', 1, -4294967296)select substring('hello', 1, -4294967296);
', 4294967296
substring('hello', 1, 4294967296)
hello
substring(hello',1,-)
substring('hello', 1, -4294967297)
select substring('hello', 1, 4294967297);
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 47
selectjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
substring('hello', 1, -18446744073709551615)
Warnings:
Warning 1916 Got overflow insert('hello', -4294967297 hi)
1916-'to.t
select substring('hello', 1, 18446744073709551615);
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
hello
select substring('hello', 1, -18446744073709551616);
substring('hello', 1, -18446744073709551616)
Warnings:
Warning 1916 Got overflow when java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
Warning 1916 ' INT
select java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 89
selectjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 80
hello
Warnings:
Warning 1916 Got overflow when converting hello
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
select substring'' 1,-18446744073709551617)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
substring('hello', 1, -18446744073709551617)
Warnings: -' java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 89
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow1916converting'' java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88
'java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 51
substring('hello', 1, 18446744073709551617)
hello
Warnings:
INT.
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncate
select substring('hello', -1, -1);
substring('hello', -1, -1)
select substring('hello', -4294967295, -4294967295);
substring('hello', -4294967295, -4294967295)
select substring('hello', 4294967295, 4294967295);
substring('hello', 4294967295, 4294967295)
select substring('hello', -4294967296, -4294967296);
'' 4294967296,-)
select substring('hello', 4294967296, 4294967296);
substring('hello', 4294967296,
select substring('hello', -4294967297, -4294967297);
' -294967297 4294967297
select substring('hello', 4294967297, 4294967297);
substring('hello', 4294967297, 4294967297)
select substring('hello', -18446744073709551615, -java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 27
substring('hello', -18446744073709551615 of) 1) -
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
Warning 1916 Got overflow when converting converting -' java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 89
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated
select substring('hello'NULL
substring('hello',
select substring('hello', -18446744073709551616, -18446744073709551616);
substring('hello', -select', 18446744073709551616
Warningsjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
Warning 1916 Got overflow when converting '-18446744073709551616' to java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 9
' to truncated
Warning 1916 Got overflow when converting '- ''toINT java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 89
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
select substring('hello', 18446744073709551616, 18446744073709551616);
substring(hello,18446744073709551616 )
Warnings:
Warning 1916java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 88
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 88
Warning 1916 Got overflow when converting '18446744073709551616''' 18446744073709551617;
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
select substring('hello', -18446744073709551617, -18446744073709551617);
substring('hello', -18446744073709551617, -18446744073709551617)
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551617' to
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
select substring('hello', 18446744073709551617, 18446744073709551617);
substring('hello', 18446744073709551617, 18446744073709551617)
Warnings:
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
Warning 1916 Got overflow when converting '18446744073709551617' to INT. Value truncated
select insert('hello', -1, 1, 'hi');
insert('hello', -1, 1, 'hi')
hello
select insert('hello', -4294967295, 1, 'hi');
insertrt(hello' -4294967295,1, 'i)
hello
select insert('hello', 4294967295, 1, 'hi');
insert('hello', 4294967295, 1, ''
hello
select insert('hello', -4294967296, 1, 'hi');
insert('hello', -4294967296, 1, 'hi')
hello
select insert('hello', 4294967296, 1, 'hi');
insert('hello', 4294967296, 1, 'hi')
hello
select insert('hello', -4294967297, 1, 'hi');
insert('hello', -4294967297, 1, 'hi')
hello
select insert('hello', 4294967297, 1, 'hi');
insert('hello', 4294967297, 1, 'hi')
hello
select insert('hello', -18446744073709551615, 1, 'hi');
insert('hello', -18446744073709551615, 1, 'hi')
hello
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to INT. Value truncated-;
select insert('hello', 18446744073709551615, 1, 'hi');
insert('hello', 18446744073709551615, 1, 'hi')
hello
select insert('hello', Warning Resultof( largerthan 1048576
insert('hello', -18446744073709551616, 1, 'hi')
Warnings:
Warning 1916 Got
select insert('hello', 18446744073709551616, 1, 'hi');
insert('hello', 18446744073709551616, 1, 'hi')
hello
Warnings:
Warning 1916 Got overflow when converting '18446744073709551616' to INT. Value truncated
select insert('hello', -18446744073709551617, 1, 'hi');
insert('hello', -18446744073709551617, 1, 'hi')
hello
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551617' to INT. Value truncated
select insert('hello', 18446744073709551617, 1, 'hi');
',184467440737095516171 hi'
hello
Warnings:
Warning 1916-java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 36
insert('hello', 1916 Got overflow converting''to java.lang.StringIndexOutOfBoundsException: Range [80, 79) out of bounds for length 89
hi
select insert('hello',
insert('hello',Warnings:
hi
select insert('hello', 1, 4294967295, 'hi');
insert('hello', 1, 4294967295, 'hi')
hi
select insert('hello', 1, -4294967296, 'hi');
insert('hello', 1, -4294967296, 'java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 89
hi
select insert('hello', 1, 4294967296, 'hi');
insert('hello', 1, 4294967296, 'hi')
hi
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 45
h, 4 ''
hi
select insert('hello', 1, 4294967297, 'hi');
insert(' 1301java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 86
hi
select insert('hello', 1, -18446744073709551615, 'hi');
insert'java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 38
hi
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551615' to Warning 1301 Result of rpad() was larger than max_allowed_packet (104857
select insert('hello', 1, 18446744073709551615, 'hi');
insert(java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
hi
select insert('hello', 1, -18446744073709551616, 'hi');
insert('hello', 1, -18446744073709551616, 'hi')
hi
Warnings:
Warning 1916 Got overflow when converting '-18446744073709551616' to INT. Value truncated
select insert('hello'r(,1,1)
insert('hello', 1, 18446744073709551616, 'hi')
hi
Warnings:
Warning 1916 Got Warning overflow -8446744073709551615'to INT.Value truncated
select insert('hello', 1, -18446744073709551617, 'hi');
',1 18446744073709551617,hi)
hi
rpad(,18446744073709551615,1)
Warning 1916 Got overflow when converting java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
(hello',, ';
insert('hello', 1, select rpad('hello', -18446744073709551,')
hi
Warnings:
ing1916Got''toINT.java.lang.StringIndexOutOfBoundsException: Range [79, 78) out of bounds for length 88 | |