Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Impressum sp-security.result   Sprache: Lisp

 

   DefinerModifiedCreatedCommentcollation_connectionCollation
connect  con1root,java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 20
use ERRORs functiontest_dbn
createuseruser1le 
grant usage on *ERROR42000:alterFUNCTIONWHEREnamefn"
call java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 18
create database db1_secret;
create procedure db1_secret.dummy() begin 42000:     user 'serb''SELECT ROUTINE_NAME, ROUTINE_DEFINITION from information_schem
ROUTINE_NAME"
;
use db1_secret;
create table t1 (ROUTINE_NAME OUTINE_DEFINITION
insert into t1 values('test', sERROR 42000: execute command denied to user 'userb'drop proceduresptestp1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
createpk
insert into db1_secret.t1 values (user :connectioncon4userc;
show procedure status like 'stamp';
callsptestp1()
db1_secret onproceduresptestp1 touserblocalhost
create drop procedure sptest.p1;
begin
declare v varchar(64);
java.lang.StringIndexOutOfBoundsException: Range [15, 6) out of bounds for length 32
return call sptest.p1(4);
gran  on p1 touserblocalhost
show function ERROR42000:grant touser'serb'@''for  'ptest.1'
Db Name Type Definer  p;
ERROR 42000: alter routine command denied to user connection con1root;
call stamp(1);
select * from t1;
u u java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
test 
root@userblocalhost4
select privileges  .1to @;
db()
test
create user @%;
grantGRANTUSAGE ON**TO`@localhostjava.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
  f .dbto @%;
set sql_mode='';
executeonp .stamp '@%;
grant execute on function db1_secret.Grants  userb@localhost
 sql_mode=default
connect  GRANT  ON  sptest.p1`TO u``ocalhost`
connect  con3anon,localhost,anon,,"*NO-ONE*";SHOW PACKAGE STATUS WHERE nameS ;
connection ;
call connection con1root;
select db1_secret.db();
db1_secret.db()
test
* db1_secret.1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 :SELECT  SELECT , ROUTINE_TYPE ROUTINE_DEFINITION  .  =pk"

create procedure java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 21
ERRORdefault
drop procedure db1_secret.dummy;
disconnect conn1;
drop procedure db1_secret.stamp;
RROR 42000:#  provilege /
drop function db1_secret.db;
RROR42000:alter   denied to user''''for routine 'db1_secretdb'
connection con3anon;
call db1_secret.stamp(3);
select db1_secret.db();
db1_secret.db()
gran   procedure test_db.p  @;
select * from db1_secret.t1;
ERRORgrant    test_db.n  ser@;
create procedure db1_secret.dummy() begin connect ,localhost ,,test;
ERROR 42000: Accessdisconnectcon3userbjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
drop procedure db1_secretd;
ERRORdatabasesptest
drop delete from mysql.user where user='
usera' or user='userb' delete from mysql.procs_priv where user='usera' or user='userb' or user='userc';
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 87
functiondb1_secretd;
ERROR 42000: alter routinetablet1
connectioncon1root
selectselect java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 16
u i
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 6
rootumysqltest/
user1@localhost 2
anon@localhost 3
alter create table t1 (s1 int)//
show procedure status like 'stamp';
 NameType efinerModified  c collation_connectionjava.lang.StringIndexOutOfBoundsException: Range [111, 110) out of bounds for length 120
db1_secretstampPROCEDUREroot@ 0000-- :0000000000000000  latin1latin1_swedish_ciutf8mb4_uca1400_ai_ci
functionsql invoker
show select min(s1vfromt1
Dbconnectuser1localhostuser1,
connection ;
callusemysqltest
selectselectbug_9503)
u i
0
root@localhost 1
user1@localhost 2
anon@connection root
root@grantexecuteonfunctionbug_9503user1@ocalhost
selectconnectionuser1
db()do1;
test
ncon2user1
call disconnectuser1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 commandtouser'@localhost  table `db1_secret```
select db1_secret.dbdrop function ;
00drop database mysqltest;
connectionconnection ;
call disconnect root;
ERROR 42000: INSERT command denied to user '
'connection ;
1_secret.b(;
ERROR ();
current_user()
drop database if exists db2;
create database db2;
root@
create table select (;
insert(
grant root@ocalhost
grant create   ( sql  invokerselect current_user(), user();
create user user2@localhost;
grant usage on db2.* to user2@localhost;
grant select,insert,update,delete,create routine on db2.* to user2@localhost;
grant create routine on db2.* to user1@localhost;
flush privileges;
connection con2user1;
use db2;
create procedure p () insert into t2 values (1);
call p();
ERROR 42000: INSERT command denied to user '
user1'@'localhost' for table `db2`.`t2`
connect  con4user2,localhost,user2,,"*NO-ONE*";
connection con4user2;
use db2;
call p();
ERROR 42000: execute command denied to user '
user2'@'localhost' for routine 'db2.p'
select * from t2;
s1
0
create procedure q () insert into t2 values (2);
call q();
select * from t2;
s1
0
2
connection con1root;
grant usage on procedure db2.q to user2@localhost with grant option;
connection con4user2;
grant executegrant execute bug7291_1( sql  definer call (;
connection con2user1;
use db2grant  on procedure ;
call q();
grant on    user1@ocalhost;
s1
0
2
2
alter procedure p modifies sql data;
 procedure p;
alter connection user1;
ERROR 42000: alter routine command denied tocall bug7291_2()
drop q;
ERRORuser1@ocalhost @ocalhost
connectioncall (;
use ( user(
alter procedure@ocalhost @ocalhost
 procedure ;
disconnectdrop procedure bug7291_1;
drop procedure bug7291_2;
disconnect con4user2;
use test;
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 56
type db name
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [20, 9) out of bounds for length 26
;
drop database database  exists ;
select type,db,name ltest_1;
type createprocedure mysqltest_1.1(java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
delete from mysql
delete create  mysqltest_1@localhost
deletegrant  on .  @localhost;
delete from mysqlp where ='
 ndhost'';
delete from connectn1localhostmysqltest_1,,MASTER_MYPORT$;
ileges;
create mysqltest_1p(;
grant ERROR42000: deniedto user''''forroutine m.1'
create user userb@localhost;
grant usage on *.* to userb@localhost;
createconnect  n2,,mysqltest_1,*-NE*$ASTER_MYPORT$;
grant connection n2;
create call mysqltest_1.1)
create :execute   to  '
mysqltest_1@localhost for  'ysqltest_1.'
create procedure sptest.p1(i int) insert into java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 14
grant insert  t1to usera@ocalhost
grant execute on drop database mysqltest_1java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 26
show grants for usera@localhost;
Grants for usera@localhost
GRANT USAGE ON *.* TO `usera`@`localhost`
GRANT INSERT ON `test`.`t1` TO `usera`@`localhost`
GRANT EXECUTE ON PROCEDURE `sptest`.`p1` TO `usera`@`localhost`
grant execute on procedure sptest.p1 to userc@localhost with grant option;
show grants for userc@localhost;
Grants for userc@localhost
GRANT USAGE ON *.* TO `userc`@`localhost`
GRANT EXECUTE ON PROCEDURE `sptest`.`p1` TO `userc`@`localhost` WITH GRANT OPTION
connect  con2usera,localhost,usera,,"*NO-ONE*";
connect  con3userb,localhost,userb,,"*NO-ONE*";
connect  con4userc,localhost,userc,,"*NO-ONE*";
connection con2usera;
call sptest.p1(1);
grant execute on procedure sptest.p1 to userb@localhost;
ERROR 42000: grant command denied to user 'Procedure sql_mode Create Procedure character_se   
procedure .1;
ERROR 42000: alter routine command SHOW  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 38

call sptest.p1(2);
ERROR 42000: execute command denied to user 'userb'@'localhost'test_dbsprootl# java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 95
java.lang.StringIndexOutOfBoundsException: Range [13, 5) out of bounds for length 56
 latin1l utf8mb4_uca1400_ai_cijava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 94
dropSHOW   FINITIONfrom .whereROUTINE_NAME=fn"

ERROR 42000: alter java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 94
connection con4userc;
call show create  3 latin1 latin1_swedish_
grant 
drop disconnectjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
pk,java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 193
connection DROP USER mysqltest_2@localhost;
call sptest.p1(4 ATABASEFUNCTION pkf() RETURNINT;
grant execute on java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 16
IFjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34
CREA java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 198
connectionCREATE;
select * GRANT ALL PRIVILEGES ON java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 11
u i
usera@localhost 1
userc@connect  mysqltest_2_con,java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 5
userb@localhost 4
grant allEND
show grants CREATEPROCEDUREbug13198_p1
Grants for userc ;
USAGE  .  userc``java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 11
GRANTRETURN1;
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 32
Grants )
GRANT USAGE ON *.* TO `userb`@`bug13198_f1(java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
GRANT EXECUTE ON PROCEDUREjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
connection con4userc;
revoke alljava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [14, 5) out of bounds for length 41
disconnect con4userc;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [13, 4) out of bounds for length 21
deletedelete from ROUTINE_NAMEjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
FUNCTIpkf INT;
flush privileges;
drop tablejava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 16
ootlocalhostroot,;
connection root;
tion if bug_9503;

create DROP mysqltest
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 15
table( java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
create ELECT,INSERT ,DELETE java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 21
grant FUNCTIONpkhf java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 20
grant selectUserp java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 11
create function  java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 18
select
java.lang.StringIndexOutOfBoundsException: Range [24, 7) out of bounds for length 37
 ;
use java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 9
select bug_9503();
ERROR 42000:
DECLARE a;
grantjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SELECT a;
do 1;
use test;
java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 57
 ,java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
test
drop  mysqltest
disconnect java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
revokejava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 54
connection con1root;
 java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
selects  
current_user()
root@localhost
select user(connect  ,localhostjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 57
user()
rootjava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 31
createjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 54
create procedure bug7291_1 () sql security definer call bug7291_0();
procedurebug7291_2 (sql securityinvoker (;
grant execute on procedure bug7291_0 to  ocalhost user, ;
grant execute on procedure bug7291_1
grant execute on procedure java.lang.StringIndexOutOfBoundsException: Range [25, 22) out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 33
connection user1;
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 17
current_user,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 97
user1@localhost user1@disconnect mysqltest_2_con;

current_user() user()
 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
ERRORH 
drop procedure bug7291_1;
TIONjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 37
DROP
disconnect user1;
SELECTdisconnect con1root;
drop user user1@localhost;
drop;
create java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 9
.p1)
begin
select 1 java.lang.StringIndexOutOfBoundsException: Range [9, 4) out of bounds for length 23
endDROP  42000
create user mysqltest_1@localhost;
* java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 36
connectDROPIFjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [13, 10) out of bounds for length 14
p1)
ERROR 42000: execute command deniedjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 111
disconnect n1;
connect  n2ljava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [13, 10) out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
ERRORjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
###levelFUNCTIONINT java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 72
drop procedure CREATE  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
CREATE USER java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 35
revoke  n**fromjava.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 31
drop Grants for CREATE mysqltest_u1l FUNCTIONf_evil( INT
SQL
create function bug12812() create function bug12812() returns`ljava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
begin
SET b=(ELECTconnect conn1, localhost, 
end;
|
 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [19, 6) out of bounds for length 55
connect  connect  conn1, localhost,  STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_java.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 143
testbug12812)
SELECT)
CREATE VIEWERROR42000:  deniedtouser mysqltest_u1@localhost'SHOW STATUS HEREname=p
SELECT  @a,@b;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [26, 10) out of bounds for length 27
test_db PROCEDUREcommand touser '
ysqltest_u1@ocalhost'for  e``java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 28

grantCALL (f_eviljava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 32
create user user2_bug14834@localhost identified 42000 SELECT   to  mysqltest_u1test```
grant all on `db\SELECT a b
createjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 5
grant all on `ELECT   v1;java.lang.StringIndexOutOfBoundsException: Index 158 out of bounds for length 158
connect  user1_bug14834,localhost,ERROR 42000: SELECT command denied to user '
mysqltest_u1'@'localhost 1java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 60
call mysqltest_u1@ocalhost NULL
java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 49
 java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 13
call p_bug14834)
user() ROUTINE_NAME java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 22
connect  DROPcreate packagetest_dbpk
call p_bug14834();
user() Package sql_mode Create DROP  t1;
java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 1
pk PIPES_A,ORACLEjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 193
disconnect user1_bug14834;
disconnect user2_bug14834;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
;
drop user CREATE TABLE`ENDutf8mb4_uca1400_ai_ci
drop user INSERT INTO ` VALUES,2;
CREATE  `_Test(  java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 102
create pkjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 198
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
create  ';
create GRANT SELECT ON TABLE `TestTab` TO '
tester';
java.lang.StringIndexOutOfBoundsException: Range [16, 6) out of bounds for length 29
sql security definer
java.lang.StringIndexOutOfBoundsException: Range [16, 4) out of bounds for length 20
create procedure bug14533_2()
java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 20
select *from ;
grant execute on procedurejava.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
grant  on  java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 5
grant  pkv;
connect  user_bug14533,localhost,user_bug14533,,test;
call db_bug14533.bug14533_1();
 Null  
id int(11) YES  NULL 
db_bug14533.ug14533_2)
id
desc db_bug14533.t1;
ERROR 42000: SELECT command denied to user '
user_bug14533;
select * from db_bug14533.(  AS
ERROR 42000: SELECT command 
connection default;

drop user user_bug14533@localhost;
drop database java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 4
connection con1root;
DROP java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
CREATE java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50
CREATE  java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 34
Definer java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 120
CREATE USER mysqltest_2root# java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 93
GRANT SET USER ON *.*  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 111
GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_2Rjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
,java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58
connect  FUNCTION pkf() RETURN INT;
connection mysqltest_2_con;
USE mysqltest;
CREATE PROCEDURE wl2897_p1() SELECT (
CREATE FUNCTIONjava.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
connection 
USE mysqltest;
pkv=;
ERROR 42000: Access java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 19
CREATE DEFINER= 
ERROR 42000: Access java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 4
connection mysqltest_2_con;
use mysqltest;
CREATE DEFINERjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 18
Warnings:
Note C )
CREATE DEFINER='a @ ;
Warnings:
Note 1446 The user specified as a definer ('
a @ b @ c'@'java.lang.StringIndexOutOfBoundsException: Range [0, 65) out of bounds for length 28
connection con1root;
);
SHOW CREATE PROCEDURE wl2897_p1;
Procedure sql_mode Create Procedure java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [100, 99) out of bounds for length 164
SELECT 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW CREATE PROCEDURE wl2897_p3;
Procedure sql_mode Create Procedure character_set_client
 java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 162
3 
SHOW CREATE FUNCTION wl2897_f1;
Function sql_mode#
wl2897_f1 STRICT_TRANS_TABLES,# "  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 62
RETURN #
SHOW CREATE FUNCTION wl2897_f3;
Function sql_mode Create Function character_set_clientonsptoljava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 68
java.lang.StringIndexOutOfBoundsException: Range [56, 9) out of bounds for length 177
 
disconnect mysqltest_1_con;
disconnect mysqltest_2_con;
  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
DROP USERjava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 33
DROP DATABASE mysqltest;
connection con1root;
DROP DATABASE `java.lang.StringIndexOutOfBoundsException: Range [126, 125) out of bounds for length 143
CREATE DATABASE mysqltest;
CREATE USERDbName Definer Modified Created Comment character_set_clientcollation_connectionDatabaseCollation
GRANT ALL PRIVILEGES ON mysqltest.* TO test_db sp PROCEDURE root@localhost # # DEFINER 
CREATE USER mysqltest_2@localhost  information_schemaRwhereROUTINE_NAME"
"
GRANT ALL PRIVILEGES ON mysqltest.* TO mysqltest_2@java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 31
connect  mysqltest_1_con,localhost,mysqltest_1,,mysqltest;
connect  mysqltest_2_con,localhost,mysqltest_2,,mysqltestERROR 42000: execute command denied to user 'user'@'localhost' for routine 'test_db.sp'
connection mysqltest_1_con;
USE mysqltest;
PROCEDURE)
SELECT 1;
 bug13198_f1)RETURNS
RETURN 1;
fn,,O_AUTO_CREATE_USER D=r```FUNCTION`n(  nt11)
1
1
SELECT bug13198_f1();RETURNlatin1 
bug13198_f1()
1
 ysqltest_2_con
USE mysqltest;
CALL Db Name Type DefModifiedCreatedSecurity_typeCommentcharacter_set_client 
1
1
SELECT bug13198_f1();
bug13198_f1()
1
connection con1root;
disconnectm;
DROP USER mysqltest_1@localhost;
connection =fn;
USE mysqltest;
CALL bug13198_p1R java.lang.StringIndexOutOfBoundsException: Range [39, 26) out of bounds for length 70
#Routine-"  +-
SELECT bug13198_f1();
ERROR HY000java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 20
disconnect mysqltest_2_con;
DROP USER mysqltest_2@localhost;
DROP DATABASE mysqltest;
GRANT USAGE ON *.* TO user19857@localhost IDENTIFIED BY 'meow';
, UPDATE,,DELETE,CREATE ROUTINE, ALTER ROUTINEON test. TO
user19857@localhost;
SELECT Host,User,connect conn1,localhost,user,, test;
Host User plugin authentication_string
localhostshow create package test_db.pk;
connect  mysqltest_2_con,localhost,user19857,meow,test;
connection mysqltest_2_con;
Package java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 92
CREATE PROCEDURE  PIPES_AS_CONCAT,ANSI_QUOTES,NO_FIELD_OPTIONS,java.lang.StringIndexOutOfBoundsException: Range [144, 143) out of bounds for length 193
BEGIN
DECLARE a INT;
 pkf( RETURN INT;
SELECT a;
END //
PROCEDURE pkp();
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
sp19857 STRICT_TRANS_TABLES,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    DETERMINISTIC
BEGIN
DECLARE a INT;
SET a=1;
SELECT a;
 utf8mb4_uca1400_ai_ci
disconnect mysqltest_2_con;
connect  mysqltest_2_conSPACKAGE   name="

connection mysqltest_2_con;
NameDefinerModifiedCreated    
connection con1root;
disconnect mysqltest_2_con;
,PluginAuthentication_string FROMmysqluser WHERE User=user19857';
Host User plugin authentication_string
localhost user19857 mysql_native_password *82SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from information_schema ="k"

DROP ROUTINE_NROUTINE_TYPE
disconnect con1root;
connection pk
use test;
FUNCTION(java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26
DROP VIEW IF EXISTS v1;
DROP FUNCTION IF EXISTS java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 22
ERROR commanddeniedtouser''l'  routine test_dbjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
DROP FUNCTION IF EXISTS ERROR 42000: execute command d user '
user@localhost  routine'.'
DELETE FROM mysql.user WHERE connection ;
DELETE FROM mysql.db WHERE user LIKEdisconnectc;
DELETE FROM mysql.tables_priv WHERE user LIKE 'mysqltest\_%';
DELETE SETsql_modeORACLE
FLUSH PRIVILEGES;
CREATE revoke howroutinepackagetest_dbpkfromuserl;
  con_tester,localhost,tester
CREATE CONNECT con_tester_denied,## Routine-level "show create routine- BODY
CREATE USER mysqltest_u1@localhost;
GRANT EXECUTE ON test.* TO mysqltest_u1@
CREATE DEFINER=mysqltest_u1@localhost FUNCTION grant show create routine on package body test_db.pk to user@localhost;
SQL SECURITY INVOKER
BEGIN
SET @ash
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
RETURN @b;
END|
CREATE SQL SECURITY INVOKER VIEW v1 AS SELECT f_evil();
connect  conn1, localhost, mysqltest_u1,,;
 COUNT(*  t1
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost' for tablejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SELECT f_evil
ERROR 42000: SELECT command denied to user 'mysqltest_u1'@'localhost'
SELECT @a, @
@a @b
SELECT f_Test();
SELECT f_suid(f_evil());
ERROR 42000: SELECT command denied to user 'mysqltest_u1'f_Test)
SELECT @a, @b;
@a @b
mysqltest_u1@localhost NULL
CALL p_suid(f_evil())java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
0  commanddenied  user'ysqltest_u1'@localhost' for table `test``1`
SELECT @a,SELECT *FROM TestTab;
SELECT `_Test`);
mysqltest_u1SELECT)RETURNINTAjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
SELECT F_TEST(;
ERROR SELECT `f_T`)
SELECT @a, `f_Test_denied()
@a @b
mysqltest_u1@localhost NULL
disconnect conn1;
connection default;
DROP VIEW v1;
DROP FUNCTION java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 17
DROPconnection defaultjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
DROP PROCEDURE p_suid;
SHOWPACKAGE WHERE ="k"
DROP TABLE t1;
#
# Bug# :Privilegesfstored   iffunction name 
# is mixed case
#
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 23
USE B48872;
CREATE TABLE `TestTab` (id INT);
INSERT INTO `TestTab` VALUES (1)SE testjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
CREATE FUNCTION `f_Test`() java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 19
FUNCTION f_Test_denied`) RETURNS INTRETURN123;
CREATE USER #
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
 java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
EXECUTE ON FUNCTIONjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 8
123

id
1
2
java.lang.StringIndexOutOfBoundsException: Range [36, 9) out of bounds for length 18
CONNECTcon_tester_denied,ocalhostTester,,48872;
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 45
connect  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 53
id
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
F )RETURNINTAS
SELECT `f_Test`();
st`)
123
SELECT `F_TEST`ETURNpkhf
F_EST`()
123
SELECT f_Test();
f_Test(#routine exists or not.
123
SELECT java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 7
F_TEST()
123
connection con_tester_denied;
SELECT * call test_db.pk.pkp();
;
SELECT `F_TEST`();
SELECT f_Test();
F_TEST)
SELECT `f_Test_denied`();
`f_Test_denied`()
123
SELECT `F_TEST_DENIED`();
`drop user bug5706user@ocalhost;
123
drop  databasejava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1

disconnect con_tester_denied;
TABLE TestTab`
 `f_Test`;
show ;
Grants for foo@local_ost
DROP USER 'tester';
DROP USER 'Tester';
DROP DATABASE B48872;
#
# End of 5.GRANT USAGE  *.*TO `foo`@ljava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 4
#
#
# Test for bug#57061 "
User CREATEROUTINE ON foodb`*TO`oo`@local_ost`
# its existence."
#
database exists mysqltest_db;
create database mysqltest_db;
show grants;
create user bug57061_user@localhost;
create GRANT SELECT, CREATE ROUTINE ON `test`.END
create procedure mysqltest_db.p1() java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 29
connect  conn1,GRANT EXECUTE,ALTERjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
# Attempt to drop routine on which user doesn
# should result in the same drop user foo@local\_ost`;
# routine exists or not.
 functioniexistsmysqltest_db._does_not_existjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
 42000:alterroutine deniedjava.lang.StringIndexOutOfBoundsException: Range [41, 1) out of bounds for length 1
RETURN (;
ERROR 42000:alter routine command denied to user END;
drop function if exists java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 5
ERROR 42000E
drop procedure if exists mysqltest_db.p1;
ERROR 42000: alter routine command denied java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 28
connection default;
disconnect conn1;
drop user bug57061_user@localhost;
drop show create procedure test_db.sp;
#
# java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 67
#              DEFINITIONspNjava.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 143
#
DROP DATABASE IF select 1 latin1 latin1_swedi
CREATE DATABASE db1;
db1.1(SELECT1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 45
GRANT SELECT(db) test_dbuserlocalhost##DEFINER java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 95
, user2,,"
*O-NE*;
#java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 32
SHOWCREATEPROCEDUREdb1p1;
ERROR 42000: PROCEDURE p1 fn STRICT_TRANS_TABLES,ERROR_F,NO_AUTO_CREATE_USERNO_ENGINE_SUBSTITUTIONCREATEDEFINER`@localhost FUNCTION``)RETURNS11
# CheckRETURN 1latin1latin1_swedish_ciutf8mb4_uca1400_ai_ci
connection default;
SHOW STATUSWHEREname""
connection con2;
# Db NameDefinerModifiedCreatedSecurity_typeCommentcharacter_set_clientjava.lang.StringIndexOutOfBoundsException: Range [111, 101) out of bounds for length 120
PROCEDUREp;
Procedure sql_mode Create Procedure , ROUTINE_DEFINITIONfrominformation_schemaROUTINESwhere
p1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO="fn";
SELECT 1 latin1 latin1_swedish_ci java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 31
connection
disconnect con2;
DROP USER user2@localhost;
DROP DATABASE db1;
create user foo@local_ost;
create user foo@`local\_ost` identified via mysql_old_password using '0123456789ABCDEF';
grant select,create routine on test.* to foo@local_ost;
create database foodb;
grant create routine on foodb.* to foo@local_ost;
connect con1,localhost,foo;
select user(), current_user();
user() current_user()
foo@localhost foo@local_ost
show grants;
Grants for foo@local_ost
GRANT USAGE ON *.* TO `foo`@`local_ost`
GRANT SELECT, CREATE ROUTINE ON `test`.* TO `foo`@`local_ost`
GRANT CREATE ROUTINE ON `foodb`.* TO `foo`@`local_ost`
create procedure fooproc() select 'i am fooproc';
show grants;
Grants for foo@local_ost
GRANT USAGE ON *.* TO `foo`@`local_ost`
GRANT SELECT, CREATE ROUTINE ON `test`.* TO `foo`@`local_ost`
GRANT CREATE ROUTINE ON `foodb`.* TO `foo`@`local_ost`
GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE `test`.`fooproc` TO `foo`@`local_ost`
disconnect con1;
connection default;
drop user foo@local_ost;
drop user foo@`local\_ost`;
drop procedure fooproc;
drop database foodb;
#
# Test for bug#12602983 - User without privilege on routine can discover
# its java.lang.StringIndexOutOfBoundsException: Range [102, 12) out of bounds for length 102
#" )"
#
drop database ifjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
create database mysqltest_db;;
create function mysqltest_db.f1() returns int returnFUNCTION pkhf( RETURN  AS
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
# Create user with pkv;
create user bug12602983_user@localhost;
grant create view on test.* to java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 18
connect  conn1, localhostRETURNpkhf()
# Attempt to execute routine on # Attempt to execute routine on which
# should result in  STATUS WHERE ame=;
# routine exists or not.DbName DefinerModifiedCreatedSecurity_type character_set_clientDatabase
select mysqltest_db.f_does_not_existtpk  @localhost##DEFINER  latin1_swedish_ci
ERROR 42000: execute command denied to user 'bug12602983_user'@'localhost' for routine 'mysqltest_db.f_does_not_exist'
call mysqltest_db.p_does_not_exist();
ERROR 42000: execute command denied to user 'bug12602983_user'@'localhostSELECT ,ROUTINE_TYPE ROUTINE_DEFINITIONfrom information_schemaROUTINES  ="k
select mysqltest_db.f1();
ERROR 42000: java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
call mysqltest_db.p1();
ERROR 42000: execute command pk PACKAGE BODY AS
create view bug12602983_v1 as select java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 11
00:execute command  to user bug12602983_user'
'localhost' for routine 'mysqltest_db.f_does_not_exist'
create view bug12602983_v1 as select mysqltest_db.f1();
ERROR 42000: execute command denied to user 'bug12602983_user'@'localhostSELECT pkv  DUAL;
ection 
disconnect conn1;
drop user @localhost;
drop database mysqltest_db;
createjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
grant all privileges on *.* to u1@localhost with grant option;
connect u1, localhost, u1;
set password=password(foobar'
;
create procedure sp1()java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
 grants;
Grants for u1@localhost
GRANT ALL PRIVILEGES ON *.*  ( RETURN 
BEGIN
show grants;
Grants for u1@localhost
GRANT ALL
GRANT EXECUTE
drop procedure sp1;
disconnect u1;
connection default;
drop user u1@localhost;
#
# MDEV-13396 Unexpected "alter routine comand defined" during CREATE OR REPLACE java.lang.StringIndexOutOfBoundsException: Range [0, 89) out of bounds for length 19
#
CREATE # End of 11.3 t
CREATE PROCEDURE u1.p1() BEGIN SELECT 1; END; $$
CREATE FUNCTION u1.f1() RETURNS INT BEGIN RETURNexecuteon  .toulocalhost
CREATE USER u1@grant execute on procedure test.p1 to r;
GRANT CREATE ROUTINE ON u1.* TO u1@localhost;
 FUNCTION.1 TO @localhost;
GRANT ALTER ROUTINE ON PROCEDURE u1.p1 TO u1@java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 24
connect  
CREATE OR REPLACE FUNCTION f1() java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 2
CREATE OR REPLACE PROCEDURE p1() java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 12
sql_mode SERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
connection default;
DROP  u1;
DROP USER u1@localhost;
java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 61
#
#Endof2
#
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
# MDEV-20366 Server crashes in get_current_user java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 25
#
)SETjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 67
CALL p1();
ERROR 28000: Can't find any matching row in the user ERROR 28000: Can't find any matching row in the user table
DROP PROCEDURE p1;
 USER foo@localhost;
CREATE  PROCEDURE p1() SET PASSWORD FORdisconnect ;
CALL java.lang.StringIndexOutOfBoundsException: Range [18, 10) out of bounds for length 19
DROP PROCEDUREuser @ocalhost;
DROP USER foojava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
#
# End of 10.5 tests
#
#
# MDEV-29852 SIGSEGV in mysql_create_routine or is_acl_user on 2nd execution, ASAN use-after-poison in get_current_user (sql_acl.cc)
#
set @cmd:="create definer=u function f(i int) returns char binary reads sql data return concat (1,i)";
prepare s from @cmd;
execute s;
Warnings:
Note 1446 The user specified as a definer ('
u'@'%') does not exist
execute s;
ERROR 42000: FUNCTION f already exists
drop function f;
#
# End of 10.6 tests
#
#
# MDEV-29167: new db-level SHOW CREATE ROUTINE privilege
#
###
### SHOW-Like commad test
###
SET @save_sql_mode=@@sql_mode;
#
### Prepare functions for the test and SHOW-like by root
#
create database test_db;
use test_db;
create procedure test_db.sp() select 1;
show create procedure test_db.sp;
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
sp STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` PROCEDURE `sp`()
select 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PROCEDURE STATUS WHERE name="sp";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db sp PROCEDURE root@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="sp";
ROUTINE_NAME ROUTINE_DEFINITION
sp select 1
CREATE FUNCTION test_db.fn() RETURNS INT RETURN 1;
show create function test_db.fn;
Function sql_mode Create Function character_set_client collation_connection Database Collation
fn STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root`@`localhost` FUNCTION `fn`() RETURNS int(11)
RETURN 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW FUNCTION STATUS WHERE name="fn";
Db Name Type Definer Modified Created Db Name Type Definer Modified Created Security_typer able
DROP PROCEDURE p1;
SELECT ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="fn";
ROUTINE_NAME ROUTINE_DEFINITION
fn RETURN 1
SET sql_mode=ORACLE;
CREATE PACKAGE test_db.pk AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END;
$$
CREATE PACKAGE BODY test_db.pk AS
pkv INT:=1;
PROCEDURE pkhp) AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION # End of 10.5
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END;
$$
SET sql_mode=@save_sql_mode;
show create package test_db.pk;
Package sql_mode Create Package character_set_client collation_connection Database Collation
pk PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ORACLE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS,NO_AUTO_CREATE_USER,SIMULTANEOUS_ASSIGNMENT CREATE DEFINER="root"@"localhost" PACKAGE "pk" AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
show create package body test_db.pk;
Package body sql_mode Create Package Body java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 1
 ,IGNORE_SPACE,N,N,,  =root@localhost"
""AS
pkv INT:=1;s
pkhp)AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
END;
PROCEDURE pkp() AS
BEGIN
CALLjava.lang.NullPointerException

FUNCTION pkfjava.lang.NullPointerException
BEGIN
RETURN pkhf();
END;

pkv:=2;
END create database test_db;
SHOW PACKAGE STATUS WHERE name="pk";
DbName DefinerModified   
test_db pk PACKAGE createproceduretest_dbsp( 1
  from.where""
ROUTINE_NAME ROUTINE_TYPE  CreateProcedure Database
pk sp STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`root1latin1 
 ( INT
Db NameType Modified Comment   Collation
END
P BODYAS
SELECTROUTINE_NAME,ROUTINE_DEFINITIONfrominformation_schemaROUTINES whereROUTINE_NAME"p"
 pkhp( AS
BEGIN
SELECT  test_dbfn;
END  Functionjava.lang.StringIndexOutOfBoundsException: Range [84, 75) out of bounds for length 94
FUNCTION pkhf() RETURN INTfn,NO_AUTO_CREATE_USER CREATEDEFINER=```(java.lang.StringIndexOutOfBoundsException: Range [158, 159) out of bounds for length 158
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() pkv INT:1java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
BEGIN
CALL pkhp();
END;
FUNCTION PROCEDURE kp( java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
BEGIN
RETURN;
END;
BEGIN
pkv=;
END
use test;
##java.lang.NullPointerException
### Pre-"SHOW-CREATE-java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 26
###
#
### Rights on mysql.proc
#
create user pk PIPES_AS_CONCANjava.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 198
grant all privileges on mysql.*INT:1;
 all  test.  user@java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 49
connect conn1, java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
 .;
Procedure sql_mode Create ;
sp STRICT_TRANS_TABLES,pkp)
select 1 latin1 latin1_swedish_ci()java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
SHOW PROCEDURE STATUS WHERE java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 5
Dbjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
sp       
SELECT ROUTINE_NAME from SHOW java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 36
ROUTINE_NAME
sp
showtest_dbpk ljava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 93
 cjava.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 94
fn STRICT_TRANS_TABLES, java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 13
RETURN 1pkp)
SHOW FUNCTION AS
   java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 120
test_db fn FUNCTIONjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 19
SELECT  STRICT_TRANS_TABLESjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 143
ROUTINE_NAME="
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
ROUTINE_NAME ROUTINE_DEFINITION
fn RETURN 1
show create package test_db.pk;
Packagesp  rootlocalhost #    
pk,I,RACLENO_KEY_OPTIONS,,,O_AUTO_CREATE_USER,  "@"  pk java.lang.StringIndexOutOfBoundsException: Range [193, 194) out of bounds for length 193
FUNCTION pkf() RETURNcreate f;
PROCEDUREFunction ql_mode     Database Collation
END  
RETURN   
PackageSHOWFUNCTIONWHERE=;
DbNameTypeModifiedCreatedSecurity_type Collation
pkv INTtest_dbfnFUNCTIONrootlocalhostjava.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 94
PROCEDURE ROUTINE_NAME="fn";
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION 1
BEGIN
RETURN pkv;
END;
 () AS
pkPIPES_AS_CONCATANSI_QUOTESIGNORE_SPACEORACLE,NO_TABLE_OPTIONSNO_FIELD_OPTIONSNO_AUTO_CREATE_USERSIMULTANEOUS_ASSIGNMENTCREATE DEFINER"""java.lang.StringIndexOutOfBoundsException: Range [177, 176) out of bounds for length 193
CALL pkhp();
END;
)  
BEGIN
(;
END;
BEGIN
pkv:=2;
END latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PACKAGE STATUS WHERE name="
pk";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db pk PACKAGE root@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="
pk";
ROUTINE_NAME ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END
pk PACKAGE BODY AS
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END
connection default;
disconnect conn1;
revoke all privileges on mysql.* from user@localhost;
#
### No privileges
#
connect conn1, localhost, user, , test;
show create procedure test_db.sp;
ERROR 42000: PROCEDURE sp does not exist
SHOW PROCEDURE STATUS WHERE name="
sp";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
.ROUTINES sp
pkv INT:=1;
show create function test_db.fn;
ERROR 42000: FUNCTION fn does not exist
SHOW FUNCTION STATUS WHERE name="
fn";
Db Name Type Definer Modified Created Security_type Comment character_set_client java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 19
SELECT ROUTINE_NAME, java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 4
ROUTINE_NAME="

RETURN(
create package test_db.k
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
latin1 utf8mb4_uca1400_ai_ci
SHOW PACKAGE STATUS =pk;
Db    Security_type  DatabaseCollation
Db test_db  PACKAGErootlocalhost#    
 ROUTINE_NAME ROUTINE_TYPE   . whereROUTINE_NAME=pk;
ROUTINE_NAME ROUTINE_DEFINITION
connection;
disconnectc
java.lang.NullPointerException
#END
java.lang.NullPointerException
grant execute on procedure java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 11
grant SELECT pkv FROM ;
connect conn1, localhost, user, , test;
show create procedure test_db.sp;
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
sp STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION NULL latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PROCEDURE STATUS WHERE name="sp";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db sp PROCEDURE root@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME from information_schema.ROUTINES where ROUTINE_NAME="sp";
ROUTINE_NAME
sp
call test_db.sp();
1
1
show createEND
Function sql_mode Create java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
SHOW FUNCTION STATUSjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 28
Db Name
test_db fn pkv=;
SELECT ROUTINE_NAME, ;
";

fn NULL
select##  privileges
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
1
connectiondefault
disconnect conn1;
revoke execute on  test_dbsp @java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 59
revoke executerevoke execute on     
#fromROUTINESwhere""
### Execute provilege fnjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.NullPointerException
 java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
grant execute on package java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 18
show.;
 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
show create package test_db.pk;
Packagesql_mode Package character_set_client collation_connectionDatabaseCollation
pk SHOW PACKAGE STATUS WHERE name="pk";
show create package body test_db.pk;
ERROR 42000: PACKAGE BODY pk does not exist
 =";
Db Name Type Definer Modified Created SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION,java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 111
test_db pk ;
SELECT ROUTINE_NAME, ROUTINE_TYPE, c;
ROUTINE_NAME ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE NULL
call test_db.pk.grant java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 56
@'localhost'
routinepkjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
ERROR 42000: execute ProcedureCreatejava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 96
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 19
disconnect conn1;
SET sql_mode=ORACLE;
revoke execute on package test_db.pk from user@localhost;
SET sql_mode=@save_sql_mode;
java.lang.NullPointerException
  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 44
java.lang.NullPointerException
SETjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
grant execute on packagejava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 94
SET sql_mode=@save_sql_mode;
connect conn1,namefn;
show create packagepk
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 38
 packagebody test_dbpkjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
Package bodyROUTINE_DEFINITION
 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 195
SHOW PACKAGE STATUS WHERE name="pk";
te.(
SELECT ROUTINE_NAME, java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 19
ROUTINE_NAMEexecutejava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 59
pk
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
pkv
2
select test_db.pk.pkf();
test_db.pk.pkf()
2
connection default;
conn1java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
SET sql_mode=ORACLE;
executeon bodytest_dbpk l
show packagebodyjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 36

## PACKAGESTATUS WHEREname="k"
java.lang.NullPointerException
grant alter routine on procedure test_db.sp to user@localhost;
java.lang.StringIndexOutOfBoundsException: Range [42, 5) out of bounds for length 61
conn1   
java.lang.StringIndexOutOfBoundsException: Range [21, 4) out of bounds for length 33
callpkpkp(
Ejava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 144
SHOW PROCEDURE select test_db.pk.pkf();
Db Name Type Definer  42000: execute command user'''java.lang.StringIndexOutOfBoundsException: Range [66, 61) out of bounds for length 87
sp @java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 95
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 77
ROUTINE_NAME

 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
Functiontest_db)
fn STRICT_TRANS_TABLES,java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 1
 ""java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
Db Name Type Definerjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 78
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 1
ROUTINE_NAME ROUTINE_DEFINITION
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 62
defaultjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
disconnect conn1;
revoke alter Procedure java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 96
routine  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 64
#
# java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 50
#
SET sql_mode=ORACLE;
grant alter show create function java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 32
SET sql_mode=@save_sql_mode;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [52, 7) out of bounds for length 92
pk,ANSI_QUOTESIGNORE_SPACE,NO_KEY_OPTIONS,NO_TABLE_OPTIONSNO_FIELD_OPTIONS,O_AUTO_CREATE_USER,IMULTANEOUS_ASSIGNMENT NULLlatin1  utf8mb4_uca1400_ai_ci
showcreate package body test_dbpk;
ERROR 42000: PACKAGE BODY pk does not exist
HOW    ";
Db Name Type Definer Modified java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 31
test_db connection default;
SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 17
ROUTINE_NAME ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE NULL
connection default;
SELECT ,java.lang.StringIndexOutOfBoundsException: Range [58, 53) out of bounds for length 111
SETjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
revoke revoke alter routine on package test_db.pk from user@localhost;
SET sql_mode=java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
#
### Alter routine provilege java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 1
#
SET sql_mode=ORACLE;
grant alter routine on package connect conn1,localhost,user,,test;
SET sql_mode=@save_sql_mode;
   java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 39
show create package test_db.pk;
ERROR 42000java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
  java.lang.StringIndexOutOfBoundsException: Range [39, 14) out of bounds for length 39
  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 102
pk java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 143
SHOW PACKAGE STATUS WHERE name="pk";
Db Name1java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 55
SELECTjava.lang.StringIndexOutOfBoundsException: Range [111, 19) out of bounds for length 111
ROUTINE_NAME ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE BODY NULL
SELECT java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 97
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [158, 3) out of bounds for length 158
revoke alter   Definerjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 120
@java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
#
###java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 31
###
#
# java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 37

won** localhost
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 31
Grants for user@localhostjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 36
GRANT SHOW CREATE ROUTINE ON *.* TO `user`@`localhost`
ON``*TOu``java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
connectjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 19
 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 33
sql_modejava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 96
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
select 1 PROCEDURE )AS
SHOW PROCEDURE STATUS WHERE name="sp";
Db Name
@#  latin1_swedish_ci 
SELECT ROUTINE_NAME, ENDjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
ROUTINE_NAME latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
sp select 1
show  function
java.lang.StringIndexOutOfBoundsException: Range [24, 8) out of bounds for length 94
fn test_db pkjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 93
RETURN 1  java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 111
SHOW FUNCTION STATUS WHERE ROUTINE_NAME ROUTINE_DEFINITION
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 120
test_db fn FUNCTIONjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 16
SELECT pk PACKAGE BODYjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [29, 13) out of bounds for length 29
RETURN1
show create package test_db.pk;
Package ;
pk PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ORACLEENDjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
FUNCTION pkf())
PROCEDURE pkp();
END =;
show create package body java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 19
body Create  ody character_set_client collation_connection Database Collation
pk PIPES_AS_CONCAT,ANSI_QUOTES"but DBtest
pkv#
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 18
BEGIN
CALL pkhp();

SELECT java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 97
ROUTI 
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 14
END;
BEGIN
pkv:=2; Modifiedjava.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 120
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 50
SHOW PACKAGE STATUS WHERE name java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
Db Name 42000 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 43
test_db pk PACKAGE root@localhostDbSjava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 120
 java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 111
ROUTINE_NAME ROUTINE_TYPE ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE AS
FUNCTION pkf() java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 17
PROCEDURE pkp();
END
 BODY AS
pkv#
PROCEDURE pkhp() AS
BEGIN
SELECT  FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN

ENDGRAN`.u``java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 54
PROCEDURE pkp() AS

CALL pkhp();

FUNCTION pkf()1java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 55
NameTypejava.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 120
RETURNsp localhost## java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 95
END;
BEGIN
pkv:Rjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 31
END
connection default;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 17

#
### DB-SHOW FUNCTIOname""
#
grant ## java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 94
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 31
Grants for user@localhost
GRANT USAGE ON *.* TO `user`@`java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
 PRIVILEGESON test`.TO u@`
GRANT SHOW pk IORACLENO_KEY_OPTIONSNO_TABLE_OPTIONSNO_FIELD_OPTIONSNO_AUTO_CREATE_USERSIMULTANEOUS_ASSIGNMENTCREATEDEFINER"@localhost pk"
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 39
howcreate .java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ERROR 42000: PROCEDURE sp does show create package body test_db.p
java.lang.StringIndexOutOfBoundsException: Range [21, 4) out of bounds for length 38
 Type Modified  Security_typeComment java.lang.StringIndexOutOfBoundsException: Range [102, 101) out of bounds for length 120
ROUTINE_NAME from.java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 97
ROUTINE_NAME ROUTINE_DEFINITION
show create function test_db.fn; FROMDUAL;
ERROR 42000: ;
SHOW FUNCTION pkhf() RETURN INT AS
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
SELECT java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 11
ROUTINE_NAMEpkp(AS
show create 
ERROR 42000: PACKAGE pk does not 
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 36
ERROR 42000: PACKAGE BODY pk does not exist
SHOW PACKAGE STATUS WHERE name=java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 4
Db pkv:2;
SELECTlatin1 
  
connection ;
disconnect test_dbp root@##DEFINER  
revoke show SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="pk";
#
##DB- "how create "test
#
grant show create routine on test_db.* FUNCTION (  ;
show grants for user@localhost;
Grants forpk  ODY AS
GRANTpkv INT:;
GRANT ALL PRIVILEGESON test.  `@localhostjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
GRANT SHOW CREATEEND;
connect conn1, localhost, user, , test;
show create procedureFUNCTION )RETURN  AS
Procedure sql_mode Create Procedure java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 11
sp PROCEDURE pkp()AS
select 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PROCEDURE STATUS CALL pkhp(;
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db sp PROCEDURE root@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINESFUNCTION pkf( INTAS
ROUTINE_NAME ROUTINE_DEFINITION
sp select 1
show create function test_db.BEGIN
Function sql_mode Create Function java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 3
n,N DEFINER=root@localhost `n( int(11)
RETURN 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW FUNCTION STATUS WHERE name="fn"# Routinelevel"createroutine" and FUNCTION
Dbjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
test_db fn FUNCTION root@localhost # # DEFINER  latin1 latin1_swedish_ci  showcreate user@java.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
SELECTshow procedure .p;
ROUTINE_NAME Procedure sql_mode character_set_client  Database Collation
fn RETURN 1
show create package test_db.pk;
Package sql_mode Create Package sp java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 143
,java.lang.StringIndexOutOfBoundsException: Range [83, 82) out of bounds for length 193
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
Db Name Definer  Created  omment collation_connection Database 
showcreatepackage test_db.pk;
Package body sql_mode show;
 PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ORACLE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS,NO_AUTO_CREATE_USER,SIMULTANEOUS_ASSIGNMENT CREATE DEFINER="root"@"localhost" PACKAGE java.lang.StringIndexOutOfBoundsException: Index 190 out of bounds for length 158
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM WHERE";
END;
FUNCTION pkhf() RETURN INT AS
test_ FUNCTIONroot   java.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 94
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 28
BEGIN
RETURN pkhf();

BEGIN
2
 
SHOW PACKAGE  ";
 java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 120
test_db pk PACKAGE root@localhostjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 111
SELECT java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
ROUTINE_NAME FUNCTION pkf() RETURN INT;
pk PACKAGE AS
FUNCTION pkf() java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
 pkp();
END
pk PACKAGEjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 87
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 28
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() ASjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 71
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=sjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 36
END
connection default;
disconnect conn1;
revoke show create routine java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 19
#
FUNCTION pkhf() AS
#
onsptouserljava.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 68
grant show create routine on function test_dbjava.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
connect conn1, java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
show create procedure test_db.sp;
Procedure RETURN pkhf();
sp STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION;
select 1 latin1 java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [80, 2) out of bounds for length 120
test_db sp SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="pk";
SELECTSELECT java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
sp select 1
call test_db.sp();
ERROR 42000: execute command java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 17
show create function test_db.fn;
Function sql_mode Create Function java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 28
fn java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
SHOW FUNCTION STATUS java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 18
Db Name TypeCALL pkhp)java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
test_db fn FUNCTION root@
SELECT java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 4
ROUTINE_NAME="fn";pkv:2
ROUTINE_NAME ROUTINE_DEFINITION
fn RETURN 1
select test_db.fn();
ERROR java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 45
connection default;
disconnect conn1;
revoke show create routine on procedure test_db.sp from user@localhost;
revoke show create routine on function test_db.fn from user@localhost;
#
### Routine-""
#
SET sql_mode=ORACLE;
grant show createl   java.lang.StringIndexOutOfBoundsException: Range [49, 47) out of bounds for length 95
SET sql_mode=@save_sql_mode;
connect conn1, java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 2
show create package test_dbjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 94
Createjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 92
,java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 193
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 26
SHOW FUNCTIONWHERE";
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 50
.;
ERROR java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 78
PACKAGEname"k;
Db Name Type Definer Modified Created java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 31
test_db pkpkjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 111
ROUTINE_NAME =@java.lang.StringIndexOutOfBoundsException: Range [177, 176) out of bounds for length 193
pk PACKAGE AS;
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();

callbodyjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 102
42000 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 87
select test_db.pk.pkf();
ERROR 42000: executejava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 19
connection default;
disconnect conn1;
SET )java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 29
revoke
SET sql_mode=@save_sql_mode;
#
### Routine-level "java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 12
#
SET sql_mode=ORACLE;
grant show create routine on 
SET sql_mode=@save_sql_mode;
connect conn1, java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 7
show create package SHOW PACKAGE STATUS WHERE""
 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
show create package body test_db.pk;
Package body sql_mode Create Package Body character_set_client collation_connection Database Collation
pk java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 44
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN ENDjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION
BEGIN
RETURN connection java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
BEGIN
pkv:=2;
 
SHOW PACKAGE java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
Db Name Type Definer Modified Created Security_type Comment 
SELECT ROUTINE_NAME, ROUTINE_TYPE, java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 14
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [15, 2) out of bounds for length 18
grantto localhost;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END
call test_db.pk.pkp();
ERROR 42000: execute command denied to user '
user'@'localhost' for routine 'test_db.pk'
select test_db.pk.pkf();
ERROR 42000: execute command denied to user '
user'@'localhost' for routine 'test_db.pk'
connection default;
disconnect conn1;
SET sql_mode=ORACLE;
revoke show create routine on package body test_db.pk from user@localhost;
SET sql_mode=@save_sql_mode;
drop user user@localhost;
drop database test_db;
#
### Check owner only rights
#
create user user@localhost;
create database test_db;
use test_db;
create definer=user@localhost procedure test_db.sp() select 1;
CREATE definer=user@localhost FUNCTION test_db.fn() RETURNS INT RETURN 1;
SET sql_mode=ORACLE;
CREATE definer=user@localhost PACKAGE test_db.pk AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END;
$$
CREATE definer=user@localhost PACKAGE BODY test_db.pk AS
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END;
$$
SET sql_mode=@save_sql_mode;
use test;
connect conn1, localhost, user, , "*NO-ONE*";
show create procedure test_db.sp;
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
sp STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`user`@`localhost` PROCEDURE `sp`()
select 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PROCEDURE STATUS WHERE name="sp";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db sp PROCEDURE user@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME from information_schema.ROUTINES where ROUTINE_NAME="sp";
ROUTINE_NAME
sp
show create function test_db.fn;
Function sql_mode Create Function character_set_client collation_connection Database Collation
fn STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION CREATE DEFINER=`user`@`localhost` FUNCTION `fn`() RETURNS int(11)
RETURN 1 latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW FUNCTION STATUS WHERE name="fn";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db fn FUNCTION user@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME, ROUTINE_DEFINITION from information_schema.ROUTINES where
ROUTINE_NAME="fn";
ROUTINE_NAME ROUTINE_DEFINITION
fn RETURN 1
show create package test_db.pk;
Package sql_mode Create Package character_set_client collation_connection Database Collation
pk PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ORACLE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS,NO_AUTO_CREATE_USER,SIMULTANEOUS_ASSIGNMENT CREATE DEFINER="user"@"localhost" PACKAGE "pk" AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
show create package body test_db.pk;
Package body sql_mode Create Package Body character_set_client collation_connection Database Collation
pk PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ORACLE,NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS,NO_AUTO_CREATE_USER,SIMULTANEOUS_ASSIGNMENT CREATE DEFINER="user"@"localhost" PACKAGE BODY "pk" AS
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SHOW PACKAGE STATUS WHERE name="pk";
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
test_db pk PACKAGE user@localhost # # DEFINER  latin1 latin1_swedish_ci utf8mb4_uca1400_ai_ci
SELECT ROUTINE_NAME, ROUTINE_TYPE, ROUTINE_DEFINITION from information_schema.ROUTINES where ROUTINE_NAME="pk";
ROUTINE_NAME ROUTINE_TYPE ROUTINE_DEFINITION
pk PACKAGE AS
FUNCTION pkf() RETURN INT;
PROCEDURE pkp();
END
pk PACKAGE BODY AS
pkv INT:=1;
PROCEDURE pkhp() AS
BEGIN
SELECT pkv FROM DUAL;
END;
FUNCTION pkhf() RETURN INT AS
BEGIN
RETURN pkv;
END;
PROCEDURE pkp() AS
BEGIN
CALL pkhp();
END;
FUNCTION pkf() RETURN INT AS
BEGIN
RETURN pkhf();
END;
BEGIN
pkv:=2;
END
connection default;
disconnect conn1;
drop user user@localhost;
drop database test_db;
# End of 11.3 tests
#
# MDEV-39288 SHOW CREATE ROUTINE does not apply to roles
#
create user u@localhost;
create role r;
create procedure p1() select 10 as ten;
grant execute on procedure test.p1 to u@localhost;
grant execute on procedure test.p1 to r;
grant r to u@localhost;
connect u, localhost, u;
call p1();
ten
10
show create procedure p1;
Procedure p1
sql_mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Create Procedure NULL
character_set_client latin1
collation_connection latin1_swedish_ci
Database Collation utf8mb4_uca1400_ai_ci
set role r;
Show create procedure p1;
Procedure p1
sql_mode STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Create Procedure NULL
character_set_client latin1
collation_connection latin1_swedish_ci
Database Collation utf8mb4_uca1400_ai_ci
disconnect u;
connection default;
drop role r;
drop user u@localhost;
drop procedure p1;
# End of 11.4 tests
#
# MDEV-37054: Implement INFORMATION_SCHEMA.PARAMETERS.PARAMETER_DEFAULT column
#
CREATE PROCEDURE proc(a INT DEFAULT 1, b INT DEFAULT (a+1), c INT DEFAULT POW(2,b))
BEGIN
SELECT a, b, c FROM DUAL;
END;
//
CREATE FUNCTION func(a INT DEFAULT 8, b INT DEFAULT LOG2(a)) RETURNS INT
BEGIN
RETURN b;
END;
//
CREATE USER user@localhost;
GRANT EXECUTE ON PROCEDURE test.proc TO user@localhost;
GRANT EXECUTE ON FUNCTION test.func TO user@localhost;
CONNECT conn1, localhost, user, , test;
SELECT specific_schema, specific_name, parameter_name, parameter_default FROM information_schema.PARAMETERS WHERE SPECIFIC_NAME = '
proc';
specific_schema specific_name parameter_name parameter_default
test proc a NULL
test proc b NULL
test proc c NULL
SELECT specific_schema, specific_name, parameter_name, parameter_default FROM information_schema.PARAMETERS WHERE SPECIFIC_NAME = '
func';
specific_schema specific_name parameter_name parameter_default
test func NULL NULL
test func a NULL
test func b NULL
connection default;
disconnect conn1;
GRANT SHOW CREATE ROUTINE ON PROCEDURE test.proc TO user@localhost;
GRANT SHOW CREATE ROUTINE ON FUNCTION test.func TO user@localhost;
CONNECT conn1, localhost, user, , test;
SELECT specific_schema, specific_name, parameter_name, parameter_default FROM information_schema.PARAMETERS WHERE SPECIFIC_NAME = '
proc';
specific_schema specific_name parameter_name parameter_default
test proc a 1
test proc b (`a` + 1)
test proc c pow(2,`b`)
SELECT specific_schema, specific_name, parameter_name, parameter_default FROM information_schema.PARAMETERS WHERE SPECIFIC_NAME = '
func';
specific_schema specific_name parameter_name parameter_default
test func NULL NULL
test func a 8
test func b log2(`a`)
connection default;
disconnect conn1;
DROP USER user@localhost;
DROP PROCEDURE proc;
DROP FUNCTION func;
# End of 12.2 tests
set @@global.collation_server=@save_collation_server;

Messung
CHZG
1009710098

¤ Dauer der Verarbeitung: 0.64 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,187,984
#Domains=976,528