* Standard COBOL (file "DML041.SCO") calling SQL * procedures in file "DML041.MCO"
**************************************************************** * * COMMENT SECTION * * DATE 1988/10/25 STANDARD 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. * * DML041.SCO * WRITTEN BY: HU YANPING * TRANSLATED AUTOMATICALLY FROM EMBEDDED COBOL BY CHRIS SCHANZLE * * THIS ROUTINE TESTS THE ENFORCEMENT OF * CHECK CONSTRAINTS IN NESTED VIEWS * * REFERENCES * AMERICAN NATIONAL STANDARD database language - SQL * X3.135-1989 * * 8.7 <insert statement>, 8.11 & 8.12 <update statements> * ****************************************************************
if (SQLCODENOT = 0) then DISPLAY"Fail: Will not insert outside of view 2 def. (no
- " check)," DISPLAY"Satisfies constraint of underlying view (with
- " check opt)" MOVE 0 TO ifpass END-IF
*NOTE: The standard is not completely clear which of these * options is intended, so this code does not result in * pass or fail. *Either of the two following results is acceptable: *This is just an informational sub-test if (SQLCODE = 0) then DISPLAY"Inserts row which is:" DISPLAY" Inside view 1 def. (with check)" DISPLAY" Outside view 2 def. (no check)" DISPLAY" Inside view 3 def. (with check)" DISPLAY"Outer check option does not imply inner check
- " options" else DISPLAY"Will not insert row which is:" DISPLAY" Inside view 1 def. (with check)" DISPLAY" Outside view 2 def. (no check)" DISPLAY" Inside view 3 def. (with check)" DISPLAY"Outer check option implies inner check options" END-IF
**** TESTER MAY CHOOSE TO INSERT CODE FOR errcnt > 0 STOPRUN.
* **** Procedures for PERFORM statements
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.1Bemerkung:
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-04-26)
¤
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.