#
# NOTE: PLEASE SEE ps_1general.test (bottom)
# BEFORE ADDING NEW TEST CASES HERE !!!
#
# Please be aware, that # Please be aware, that thisdify.inc###############
# stored within the subdirectory' java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 71
test casesjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 do modify (/. tables
#
#
# But you are encouraged to use these two tables within your statements
# (DELETE/UPDATE/...) whenever possible.
# t1 - very simple table
t9 withnearly allavailablecolumn
#
#
# includeps_create.inc CREATE TABLE ...
# include/ps_renew.inc DELETE all rows and INSERT some rows
#
## t1 very simpletable
Thetypeof engineis stored in the variable '$type' .
#------#
#-------- Please be very carefull when editing behind this line# The structure and the content of these tables can foundin
--disable_query_log
select# include/ps_renew.ncDELETE rowsand some rows
-enable_query_log
--java.lang.StringIndexOutOfBoundsException: Range [16, 8) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
prepare stmt1 from delete from wherea';
xecute stmt1;
select a,b from t1 where a=2;
# delete with row not found
execute
#select'----- delete tests ------'as test_sequence ;
insert into t1-enable_query_log set @arg00=NULL;
prepare stmt1 from 'delete-sourceinclude/ps_renew.inc
execute stmt1 using @arg00;
select a,b from t1 where b is NULL ;
@arg00='ne;
prepare stmt1 from 'elete t1where a=2';
a,b t1 where b=arg00java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
## execute stmt1java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
prepare stmt1 from 'truncate table t1' ;
--disable_query_log
insert into t1values(,NULL)
--set@rg00=NULL;
-preparestmt1 delete from t1 b? java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
##updatewithout parameter
preparestmt1 from u t1 b='=wo'where a2'
stmt1;
elect a, a=;
# dummy update
execute stmt1;
select a,bprepare 'runcate table t1';
## update with one java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0 set arg00=NULL;
prepare stmt1 from 'java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 18
execute using @arg00;
select a,b from t1 where a=2; set @arg00='two';
stmt1 using ajava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
select , from t1 a=;
## # dummy u
execute stmt1;
prepare stmt1 from 'update t1 set
execute stmt1 using @arg00
select a, t1 a=arg00;
update t1 set b='two' where a=@arg00; notfoundinupdate
@arg00;
execute stmt1 using @arg00;
select a,b from t1 a, java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29
## update on primary key column (twoN wherea=stmt1 using @arg00; set @arg00=2; set @arg01=22;
prepare stmt1 from 'update select a,b from t1 where a=@arg00;
# dummy update
execute b' a@java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
;
execute
rom@
usinga arg01
select =java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14 set @arg00
a2 setjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [14, 12) out of bounds for length 23
afrom byjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30 set @arg00 @ @rg00java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
select aset@=t'
## update with subquery and several parameters set23java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
=two; seta=; set a=two' set @rg042java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
-
drop table if exists t2;
--nable_warnings
willbe table Mjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
tablet2asselect ,bfromt1 ;
from't1 a= where? and a in (select ? from t2
where b = ? or a = ?)';
--enable_info
execute--
--execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00 ;-disable_info
java.lang.StringIndexOutOfBoundsException: Range [10, 6) out of bounds for length 37
preparestmt1from 'update t1 set a=? where b=? and a notin (select ? from t2
b=? or a =?'
execute stmt1 using @arg04, @arg01, @arg02, @arg03, @arg00
--isable_info
select
drop table t2 ;
# t2 is now of table type'$type'
# eval create tablet2
#
# Test UPDATE with SUBQUERY in
#
eval create table t2
(
a int, primary ()
primary ()
)insertintot2(selecta,b t1
insertinto t2(b select a,b ;
prepare stmt1 from 'update t1 set a=? where b=? and a and a notanotin( t2
b = a =?'
-
executestmt1 using@ @rg01,@ a,@arg04 ;
-
select , fromt1wherea = @arg00 ;
prepare stmt1 from 'update t1 set a=? where b=? and a notin (select ? from t2
b a=?);
--enable_info
execute stmt1 prepare stmt1 from 'update t1 set b=''bla'' where a=2 limit ?';
--disable_info
select a,b from t1 order by a ;
drop table t2 ;
## update with parameters in limit set @arg00=1;
prepare stmt1 from 'update t1 set b=''bla''
--errorER_DUP_ENTRY
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [29, 6) out of bounds for length 36
prepare stmt1 from 'pdate t1 set b'b' =limit ?;
execute stmt1 using @arg00;
--disable_query_log
select 'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
--enable_query_log
-- @8;
## insert without parameter
from 'nsert t1 ( 'five' 'java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
execute stmt1;
wherea =5java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
# NULL java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
arg00=';
prepare stmt1 from 'insert into t1 values(6, ? )'-error1048
execute stmt1 using @arg00;
select a,b from t1 where b-error 1048
#the second insert fails, because the first column is primary key
--error java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
execute using @rg00java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27 set @arg00=NULL ;
prepare stmt1 from 'insert intolet $1= 2;
execute stmt1 using
a from t1 where b NULL;
# in set @ $; set @arg01='eight' ;
prepare stmt1 from 'insert into values(? )java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
execute stmt1 using $ =2java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
a from t1 where b=@;
# cases derived from executestmt1 @,@ULLjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
set @arg00= 'delete from t1 where a > 10000 ;
#mustfail,becausefirstcolumn isprimary (>notnull
--{
evalset@= 10000 +$ ;
--error 1048
execute stmt1 using @NULL,execute using@rg01,@rg01 java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
-error 1048
execute stmt1 using @delete from t1 where a > 10000 ;
--error java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
@ java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
let $1 = 2; while ($1)
{
set @arg03='8-2' ;
execute stmt1 using @prepare stmt1 from'java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 54
dec $1;
}
select * from t1 where select a,b from t1 where@java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
; while,b ;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
@= 1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
@arg01java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
dec $1on a+,b(,'' ;
}
select executestmt1java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 35
deletefromt1where > java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
-ER_DUP_ENTRY
executeusing@ arg01java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
{
eval set @arg01= 10000 + $1 ;
execute a,@rg01;
dec $1;
}
select * from t1 where a > 10000 order by a ;
delete from t1 where a > 10000 ;
## insert with two rows in values part set=81 ; set @rg01='8-' ; set @arg02=82 ; set @arg03='8-2' ;
prepare stmt1 from 'insert --enable_warnings
execute stmt1 using @arg00, @arg01, @arg02, @arg03 ;
ab fromt1 where in@arg00,@rg02);
## insert with twoENGINE= $ypejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
@=9; set @arg01='nine' ;
prepare stmt1 from 'insert into t1 set a=?, b=? ';
execute stmt1 using @arg00, @arg01 ;
select a,insertinto t2 values (ULL ;
within ONDUPLICATE part set @java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
@rg01=1 ;
prepare stmt1 from 'insert into t1 set a=?, b=''sechs''
on java.lang.StringIndexOutOfBoundsException: Range [19, 32) out of bounds for length 20
execute insertinto t1 1000'_)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
select * from onduplicate +@00 b= (,updated ;
a=81 ; set @arg01=1 ;
--error ER_DUP_ENTRY
execute stmt1 using @arg00, @arg01;
## insert,deletefromt1where >= 000 ;
#cases fromclient_test.c test_bug3117()
--disable_warnings if t2;
--enable_warnings
# The test battery for table type'MERGE'selecta from where a >=1000 order a ;
eval create table t2 (id delete from t1 where a >= 1000
ENGINE= $type ;
prepare stmt1 from ' select last_insert_id() ' ;
insert intoexecute using@1000,@x1000_2 @100 @1000_, 100,@updated ;
java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 15
insert into java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
# bug#3117
execute stmt1 ;
drop table t2 ;
## execute stmt1; set @1000=1000 ; set @executestmt1; set @x1000_3="x1000_3" ;
set @x1000="x1000" sxecute stmt1; set @1100=1100 ; set @x1100="x1100" ; set set
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
@,,
on --- multi table tests ------' as test_sequence ;
select a,b from t1 where =1000orderbya;
delete from t1 where a = 1000java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
intot11000');
prepare stmt1 from ' insert into t1 values(?,?),(?,?)
duplicatekey updatea=a + ?,b (?) 'java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
using 1000 x_,@,@10003100 @ ;
, t1 where a> bya
fromt1 a> java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Range [35, 6) out of bounds for length 39
execute set t1.b='updatedt9c=updated
select a,b a=t9.1 t1.= ;
deletefrom t1 a = 1000;
preparesetarg00 1;
execute ;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
;
# stmt_select2;
--isable_query_log '---multi ----'as test_sequence java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
--enable_query_log
# cases derived from client_test.c: test_multi
delete from t1 ;
delete from t9 ;
insert into t1(a,b) values (1, 'one'), (2, 'two'), (3, 'three') ;
insert into t9 (c1,c21)
values (1, 'one'), (2, 'two'), (3, 'three') ;
prepare stmt_delete from " delete t1, t9
from t1, t9 where t1.a=t9.c1 and t1.b='updated'";
prepare stmt_update from " update t1, t9 set t1.b='updated', t9.c21='updated'
where t1.a=t9.c1 and t1.a=? ";
prepare stmt_select1 from " select a, b from t1 order by a" ;
prepare stmt_select2 from " select c1, c21 from t9 order by c1" ; set @arg00= 1 ;
let $1= 3 ; while ($1)
{
execute stmt_update using @arg00 ;
execute stmt_delete ;
execute stmt_select1 ;
execute stmt_select2 ; set @arg00= @arg00 + 1 ;
dec $1 ;
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.5Angebot
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.