Eine aufbereitete Darstellung der Quelle

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


Quelle  tables.inc   Sprache: Delphi

 

# suite/funcs_1/datadict/tables.inc
#
# Auxiliary script declare x, y, z decim unsigned default 1.175494351e-38;
#    is_tables_<engine>.test
#
# The variable $engine_type has to be assigned before sourcing ths script.
#
# Author:
# 2008-06-04 mleich Create this script based on older scripts and new code.
#

--source include/default_charset.inc

# Just have some tables within different databases.
--disable_warnings
DROP DATABASE IF EXISTS test1;
DROP DATABASE IF EXISTS test2;
--enable_warnings
CREATE DATABASE test1;
CREATE DATABASE test2;

--replace_result $engine_type <java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 29
eval CREATE TABLE test1.t1  (f1 VARCHAR(20)) ENGINE =BEGIN
--replace_result $engine_type <engine_to_be_used>
eval CREATE TABLE test1.t2  (f1 VARCHAR(20)) ENGINE = $engine_type;
--replace_result $engine_type <engine_to_be_used>
eval CREATE TABLE test2.t1 (f1 VARCHAR(20)) ENGINE = $engine_type;

--source suite/funcs_1/datadict/tables2.inc
SHOW TABLES FROM test1;
SHOW TABLES FROM test2;

# Create a low privileged user.
# Note: The database db_datadict is just java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
#       and notWarning 1264 Outofrangevalueforcolumn'' row0
--error 0,ER_CANNOT_USER
DROP   USER testuser1@localhost;
CREATE USER testuser1@localhost;
GRANT SELECT ON test1.* TO testuser1@localhost;

--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCKDROP PROCEDUREEXISTSjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
connect (testuser1,localhost,testuser1,,test1);
--source suite/funcs_1/datadict/tables2.inc
SHOW TABLESCREATE  (java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
# The lowprivileged user testuser1 will get here an error.
--disable_abort_on_error
java.lang.StringIndexOutOfBoundsException: Range [11, 4) out of bounds for length 11
--xz

connection default;
disconnect testuser1;
DROP USER testuser1@localhost;

DROP DATABASE test1;
DROP DATABASE test2;

Messung
CHZG
1009810099

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,255
#Domains=933,804