*Copyright 1996 National Computing Centre Limited, *and Computer Logic R&D S.A *on behalf of the CTS5 SQL2 Project. *All rights reserved. *The CTS5 SQL2 Project is sponsored by the European Community. * *The National Computing Centre Limited and Computer Logic R&D *have given permission to NIST to distribute this program *over the World Wide Web in order to promote SQL standards. *DISCLAIMER: *This program was reviewed by employees of NIST for *conformance to the SQL standards. *NIST assumes no responsibility for any party's use of *this program.
**************************************************************** * * COMMENT SECTION * * SQL VALIDATION TEST SUITE V6.0 * * YTS791.PCO * WRITTEN BY: Susan Watters * TRANSLATED AUTOMATICALLY FROM EMBEDDED C BY CHRIS SCHANZLE * * GRANT USAGE on character set, WITH GRANT OPTION * * * REFERENCES * 11.28 <character set definition> * 11.36 <grant statement> * 10.3 <privileges> * 11.3 <table definition> * 11.4 <column definition> * 16.4 <set session authorization identifier statement> * F#45 Character set definition * F#25 Domain definition * F#32 User authorisation * F#3 Basic schema manipulation * F#2 Basic information schema * * DATE LAST ALTERED 02.01.96 CTS5 Hand-over Test * * QA Status: Full FC * * Revised by DWF 1996-03-22 * Added rollback after authid * Fixed charset usage ****************************************************************
01 java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18 05 01 uid PIC X 01 errcnt PIC S9(9) DISPLAYSIGNLEADINGSEPARATE. *date_time declaration 01 TO-DAY * DATE LAST ALTERED 02.01.96 CTS5 Hand-over Test 01 THE-TIME PIC9(8). 01 flag 01norm1 S99SEPARATE.
MOVES9(9) SQLCODE ()java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34 "USING uid
din, TOuidx EXECSQLDIVISION. MOVESQLCODETO SQL-COD EXECSECTIONEND-EXEC MOVE CALL "AUTHID" uid if( NOT=uidx then DISPLAY01SQL java.lang.StringIndexOutOfBoundsException: Range [38, 33) out of bounds for length 68
- STOPRUN END-IF 0TO
DISPLAY"SQL ERROR " java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 72
"59-byte ID" DISPLAY"TEd Version #" *date_time print ACCEPTTO-DAY DATE ACCEPT java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 MOVE""
******************** BEGIN TEST7525 ******************* MOVE1TO9java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
DISPLAY" DISPLAY "Date run YYMMDD: " TO-DAYjava.lang.StringIndexOutOfBoundsException: Range [0, 59) out of bounds for length 36 DISPLAY" java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 41
DISPLAY java.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 72
< java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 23 DISPLAY" 11. END-IF DISPLAY" 10.3 "11. DISPLAY" " .3<java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 23
. c " DISPLAY" 16.4 <set run java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 71
- " java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27 DISPLAY" GRANTonjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 34 DISPLAY" F#32 DISPLAY " 11.28 <cha "F# java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 DISPLAY"11 tablejava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
COMPUTESQLCODE = -1 MOVE"xxxxx""java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
ajava.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 70 DISPLAY
- " OPTION" DISPLAY"java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
*initialise variables MOVETO
DISPLAY " F#2 Basic information schema"
DISPLAY"GRANT " COMMIT END-EXEC MOVESQLCODETODISPLAYT java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 70
CHCKOK DISPLAY" "
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 EXECMOVE""TO MOVESQLCODETO SQL-COD
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27 DISPLAY
*create table using character set
"java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 36 DISPLAY" TBCCHARACTER(3)CHARACTER MOVE EXECSQL CREATE *insert value into table TO java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 27 DISPLAYSQLCODETO
"java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34 EXEC MOVESQLCODETO SQL-COD PERFORM CHCKOKCHCKOK DISPLAY" "
*insert value into table
DISPLAY"INSERT java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
WORK SQLCODESQL-COD PERFORM CHCKOK DISPLAY" "
DISPLAY"java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
* : TB TO DISPLAY java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 DISPLAY" EXEC SQL COMMIT WORK if (ggtMOVEjava.lang.StringIndexOutOfBoundsException: Range [29, 25) out of bounds for length 36 MOVEjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 25
C WORK EXECSQLCOMMIT WORK END-EXEC MOVESQLCODETO
DISPLAY" "
*ensure database is left in a consistent state DISPLAYDISPLAY"yts791 DISPLAY ; MOVEjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 36 PERFORM MOVE SQLCODEjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 MOVE java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
DISPLAY"COMMIT WORK;" EXEC "============ PERFORM
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
if (flag =
.pco ** * java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57 EXECSQLINSERTINTOSTOP. EXECjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVE DISPLAY "SQLCODE 0value , else DISPLAY"java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 57 EXECSQLINSERTINTO CTS1.TESTREPORT
VALUES(' java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 53 MOVESQLCODEEND-IF COMPUTE DISPLAY "========= END-IF
DISPLAY"===================== ******************** END TEST7525 ********************END-IF
EXEC java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 ******************** END TEST7525 ********************
**** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0 STOP.
* **** Procedures for PERFORM statements
*Test SQLCODE and SQLSTATE for normal completion.
CHCKOK. DISPLAYSshould0 java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 66 MOVE flag PERFORM NOSUBCLASS THRU EXIT-NOSUBCLASS if (SQLCODENOT = (ORMSQ="" NORMSQPERFORM 14 1 >36 MOVE
if then
*Changed NORMSQ means *subclasses with 000. This replacement equates valid END-IF
.
NOSUBCLASS.
*This routine replaces valid implementation-defined *subclasses with 000. This replacement equates valid *implementation-defined subclasses with the 000 value *expected by the test case; otherwise the test will fail. *After calling NOSUBCLASS, NORMSQ will be tested * SQLSTATE will be printed.
MOVE SQLSTATE TO NORMSQ
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17 *subclass begins in position 3 of char array NORMSQ *valid subclass begins with 5-9, I-Z, end of ALPNUM table PERFORMVARYING norm2 if (NORMSQX(norm1) = ALPNUM(norm2)) then MOVE"0"TO NORMSQX(norm1) END-IF END-PERFORM
*Quit if NORMSQ is unchanged. Subclass is not impl.-def. *Changed NORMSQ means implementation-defined subclass, *so proceed to zero it out, if valid (0-9,A-Z) ifMOVE"TO java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39 GOTO EXIT-NOSUBCLASS END-IF
MOVE4TO *examining position 4 of char array NORMSQ *valid characters are 0-9, A-Z PERFORM*examining position 5 of char array NORMSQ
( orm2)then MOVE"0"TO NORMSQX(norm1) END-IF END-PERFORM
MOVE5TO *valid characters are 0-9, A-Z *examining position 5 of char array NORMSQ PERFORMVARYING norm2 FROM1BY1UNTIL norm2 > 36 if (NORMSQX(norm1) = ALPNUM(norm2)) then MOVE"0"TO NORMSQX(norm1) END-IF END-PERFORM
*implementation-defined subclasses are allowed for warnings *(class = 01). These equate to successful completion *SQLSTATE values of 00000. *Reference SQL-92 4.28 SQL-transactions, paragraph 2
if (NORMSQX(1) = "0"AND NORMSQX(2) = "1") then MOVE"0"TO NORMSQX(2) END-IF
.
EXIT-NOSUBCLASS. EXIT.
Messung V0.5 in Prozent
¤ 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.0.9Bemerkung:
¤
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.