File: dml037.sql

package info (click to toggle)
derby 10.14.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 78,896 kB
  • sloc: java: 691,930; sql: 42,686; xml: 20,511; sh: 3,373; sed: 96; makefile: 60
file content (43 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
-- MODULE DML037

-- SQL Test Suite, V6.0, Interactive SQL, dml037.sql
-- 59-byte ID
-- TEd Version #

-- AUTHORIZATION HU
   set schema HU;

--O   SELECT USER FROM HU.ECCO;
  VALUES USER;
-- RERUN if USER value does not match preceding AUTHORIZATION comment

-- date_time print

-- NO_TEST:0202 Host variable names same as column name!

-- Testing host identifier

-- ***********************************************************

-- TEST:0234 SQL-style comments with SQL statements!
-- OPTIONAL TEST

    DELETE  -- we empty the table  
        FROM TEXT240;

     INSERT INTO TEXT240   -- This is the test for the rules  
            VALUES         -- for the placement            
       ('SQL-STYLE COMMENTS') -- of
                              -- SQL-style comments 
      ;
-- PASS:0234 If 1 row is inserted?

    SELECT * 
            FROM TEXT240;
-- PASS:0234 If TEXXT = 'SQL-STYLE COMMENTS'?
     
-- restore
     ROLLBACK WORK;

-- END TEST >>> 0234 <<< END TEST
-- *************************************************////END-OF-MODULE