File: dml037.out

package info (click to toggle)
derby 10.14.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 79,056 kB
  • sloc: java: 691,961; sql: 42,686; xml: 20,512; sh: 3,373; sed: 96; makefile: 60
file content (52 lines) | stat: -rw-r--r-- 2,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
44
45
46
47
48
49
50
51
52
ij> -- MODULE DML037

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

-- AUTHORIZATION HU
   set schema HU;
0 rows inserted/updated/deleted
ij> --O   SELECT USER FROM HU.ECCO;
  VALUES USER;
1                                                                                                                               
--------------------------------------------------------------------------------------------------------------------------------
HU                                                                                                                              
ij> -- 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;
0 rows inserted/updated/deleted
WARNING 02000: No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table.
ij> INSERT INTO TEXT240   -- This is the test for the rules  
            VALUES         -- for the placement            
       ('SQL-STYLE COMMENTS') -- of
                              -- SQL-style comments 
      ;
1 row inserted/updated/deleted
ij> -- PASS:0234 If 1 row is inserted?

    SELECT * 
            FROM TEXT240;
TEXXT                                                                                                                           
--------------------------------------------------------------------------------------------------------------------------------
SQL-STYLE COMMENTS                                                                                                             &
ij> -- PASS:0234 If TEXXT = 'SQL-STYLE COMMENTS'?
     
-- restore
     ROLLBACK WORK;
ij> -- END TEST >>> 0234 <<< END TEST
-- *************************************************////END-OF-MODULE
;
ij>