java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31 PROGRAM-ID. DML080. ENVIRONMENTDIVISION. CONFIGURATIONSECTION. SOURCE-COMPUTER. xyz. OBJECT-COMPUTER. xyz. DATADIVISION. WORKING-STORAGESECTION.
* EMBEDDED COBOL (file "DML080.PCO")
**************************************************************** * * COMMENT SECTION * * DATE 1992/06/08 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. * * DML080.PCO * WRITTEN BY: DAVID W. FLATER * * THIS ROUTINE TESTS THE DATA MANIPULATION LANGUAGE FOR SQL. * * REFERENCES * AMERICAN NATIONAL STANDARD database language - SQL * X3.135-1989 * * SECTION 7.3 Procedure * ****************************************************************
EXECSQL BEGIN EXEC SQL END DECLARE PICX()java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 01 uidx PIC 01 ii PIC S9(9 LEADINGjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54 EXECSQLEND DECLARE SECTIONEND-EXEC
MOVE"SCHANZLE"TO uid CALL"AUTHID"USING uid MOVEnotlogged, uidx EXECSQLSELECT USER INTO :uidx FROM HU.ECCO END-EXEC MOVESQLCODETO SQL-COD if (uid NOT = java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 23 DISPLAYE:" uid ".User" "
- " connected" STOPRUN END-IF MOVE0TO errcnt DISPLAY "SQL Test Suite, V6.0, Embedded COBOL, dml080.pco"
"59-byte ID" DISPLAY"TEd Version #" *date_time print ACCEPT TO-DAY FROMDATE ACCEPT THE-TIME FROMTIME
: " TO-DAY"athhmmssff:java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
******************** BEGIN TEST0462 ******************* MOVEDISPLAY"Date YYMMDD "TO-DAY hhmmssff"THE-TIME
*WHERE clause not satisfied - no data MOVE0TOSQLCODE DISPLAY*WHERE clause not satisfied - no data EXECSQLDELETEFROM HU.STAFF WHERE EMPNUMDISPLAY" FROM .STAFFWHERE '7'" MOVESQLCODETO SQL-COD DISPLAY"SQLCODE should be 100; its value if (SQLCODENOT = 100) then MOVE0TO flag
flag
*DELETE all rows from empty table - no data (on second DELETE) DISPLAY" " DISPLAY" *DELETE all rows from empty table - no data (on second DELETE) SQLDELETEFROMHUSTAFF MOVESQLCODETO SQL-COD
DISPLAY "SQLCODE java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 if (SQLCODE NOT = 0) then
MOVE 0 TOjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
END-IF
DISPLAY " "
DISPLAY "DELETE FROM HU.STAFF;"" "
FROM.END
MOVE SQLCODE TO SQL-COD
DISPLAY "SQLCODE should be 100; its SQLCODE SQL-OD
S NOT100
MOVE 0 TO flag
END-IF
java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
* - data
DISPLAY " "
MOVE 0 TO java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 25
DISPLAY "DELETE FROM DISPLAY "DELETE FROM HU EMPNUMEMPNUM ='1
EXEC SQL DELETE FROM HU.STAFF WHERE EMPNUM = 'E1' END- TOSQL
MOVE SQLCODE TO SQL-COD " 100; its is", - if (SQLCODE NOT = 100) then
TO flag
END-IF
EXECSQL ROLLBACKWORKENDEXEC
MOVE SQLCODE/* This Source Code Form is subject to the terms of the Mozilla Public
1)then DISPLAY=1)then EXECSQLINSERTINTOHU.TESTREPORT (0462'pass'PCO)END-EXEC -COD else DISPLAY"java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 57 EXECSQLINSERTINTOHU.java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 19 java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 36 MOVESQL- COMPUTEerrcnt=errcnt+1 END-IF
==========="
EXECCOMMITEND- MOVESQLCODE*HEREnot-data ************java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
*****BEGINTEST0463******** MOVE1TOflag
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 3 DISPLAYSQLCODE=100: "SQLCODE should be 0; itsvalueis",SQLjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 DISPLAY"ReferenceX3data)2]<packet.(3<") Y"------java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
data MOVE0TO ".SETCITY='" intkey_size:KeySize(java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 19 EXEC.STAFF NOWHEREjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 (NS_FAILEDres)){ MOVESQLCODETO unsigned charm; ifSQLCODE=100)then 0 ENDIF
(erver_write_keykey_sizesrtp_block)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 25 ("*java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 java.lang.StringIndexOutOfBoundsException: Range [13, 9) out of bounds for length 17 SETGRADE=11END-EXEC MOVESQLCODETOSQL-COD DISPLAYjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 if(SQLCODEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 MOVE0TOMMITWORK-java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 END-IF
*all emptytablenoaDELETE intoutLen; MOVE100TOSQLCODE DISPLAY"DELETEFROMHU.STAFF;o; java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0 MOVESQLCODEelsejava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 "SQLCODEshouldbe0value,SQL-COD <.()[]""<.ata([1<" MOVE0TOflag END-IF DISPLAY"" DISPLAY"UPDATEHU.STAFFSETCITY='NOWHERE';" EXECSQLUPDATEHU.STAFFSETCITY='NOWHERE'END-EXEC MOVESQLCODETOSQL-COD DISPLAY"SQLCODEshouldbe100;itsvalueis",SQL-COD if(SQLCODENOT=100)then MOVE0TOflag END-IF
¤ 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.