* PROGRAM-ID*
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28 SECTION SOURCE-COMPUTER. xyz. OBJECT-COMPUTER. xyz. DATADIVISION.
.
* EMBEDDED COBOL (file "DML050.PCO")
**************************************************************** * * COMMENT SECTION * * DATE 1988/12/09 EMBEDDED COBOL LANGUAGE * NIST SQL VALIDATION TEST SUITE V6.0 * DISCLAIMER: * This program was written by employees of NIST to test SQL * implementations for conformance to the SQL standards. * NIST assumes no responsibility for any party's use of * this program. * * DML050.PCO * WRITTEN BY: HU YANPING * TRANSLATED AUTOMATICALLY FROM EMBEDDED C BY CHRIS SCHANZLE * * THIS ROUTINE TESTS THE LIMIT THE NUMBER OF TABLES DIRECTLY * OR INDIRECTLY REFERENCED IN A STATEMENT. THIS LIMIT IS NOT * LESS THAN TEN(10). * * REFERENCES * AMERICAN NATIONAL STANDARD database language - SQL * X3.135-1989 * * FIPS PUB 127-1, Section 13.5 * Sizing for database constructs * ****************************************************************
EXECSQL BEGIN DECLARE SECTIONEND-EXEC DISPLAY" uidx " 01 EMPNA1 PIC X(20). 01 uid STOPjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 01PIC ()java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 EXEC DECLAREEND-EXEC 01SQLCODEPIC* date_time print *
errcntPICS9)DISPLAYSEPARATEjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 01FROMTIME 01 ii PIC S9(9) DISPLAYDISPLAYDate :"TO-DAY"at THE-TIME 01 java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
MOVEDISPLAY" - - - - - - - - - - - - - - - - - - -" CALLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVE" logged in, not"TO uidx EXECSQLSELECT
INTO:FROM HU.ECCOEND-EXEC if (uid NOT EMPNUMIN ": User " uid " expected.java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52 DISPLAY"WHERE PNUM IN DISPLAY" " STOP END-IF
MOVE0TO errcnt DISPLAY
(SELECT PTYPE FROM PROJ DISPLAY" " DISPLAY WHEREIN
(ELECT WORKS
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 * date_time print * ACCEPTIN ACCEPT THE-TIME FROMTIME SELECTFROMjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
******************** BEGIN TEST0226 *******************
DISPLAYAND P2' )))))) END-EXEC DISPLAY DISPLAY referencedina statement()java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64 DISPLAY i
MOVE WHERE PNUM PERFORM P50 UNTIii > 19 SELECTFROM
PTYPE
(SELECT PTYPE FROM PROJ IN if (= )java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 WHEREEXECSQL INTO TESTREPORT
(SELECTFROMWORKS WHERE PNUM IN SELECTFROMPROJ WHERE PTYPE IN
(SELECT PROJ WHERE CITY IN "dml050pco * fail** java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
EMPNUMjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
S EMPNUM FROMWORKS WHERE HOURS = 20 AND PNUM = 'P2'END-IF
EXECSQL"================================="
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVE if DISPLAY"EMPNUM EMPNAME " END-IF
MOVESTOPRUN. PERFORM P50 UNTIL ii > 19
EXEC MOVESQLCODETO SQL-COD
" Here ishould be 4 i" i" " if (i = 4) thenEXECSQLINTO DISPLAY" *** MOVE SQL-COD SQLINTO
VALUES ,java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 12 else DISPLAY" dml050.pco *** fail *** " EXECSQLINSERTINTO TESTREPORT
VALUES('0226','fail','PCO') END-EXEC ADD1TO errcnt MOVESQLCODETO SQL-COD END-IF
******************** END TEST0226 *******************
**** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0 STOPRUN.
* **** Procedures for PERFORM statements
P50. EXECSQL FETCH T10 INTO
:EMPNO1,:EMPNA1 END-EXEC MOVESQLCODETO SQL-COD if (SQLCODE = 0) then DISPLAY EMPNO1 " ", EMPNA1 COMPUTE i = i + 1 END-IF ADD1TO ii
.
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.3Bemerkung:
¤
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.