db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r126534 - in incubator/derby/code/trunk: . java/testing java/testing/org/apache/derbyTesting/functionTests/master java/testing/org/apache/derbyTesting/functionTests/master/j9_13 java/testing/org/apache/derbyTesting/functionTests/suites java/testing/org/apache/derbyTesting/functionTests/tests/nist
Date Wed, 26 Jan 2005 19:42:12 GMT
Author: kmarsden
Date: Wed Jan 26 11:42:09 2005
New Revision: 126534

URL: http://svn.apache.org/viewcvs?view=rev&rev=126534
Log:
commit contributing nist suite (patchy by myrna@golux..com)

Added:
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/basetab.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr002.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr003.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr004.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr005.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr006.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr007.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr027.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr030.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml001.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml004.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml005.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml008.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml009.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml010.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml011.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml012.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml013.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml014.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml015.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml016.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml018.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml019.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml020.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml021.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml022.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml023.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml024.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml025.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml026.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml027.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml029.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml033.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml034.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml035.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml037.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml038.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml039.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml042.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml043.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml044.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml045.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml046.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml047.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml049.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml050.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml051.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml052.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml053.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml055.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml056.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml057.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml058.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml059.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml060.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml061.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml065.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml068.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml069.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml070.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml073.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml075.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml076.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml079.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml080.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml081.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml082.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml083.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml085.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml087.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml090.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml091.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml099.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml104.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml106.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml108.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml112.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml114.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml119.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml130.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml132.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml134.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml141.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml144.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml147.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml148.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml149.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml155.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml158.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml160.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml162.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml165.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml168.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml170.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml173.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml174.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml177.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml178.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml179.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml181.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml182.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/flattab.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml099.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml119.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema1.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema4.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema5.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema8.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/sdl012.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5sch2.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5tab.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_schem10.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts701.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts729.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts730.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts731.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts740.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts742.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts752.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts753.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts760.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts796.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts797.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts798.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts799.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts811.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts812.out   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.runall   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/basetab.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/build.xml   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/copyfiles.ant   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_app.properties
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_derby.properties
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml001.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml004.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml005.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml008.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml009.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml010.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml011.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml012.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml013.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml014.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml015.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml018.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml019.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml020.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml021.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml022.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml023.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml024.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml025.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml026.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml027.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml029.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml033.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml034.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml035.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml037.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml038.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml039.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml042.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml043.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml044.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml045.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml046.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml047.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml049.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml050.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml051.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml052.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml053.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml055.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml056.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml057.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml058.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml059.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml060.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml061.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml065.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml068.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml069.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml070.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml073.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml075.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml076.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml079.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml080.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml080_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml081.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml081_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml082.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml082_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml083.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml083_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml085.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml085_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml087.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml087_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml090.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml091.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml091_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml099.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml099_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml104.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml104_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml106.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml106_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml108.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml108_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml112.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml112_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml114.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml114_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml119.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml119_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml130.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml130_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml132.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml132_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml134.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml134_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml141.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml141_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml144.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml144_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml147.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml147_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml148.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml148_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml149.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml149_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml155.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml155_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml158.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml160.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml160_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml162.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml162_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml165.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml165_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml168.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml168_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml170.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml170_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml173.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml173_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml174.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml174_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml177.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml177_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml178.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml178_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml179.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml179_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml181.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml181_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml182.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml182_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/flattab.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/flattab_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/readme   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema1.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema1_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema4.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema4_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema5.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema5_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema8.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/schema8_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/sdl012.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/temp_cts5sch2.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/temp_cts5tab.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/temp_cts5tab_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/temp_schem10.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts701.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts701_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts701a_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts729.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts729_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts730.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts730_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts731.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts731_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts740.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts740_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts742.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts742_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts752.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts752_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts753.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts753_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts760.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/xts760_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts796.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts796_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts797.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts797_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts798.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts798_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts799.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts799_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts811.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts811_app.properties   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts812.sql   (contents, props changed)
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/yts812_app.properties   (contents, props changed)
Modified:
   incubator/derby/code/trunk/NOTICE
   incubator/derby/code/trunk/java/testing/build.xml
   incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties

Modified: incubator/derby/code/trunk/NOTICE
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/NOTICE?view=diff&rev=126534&p1=incubator/derby/code/trunk/NOTICE&r1=126533&p2=incubator/derby/code/trunk/NOTICE&r2=126534
==============================================================================
--- incubator/derby/code/trunk/NOTICE	(original)
+++ incubator/derby/code/trunk/NOTICE	Wed Jan 26 11:42:09 2005
@@ -11,3 +11,11 @@
 licensed to the Apache Software Foundation under the
 "Software Grant and Corporate Contribution License Agreement",
 informally known as the "Derby CLA".
+
+The portion of the functionTests under 'nist' was originally 
+developed by the National Institute of Standards and Technology (NIST), 
+an agency of the United States Department of Commerce, and adapted by
+International Business Machines Corporation in accordance with the NIST
+Software Acknowledgment and Redistribution document at
+http://www.itl.nist.gov/div897/ctg/sql_form.htm
+

Modified: incubator/derby/code/trunk/java/testing/build.xml
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/build.xml?view=diff&rev=126534&p1=incubator/derby/code/trunk/java/testing/build.xml&r1=126533&p2=incubator/derby/code/trunk/java/testing/build.xml&r2=126534
==============================================================================
--- incubator/derby/code/trunk/java/testing/build.xml	(original)
+++ incubator/derby/code/trunk/java/testing/build.xml	Wed Jan 26 11:42:09 2005
@@ -47,6 +47,7 @@
     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/store"/> 
     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/storetests"/> 
     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/tools"/> 
+    <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/nist"/> 
     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/derbynet"/> 
     <ant dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/master"/> 
     <ant dir="${derby.testing.src.dir}/${derby.testing.suites.dir}"/> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/basetab.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/basetab.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/basetab.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,171 @@
+ij> AUTOCOMMIT OFF;
+ij> -- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID HU ******
+-- ***************************************************************
+-- MODULE BASETAB
+-- SQL Test Suite, V6.0, Interactive SQL, basetab.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+--0   SELECT USER FROM HU.ECCO;
+   VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+--   This routine initializes the contents of tables:
+--        STAFF, PROJ, WORKS, STAFF3, VTABLE, and UPUNIQ
+--   This routine may be run at any time to re-initialize tables.
+   DELETE FROM HU.ECCO;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.ECCO VALUES ('NL');
+1 row inserted/updated/deleted
+ij> DELETE FROM HU.STAFF;
+0 rows inserted/updated/deleted
+ij> DELETE FROM HU.PROJ;
+0 rows inserted/updated/deleted
+ij> DELETE FROM HU.WORKS;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.STAFF VALUES ('E1','Alice',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.STAFF VALUES ('E2','Betty',10,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.STAFF VALUES ('E3','Carmen',13,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.STAFF VALUES ('E4','Don',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.STAFF VALUES ('E5','Ed',13,'Akron');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P1','MXSS','Design',10000,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P2','CALM','Code',30000,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P3','SDP','Test',30000,'Tampa');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P4','SDP','Design',20000,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P5','IRM','Test',10000,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.PROJ VALUES  ('P6','PAYR','Design',50000,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P1',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P3',80);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P4',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P5',12);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E1','P6',12);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E2','P1',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E2','P2',80);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E3','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E4','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E4','P4',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.WORKS VALUES  ('E4','P5',80);
+1 row inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --O      SELECT COUNT(*) FROM HU.PROJ;
+      SELECT * FROM HU.PROJ;
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+P1 |MXSS                |Design|10000     |Deale          
+P2 |CALM                |Code  |30000     |Vienna         
+P3 |SDP                 |Test  |30000     |Tampa          
+P4 |SDP                 |Design|20000     |Deale          
+P5 |IRM                 |Test  |10000     |Vienna         
+P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:Setup if count = 6?
+--O      SELECT COUNT(*) FROM HU.STAFF;
+      SELECT * FROM HU.STAFF;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:Setup if count = 5?
+--O      SELECT COUNT(*) FROM HU.WORKS;
+      SELECT * FROM HU.WORKS;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P2 |20    
+E4 |P4 |40    
+E4 |P5 |80    
+ij> -- PASS:Setup if count = 12?
+      DELETE FROM HU.STAFF3;
+0 rows inserted/updated/deleted
+ij> DELETE FROM HU.VTABLE;
+0 rows inserted/updated/deleted
+ij> DELETE FROM HU.UPUNIQ;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.STAFF3
+              SELECT * 
+              FROM HU.STAFF;
+5 rows inserted/updated/deleted
+ij> INSERT INTO HU.VTABLE VALUES(10,+20,30,40,10.50);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.VTABLE VALUES(0,1,2,3,4.25);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.VTABLE VALUES(100,200,300,400,500.01);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.VTABLE VALUES(1000,-2000,3000,NULL,4000.00);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(1,'A');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(2,'B');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(3,'C');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(4,'D');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(6,'F');
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.UPUNIQ VALUES(8,'H');
+1 row inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --O      SELECT COUNT(*) FROM HU.STAFF3;
+      SELECT * FROM HU.STAFF3;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:Setup if count = 5?
+--O      SELECT COUNT(*) FROM HU.VTABLE;
+-- PASS:Setup if count = 4?
+--O      SELECT COUNT(*) FROM HU.UPUNIQ;
+      SELECT * FROM HU.UPUNIQ;
+NUM&|COL2
+---------
+1   |A   
+2   |B   
+3   |C   
+4   |D   
+6   |F   
+8   |H   
+ij> -- PASS:Setup if count = 6?
+-- *************************************************////END-OF-MODULE
+disconnect;
+ij> exit;

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr002.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr002.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr002.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,115 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR002
+-- SQL Test Suite, V6.0, Interactive SQL, cdr002.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0302 CHECK <comp. predicate> in <tab. cons.>, insert!
+-- setup
+  DELETE FROM SUN.STAFF5;
+0 rows inserted/updated/deleted
+ij> INSERT INTO SUN.STAFF5
+        VALUES('E1','Alice',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF5'.
+ij> -- PASS:0302 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO SUN.STAFF5
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> INSERT INTO SUN.STAFF5
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF5'.
+ij> -- PASS:0302 If ERROR, check constraint, 0 rows inserted?
+  SELECT COUNT(*) FROM SUN.STAFF5;
+1          
+-----------
+1          
+ij> -- PASS:0302 If count = 1?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0302 <<< END TEST
+-- *************************************************
+-- TEST:0303 CHECK <comp. predicate> in <col. cons.>, insert!
+-- setup
+  DELETE FROM SUN.STAFF6;
+0 rows inserted/updated/deleted
+ij> INSERT INTO SUN.STAFF6
+        VALUES('E1','Alice',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF6'.
+ij> -- PASS:0303 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO SUN.STAFF6
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF6'.
+ij> -- PASS:0303 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO SUN.STAFF6
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT GRADE FROM SUN.STAFF6
+        WHERE GRADE > 10;
+GRADE
+-----
+11   
+ij> -- PASS:0303 If 1 row selected and GRADE = 11?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0303 <<< END TEST
+-- *************************************************
+-- TEST:0304 CHECK <between predicate> in <tab. cons.>, insert!
+-- setup
+  DELETE FROM SUN.STAFF7;
+0 rows inserted/updated/deleted
+ij> INSERT INTO SUN.STAFF7
+        VALUES('E1','Alice',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF7'.
+ij> -- PASS:0304 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO SUN.STAFF7
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF7'.
+ij> -- PASS:0304 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO SUN.STAFF7
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*)
+        FROM SUN.STAFF7;
+1          
+-----------
+1          
+ij> -- PASS:0304 If count = 1?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0304 <<< END TEST
+-- *************************************************
+-- TEST:0305 CHECK <null predicate> in <tab. cons.>, insert!
+-- setup
+  DELETE FROM SUN.STAFF8;
+0 rows inserted/updated/deleted
+ij> INSERT INTO SUN.STAFF8
+        VALUES('E1','Alice',34,'Deale');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM SUN.STAFF8;
+1          
+-----------
+1          
+ij> -- PASS:0305 If count = 1?
+  INSERT INTO SUN.STAFF8
+        VALUES('E2',NULL,34,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF8'.
+ij> -- PASS:0305 If ERROR, check constraint, 0 rows inserted?
+  SELECT COUNT(*) FROM SUN.STAFF8;
+1          
+-----------
+1          
+ij> -- PASS:0305 If count = 1?
+  COMMIT WORK;
+ij> -- END TEST >>> 0305 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr003.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr003.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr003.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,114 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR003
+-- SQL Test Suite, V6.0, Interactive SQL, cdr003.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0306 CHECK X IS NOT NULL, NOT X IS NULL are equivalent!
+-- setup
+  DELETE FROM STAFF13;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF13
+        VALUES('E1','Alice',36,'Deale');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF13;
+1          
+-----------
+1          
+ij> -- PASS:0306 If count = 1?
+  INSERT INTO STAFF13
+        VALUES('E2',NULL,36,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF13'.
+ij> -- PASS:0306 If ERROR, check constraint, 0 rows inserted?
+  SELECT COUNT(*) FROM STAFF13;
+1          
+-----------
+1          
+ij> -- PASS:0306 If count = 1?
+-- END TEST >>> 0306 <<< END TEST
+-- *************************************************
+-- TEST:0307 CHECK <like predicate> in <tab. cons>, insert!
+-- setup
+  DELETE FROM STAFF9;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF9
+        VALUES('E1','Thomas',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF9'.
+ij> -- PASS:0307 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF9
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF9'.
+ij> -- PASS:0307 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF9
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF9;
+1          
+-----------
+1          
+ij> -- PASS:0307 If count = 1?
+-- END TEST >>> 0307 <<< END TEST
+-- *************************************************
+-- TEST:0308 CHECK <in predicate> in <tab. cons.>, insert!
+-- setup
+  DELETE FROM STAFF10;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF10
+        VALUES('E1','Thomas',5,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF10'.
+ij> -- PASS:0308 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF10
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF10'.
+ij> -- PASS:0308 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF10
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF10;
+1          
+-----------
+1          
+ij> -- PASS:0308 If count = 1?
+-- END TEST >>> 0308 <<< END TEST
+-- *************************************************
+-- NO_TEST:0373 insert with embeded var. & indic. var. CHECK clause!
+-- Testing Embedded Variable & Indicator Variable
+-- *************************************************
+-- TEST:0374 computation in update, CHECK clause!
+-- setup
+  DELETE FROM STAFF5;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF5
+        VALUES('R9','Alice',15,'Deale');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF5;
+1          
+-----------
+1          
+ij> -- PASS:0374 If count = 1?
+  UPDATE STAFF5
+         SET GRADE = 10 * 10 / 5 + 1
+         WHERE EMPNUM = 'R9';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF5'.
+ij> -- PASS:0374 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF5
+      WHERE GRADE = 15;
+1          
+-----------
+1          
+ij> -- PASS:0374 If count = 1?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0374 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr004.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr004.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr004.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,108 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR004
+-- SQL Test Suite, V6.0, Interactive SQL, cdr004.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0309 CHECK combination predicates in <tab. cons.>, insert!
+-- setup
+  DELETE FROM STAFF11;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF11
+        VALUES('E1','Thomas',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0309 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF11
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0309 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF11
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF11;
+1          
+-----------
+1          
+ij> -- PASS:0309 If count = 1?
+-- END TEST >>> 0309 <<< END TEST
+-- *************************************************
+-- TEST:0310 CHECK if X NOT IN, NOT X IN equivalent, insert!
+-- setup
+  DELETE FROM STAFF12;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF12
+        VALUES('E1','Thomas',0,'Deale');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF12'.
+ij> -- PASS:0310 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF12
+        VALUES('E2','Tom',22,'Newyork');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF12'.
+ij> -- PASS:0310 If ERROR, check constraint, 0 rows inserted?
+  INSERT INTO STAFF12
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF12;
+1          
+-----------
+1          
+ij> -- PASS:0310 If count = 1?
+-- END TEST >>> 0310 <<< END TEST
+-- *************************************************
+-- TEST:0311 CHECK NOT NULL in col.cons., insert, null explicit!
+-- setup
+  DELETE FROM STAFF15;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF15;
+1          
+-----------
+1          
+ij> -- PASS:0311 If count = 1?
+  INSERT INTO STAFF15
+        VALUES('E2',NULL,52,'Newyork');
+ERROR 23502: Column 'EMPNAME'  cannot accept a NULL value.
+ij> -- PASS:0311 If ERROR, check constraint, 0 rows inserted?
+  SELECT COUNT(*) FROM STAFF15;
+1          
+-----------
+1          
+ij> -- PASS:0311 If count = 1?
+-- END TEST >>> 0311 <<< END TEST
+-- *************************************************
+-- TEST:0312 CHECK NOT NULL in col.cons., insert, null implicit!
+-- setup
+  DELETE FROM STAFF15;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM STAFF15;
+1          
+-----------
+1          
+ij> -- PASS:0312 If count = 1?
+  INSERT INTO STAFF15(EMPNUM,GRADE,CITY)
+        VALUES('E2',52,'Newyork');
+ERROR 23502: Column 'EMPNAME'  cannot accept a NULL value.
+ij> -- PASS:0312 If ERROR, check constraint, 0 rows inserted?
+  SELECT COUNT(*) FROM STAFF15;
+1          
+-----------
+1          
+ij> -- PASS:0312 If count = 1?
+  COMMIT WORK;
+ij> -- END TEST >>> 0312 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr005.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr005.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr005.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,75 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR005
+-- SQL Test Suite, V6.0, Interactive SQL, cdr005.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0313 CHECK <comp. predicate> in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF5;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF5
+        VALUES('E2','Tom',14,'Newyork');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF5
+        SET GRADE = 20;
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF5'.
+ij> -- PASS:0313 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF5
+        WHERE GRADE = 14;
+1          
+-----------
+1          
+ij> -- PASS:0313 If count = 1?
+-- END TEST >>> 0313 <<< END TEST
+-- *************************************************
+-- TEST:0314 CHECK <comp. predicate> in <col. cons.>, update!
+-- setup
+  DELETE FROM STAFF6;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF6
+        VALUES('E2','Tom',14,'Newyork');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF6
+        SET GRADE = 20;
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF6'.
+ij> -- PASS:0314 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF6
+        WHERE GRADE = 14;
+1          
+-----------
+1          
+ij> -- PASS:0314 If count = 1?
+-- END TEST >>> 0314 <<< END TEST
+-- *************************************************
+-- TEST:0315 CHECK <between predicate> in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF7;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF7
+        VALUES('E2','Tom',14,'Newyork');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF7
+        SET GRADE = 21;
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF7'.
+ij> -- PASS:0315 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF7
+        WHERE GRADE = 14;
+1          
+-----------
+1          
+ij> -- PASS:0315 If count = 1?
+  COMMIT WORK;
+ij> -- END TEST >>> 0315 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr006.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr006.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr006.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,80 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR006
+-- SQL Test Suite, V6.0, Interactive SQL, cdr006.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0316 CHECK <null predicate> in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF8;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF8
+        VALUES('E1','Alice',34,'Deale');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF8
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF8'.
+ij> -- PASS:0316 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF8
+        WHERE EMPNAME = 'Alice';
+1          
+-----------
+1          
+ij> -- PASS:0316 If count = 1?
+-- END TEST >>> 0316 <<< END TEST
+-- *************************************************
+-- TEST:0317 CHECK X IS NOT NULL, NOT X IS NULL same, by update!
+-- setup
+  DELETE FROM STAFF13;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF13
+        VALUES('E1','Alice',36,'Deale');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF13
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF13'.
+ij> -- PASS:0317 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*)
+        FROM STAFF13
+        WHERE EMPNAME = 'Alice';
+1          
+-----------
+1          
+ij> -- PASS:0317 If count = 1?
+-- END TEST >>> 0317 <<< END TEST
+-- *************************************************
+-- TEST:0318 CHECK <like predicate> in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF9;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF9
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF9
+        SET EMPNAME = 'Thomas'
+        WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF9'.
+ij> -- PASS:0318 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*)
+        FROM STAFF9
+        WHERE EMPNAME = 'Susan';
+1          
+-----------
+1          
+ij> -- PASS:0318 If count = 1?
+  COMMIT WORK;
+ij> -- END TEST >>> 0318 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr007.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr007.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr007.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,103 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR007
+-- SQL Test Suite, V6.0, Interactive SQL, cdr007.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0319 CHECK <in predicate> in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF10;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF10
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF10
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF10'.
+ij> -- PASS:0319 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF10
+        WHERE GRADE = 11;
+1          
+-----------
+1          
+ij> -- PASS:0319 If count = 1?
+-- END TEST >>> 0319 <<< END TEST
+-- *************************************************
+-- TEST:0320 CHECK combination pred. in <tab. cons.>, update!
+-- setup
+  DELETE FROM STAFF11;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF11
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF11
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0320 If ERROR, check constraint, 0 rows updated?
+  UPDATE STAFF11
+        SET EMPNAME = 'Tom'
+        WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0320 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF11
+        WHERE EMPNAME = 'Susan' AND GRADE = 11;
+1          
+-----------
+1          
+ij> -- PASS:0320 If count = 1?
+-- END TEST >>> 0320 <<< END TEST
+-- *************************************************
+-- TEST:0321 CHECK if X NOT LIKE/IN, NOT X LIKE/IN same, update!
+-- setup
+  DELETE FROM STAFF12;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF12
+        VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF12
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF12'.
+ij> -- PASS:0321 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF12
+        WHERE GRADE = 11;
+1          
+-----------
+1          
+ij> -- PASS:0321 If count = 1?
+-- END TEST >>> 0321 <<< END TEST
+-- *************************************************
+-- TEST:0322 CHECK <null predicate> in <col. cons>, update!
+-- setup
+  DELETE FROM STAFF15;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+1 row inserted/updated/deleted
+ij> UPDATE STAFF15
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+ERROR 23502: Column 'EMPNAME'  cannot accept a NULL value.
+ij> -- PASS:0322 If ERROR, check constraint, 0 rows updated?
+  SELECT COUNT(*) FROM STAFF15
+        WHERE EMPNAME = 'Alice';
+1          
+-----------
+1          
+ij> -- PASS:0322 If count = 1?
+  COMMIT WORK;
+ij> -- END TEST >>> 0322 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr027.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr027.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr027.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,189 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR027
+-- SQL Test Suite, V6.0, Interactive SQL, cdr027.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0446 Table CHECK constraint allows unknown (NULL)!
+   DELETE FROM STAFF5;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF5 VALUES('E7','Mimi',NULL,'Miami');
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row inserted?
+   INSERT INTO STAFF5 VALUES('E8','Joe',NULL,'Boston');
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row inserted?
+   INSERT INTO STAFF5(EMPNUM) VALUES('E9');
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row inserted?
+--O   UPDATE STAFF
+   UPDATE HU.STAFF
+       SET GRADE = NULL
+       WHERE EMPNUM = 'E1';
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row updated?
+   INSERT INTO STAFF5 
+        SELECT *
+--O         FROM STAFF;
+         FROM HU.STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0446 If 5 rows inserted?
+   UPDATE STAFF5 
+       SET GRADE = NULL
+       WHERE EMPNUM = 'E2';
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row updated?
+   UPDATE STAFF5
+       SET GRADE = NULL 
+       WHERE EMPNUM = 'E4';
+1 row inserted/updated/deleted
+ij> -- PASS:0446 If 1 row updated?
+   SELECT COUNT(*)
+       FROM STAFF5;
+1          
+-----------
+8          
+ij> -- PASS:0446 If count = 8?
+   SELECT COUNT(*)
+       FROM STAFF5
+       WHERE GRADE IS NULL;
+1          
+-----------
+6          
+ij> -- PASS:0446 If count = 6?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0446 <<< END TEST
+-- *********************************************
+-- TEST:0447 NULLs with check constraint and check option!
+   DELETE FROM STAFF6;
+1 row inserted/updated/deleted
+ij> --O   INSERT INTO STAFF6_WITH_GRADES
+--O       VALUES('X1','Vicki',NULL,'Houston');
+-- PASS:0447 If ERROR, view check constraint, 0 rows inserted?
+   INSERT INTO STAFF6
+       VALUES('X2','Tina',NULL,'Orlando');
+1 row inserted/updated/deleted
+ij> -- PASS:0447 If 1 row inserted?
+--O   SELECT COUNT(*)
+--O       FROM STAFF6_WITH_GRADES;
+-- PASS:0447 If count = 0?
+   SELECT COUNT(*)
+      FROM STAFF6;
+1          
+-----------
+1          
+ij> -- PASS:0447 If count = 1?
+   SELECT EMPNAME
+       FROM STAFF6
+       WHERE GRADE IS NULL;
+EMPNAME             
+--------------------
+Tina                
+ij> -- PASS:0447 If EMPNAME is Tina?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0447 <<< END TEST
+-- *********************************************
+-- TEST:0448 PRIMARY KEY implies UNIQUE!
+   DELETE FROM STAFF9;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('D1','Muddley');
+1 row inserted/updated/deleted
+ij> -- PASS:0448 If 1 row inserted?
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('D1','Muddley');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'STAFF9'.
+ij> -- PASS:0448 If ERROR, unique constraint, 0 rows inserted?
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('d1','Muddley');
+1 row inserted/updated/deleted
+ij> -- PASS:0448 If 1 row inserted?
+   SELECT COUNT(*)
+       FROM STAFF9;
+1          
+-----------
+2          
+ij> -- PASS:0448 If count = 2?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0448 <<< END TEST
+-- *********************************************
+-- TEST:0449 Constraint definition is case sensitive!
+   DELETE FROM STAFF9;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z1','Tina');
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF9'.
+ij> -- PASS:0449 If ERROR, check constraint, 0 rows inserted?
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z2','tina');
+1 row inserted/updated/deleted
+ij> -- PASS:0449 If 1 row inserted?
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z3','ANTHONY');
+1 row inserted/updated/deleted
+ij> -- PASS:0449 If 1 row inserted?
+   SELECT COUNT(*)
+        FROM STAFF9;
+1          
+-----------
+2          
+ij> -- PASS:0449 If count = 2?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0449 <<< END TEST
+-- *********************************************
+-- TEST:0450 Referential integrity is case sensitive!
+   INSERT INTO DEPT
+       VALUES(11,'VOLLEYBALL','VICKI');
+1 row inserted/updated/deleted
+ij> -- PASS:0450 If 1 row inserted?
+   INSERT INTO DEPT 
+       VALUES(10,'volleyball','vicki');
+1 row inserted/updated/deleted
+ij> -- PASS:0450 If 1 row inserted?
+-- NOTE:0450 insert lower case value of above.
+   SELECT COUNT(*) FROM DEPT WHERE DNO = 10;
+1          
+-----------
+1          
+ij> -- PASS:0450 If count = 1?
+--O   INSERT INTO EMP
+--O       VALUES(13,'MARY','Dancer',15,'VOLLEYBALL',010101);
+-- PASS:0450 If 1 row inserted?
+   DELETE FROM DEPT
+       WHERE DNO = 10;
+1 row inserted/updated/deleted
+ij> -- PASS:0450 If 1 row deleted?
+--O   UPDATE DEPT
+--O       SET DNAME = 'EDUCATION'
+--O       WHERE DNAME = 'Education';
+-- PASS:0450 If RI ERROR, children exist, 0 rows updated?
+--O   SELECT * FROM DEPT ORDER BY DNO;
+-- PASS:0450 If 5 rows selected?
+-- PASS:0450 If DNO values are 11, 12, 13, 14, 15?
+-- PASS:0450 If DNAME = 'Education' (not 'EDUCATION') for DNO = 14?
+--O   INSERT INTO EMP
+--O       VALUES(28,'BARBARA','Jogger',14,'EDUCATION',010101);
+-- PASS:0450 If RI ERROR, parent missing, 0 rows inserted?
+--O   UPDATE EMP
+--O       SET DNAME = 'PHYSICS'
+--O       WHERE ENO = 25;
+-- PASS:0450 If RI ERROR, parent missing, 0 rows updated?
+--O   SELECT ENO, ENAME, DNO, DNAME 
+--O       FROM EMP ORDER BY ENO;
+-- PASS:0450 If 8 rows selected?
+-- PASS:0450 If ENO values are 13, 21 through 27?
+-- PASS:0450 If DNAME = 'Physics' (not 'PHYSICS') for ENO = 25?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0450 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr030.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr030.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/cdr030.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,102 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE CDR030  
+-- SQL Test Suite, V6.0, Interactive SQL, cdr030.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SUN
+   set schema SUN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SUN                                                                                                                             
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- TEST:0516 SQLSTATE 23502: integrity constraint violation!
+--O   INSERT INTO EMP 
+--O         VALUES (41,'Tom','China Architecture',
+--O                 20,'Architecture',040553);
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows inserted?
+-- PASS:0516 OR RI ERROR, parent missing, 0 rows inserted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+--O   DELETE FROM EMP
+--O         WHERE ENO = 21;
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows deleted?
+-- PASS:0516 OR RI ERROR, children exist, 0 rows deleted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+--O   UPDATE EMP
+--O         SET ENAME = 'Thomas'
+--O         WHERE ENO = 21;
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR RI ERROR, chldren exist, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+-- setup 
+   DELETE FROM STAFF7;
+1 row inserted/updated/deleted
+ij> -- PRIMARY KEY (EMPNUM)
+   INSERT INTO STAFF7 (EMPNUM) 
+         VALUES ('XXX');
+1 row inserted/updated/deleted
+ij> -- PASS:0516 If 1 row inserted?
+   INSERT INTO STAFF7 (EMPNUM) 
+         VALUES ('XXX');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'STAFF7'.
+ij> -- PASS:0516 If ERROR, integrity constraint violation, 0 rows inserted?
+-- PASS:0516 OR ERROR, unique constraint, 0 rows inserted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+-- setup
+   DELETE FROM PROJ3;
+0 rows inserted/updated/deleted
+ij> -- UNIQUE (PNUM)
+   INSERT INTO PROJ3 (PNUM) VALUES ('787');
+1 row inserted/updated/deleted
+ij> INSERT INTO PROJ3 (PNUM) VALUES ('789');
+1 row inserted/updated/deleted
+ij> -- PASS:0516 If 1 row inserted?
+   UPDATE PROJ3          SET PNUM = '787' 
+                       WHERE PNUM = '789';
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'PROJ3'.
+ij> -- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, unique constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+-- setup
+   DELETE FROM STAFF11;
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF11
+         VALUES('E3','Susan',11,'Hawaii');
+1 row inserted/updated/deleted
+ij> -- PASS:0516 If 1 row inserted?
+-- (CHECK GRADE NOT IN (5,22))
+   UPDATE STAFF11
+         SET GRADE = 5
+         WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, check constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+-- (CHECK NOT EMPNAME LIKE 'T%')
+   UPDATE STAFF11
+         SET EMPNAME = 'Tom'
+         WHERE EMPNUM = 'E3';
+ERROR 23513: The check constraint 'xxxxGENERATED-IDxxxx' was violated while performing an INSERT or UPDATE on table 'SUN.STAFF11'.
+ij> -- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, check constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0516 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml001.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml001.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml001.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,193 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML001
+-- SQL Test Suite, V6.0, Interactive SQL, dml001.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
+-- TEST:0001 SELECT with ORDER BY DESC!
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM='P2'
+                     ORDER BY EMPNUM DESC;
+EM&|HOURS 
+----------
+E4 |20    
+E3 |20    
+E2 |80    
+E1 |20    
+ij> -- PASS:0001 If 4 rows selected and last EMPNUM = 'E1'?
+-- END TEST >>> 0001 <<< END TEST
+-- *********************************************
+-- TEST:0002 SELECT with ORDER BY integer ASC!
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM='P2'
+                     ORDER BY 2 ASC;
+EM&|HOURS 
+----------
+E4 |20    
+E3 |20    
+E1 |20    
+E2 |80    
+ij> -- PASS:0002 If 4 rows selected and last HOURS = 80?
+-- END TEST >>> 0002 <<< END TEST
+-- *********************************************
+-- TEST:0003 SELECT with ORDER BY DESC integer, named column!
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM = 'P2'
+                     ORDER BY 2 DESC,EMPNUM DESC;
+EM&|HOURS 
+----------
+E2 |80    
+E4 |20    
+E3 |20    
+E1 |20    
+ij> -- PASS:0003 If 4 rows selected and last EMPNUM = 'E1'?
+-- END TEST >>> 0003 <<< END TEST
+-- *********************************************
+-- TEST:0004 SELECT with UNION, ORDER BY integer DESC!
+                SELECT WORKS.EMPNUM 
+                     FROM WORKS
+                     WHERE WORKS.PNUM = 'P2'
+            UNION
+                SELECT STAFF.EMPNUM  
+                     FROM STAFF
+                     WHERE STAFF.GRADE=13 
+                     ORDER BY 1 DESC;
+EM&
+---
+E5 
+E4 
+E3 
+E2 
+E1 
+ij> -- PASS:0004 If 5 rows selected and last EMPNUM = 'E1'?
+-- END TEST >>> 0004 <<< END TEST
+-- *********************************************
+-- TEST:0005 SELECT with UNION ALL!
+                SELECT WORKS.EMPNUM 
+                     FROM WORKS
+                     WHERE WORKS.PNUM = 'P2'
+            UNION ALL    
+                SELECT STAFF.EMPNUM  
+                     FROM STAFF
+                     WHERE STAFF.GRADE = 13;
+EM&
+---
+E1 
+E2 
+E3 
+E4 
+E3 
+E5 
+ij> -- PASS:0005 If 6 rows selected?
+-- END TEST >>> 0005 <<< END TEST
+-- *********************************************
+-- TEST:0158 SELECT with UNION and NOT EXISTS subquery!
+                SELECT EMPNAME,PNUM,HOURS
+                     FROM STAFF,WORKS
+                     WHERE STAFF.EMPNUM = WORKS.EMPNUM
+            UNION
+                SELECT EMPNAME,PNUM,HOURS
+                     FROM STAFF,WORKS
+                     WHERE NOT EXISTS
+                       (SELECT HOURS 
+                             FROM WORKS
+                             WHERE STAFF.EMPNUM = WORKS.EMPNUM);
+EMPNAME             |PN&|HOURS 
+-------------------------------
+Alice               |P1 |40    
+Alice               |P2 |20    
+Alice               |P3 |80    
+Alice               |P4 |20    
+Alice               |P5 |12    
+Alice               |P6 |12    
+Betty               |P1 |40    
+Betty               |P2 |80    
+Carmen              |P2 |20    
+Don                 |P2 |20    
+Don                 |P4 |40    
+Don                 |P5 |80    
+Ed                  |P1 |40    
+Ed                  |P2 |20    
+Ed                  |P2 |80    
+Ed                  |P3 |80    
+Ed                  |P4 |20    
+Ed                  |P4 |40    
+Ed                  |P5 |12    
+Ed                  |P5 |80    
+Ed                  |P6 |12    
+ij> -- PASS:0158 If 21 rows selected?
+-- END TEST >>> 0158 <<< END TEST
+-- *********************************************
+-- TEST:0159 SELECT with 2 UNIONs, ORDER BY 2 integers!
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=80
+         UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=40
+         UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=20
+                  ORDER BY 3,1;
+PN&|EM&|HOURS 
+--------------
+P2 |E4 |20    
+P2 |E3 |20    
+P2 |E1 |20    
+P4 |E1 |20    
+P1 |E2 |40    
+P1 |E1 |40    
+P4 |E4 |40    
+P2 |E2 |80    
+P3 |E1 |80    
+P5 |E4 |80    
+ij> -- PASS:0159 If 10 rows selected?
+-- END TEST >>> 0159 <<< END TEST
+-- *********************************************
+-- TEST:0160 SELECT with parenthesized UNION, UNION ALL!
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=12
+             UNION ALL 
+            (SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+             UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=80)
+                  ORDER BY 2,1;
+PN&|EM&|HOURS 
+--------------
+P1 |E1 |40    
+P2 |E1 |20    
+P3 |E1 |80    
+P4 |E1 |20    
+P5 |E1 |12    
+P5 |E1 |12    
+P6 |E1 |12    
+P6 |E1 |12    
+P1 |E2 |40    
+P2 |E2 |80    
+P2 |E3 |20    
+P2 |E4 |20    
+P4 |E4 |40    
+P5 |E4 |80    
+ij> -- PASS:0160 If 14 rows selected?
+-- END TEST >>> 0160 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml004.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml004.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml004.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,61 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML004
+-- SQL Test Suite, V6.0, Interactive SQL, dml004.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
+-- TEST:0008 SQLCODE 100:SELECT on empty table !
+     SELECT EMPNUM,HOURS
+          FROM WORKS
+          WHERE PNUM = 'P8'
+          ORDER BY EMPNUM DESC;
+EM&|HOURS 
+----------
+ij> -- PASS:0008 If 0 rows selected, SQLCODE = 100, end of data?
+-- END TEST >>> 0008 <<< END TEST
+-- ****************************************************************
+-- TEST:0009 SELECT NULL value!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E9','P9',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0009 If 1 row is inserted?
+     SELECT EMPNUM
+          FROM WORKS
+          WHERE HOURS IS NULL;
+EM&
+---
+E9 
+ij> -- PASS:0009 If EMPNUM = 'E9'?
+          SELECT EMPNUM, HOURS
+               FROM WORKS
+               WHERE PNUM = 'P9'
+               ORDER BY EMPNUM DESC;
+EM&|HOURS 
+----------
+E9 |NULL  
+ij> -- PASS:0009 If EMPNUM = 'E9' and HOURS is NULL?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0009 <<< END TEST
+-- ******************************************************************
+-- NO_TEST:0161 FETCH NULL value without indicator, SQLCODE < 0!
+-- Testing Indicators
+-- **********************************************************
+-- NO_TEST:0162 FETCH NULL value with indicator syntax!
+-- Testing indicators
+-- ****************************************************************
+-- NO_TEST:0010 FETCH truncated CHAR column with indicator!
+-- Testing indicators
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml005.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml005.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml005.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,38 @@
+ij> -- MODULE DML005
+-- SQL Test Suite, V6.0, Interactive SQL, dml005.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
+-- TEST:0011 FIPS sizing - DECIMAL (15)!
+-- FIPS sizing TEST
+-- setup
+--O     DELETE FROM LONGINT;
+     DELETE FROM LONGINTTAB;
+0 rows inserted/updated/deleted
+ij> -- setup
+--O     INSERT INTO LONGINT
+     INSERT INTO LONGINTTAB
+            VALUES(123456789012345.);
+1 row inserted/updated/deleted
+ij> -- PASS:0011 If 1 row is inserted?
+     SELECT LONG_INT, LONG_INT /1000000, LONG_INT - 123456789000000.
+--O          FROM LONGINT;
+          FROM LONGINTTAB;
+LONG_INT        |2                                 |3                
+---------------------------------------------------------------------
+123456789012345 |123456789.0123450000000000        |12345            
+ij> -- PASS:0011 If values are (123456789012345, 123456789, 12345), but?
+-- PASS:0011 Second value may be between 123456788 and 123456790?
+-- END TEST >>> 0011 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml008.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml008.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml008.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,91 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML008
+-- SQL Test Suite, V6.0, Interactive SQL, dml008.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
+-- TEST:0016 SELECT ALL syntax!
+     SELECT ALL EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+EM&
+---
+E1 
+E1 
+ij> -- PASS:0016 If 2 rows are selected and both EMPNUMs are 'E1'?
+-- END TEST >>> 0016 <<< END TEST
+-- *************************************************************
+-- TEST:0164 SELECT:default is ALL, not DISTINCT!
+     SELECT EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+EM&
+---
+E1 
+E1 
+ij> -- PASS:0164 If 2 rows are selected and both EMPNUMs are 'E1'?
+-- END TEST >>> 0164 <<< END TEST
+-- ************************************************************
+-- TEST:0017 SELECT:checks DISTINCT!
+     SELECT DISTINCT EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+EM&
+---
+E1 
+ij> -- PASS:0017 If 1 row is selected and EMPNUM = 'E1'?
+-- END TEST >>> 0017 <<< END TEST
+-- ***********************************************************
+-- TEST:0018 SQLCODE = 100, SELECT with no data!
+     SELECT EMPNUM,PNUM
+          FROM WORKS
+          WHERE EMPNUM = 'E16';
+EM&|PN&
+-------
+ij> -- PASS:0018 If 0 rows selected, SQLCODE = 100, end of data?
+-- END TEST >>> 0018 <<< END TEST
+-- ***********************************************************
+-- TEST:0019 SQLCODE = 0, SELECT with data!
+     SELECT EMPNUM,HOURS
+          FROM WORKS
+          WHERE EMPNUM = 'E1' AND PNUM = 'P4';
+EM&|HOURS 
+----------
+E1 |20    
+ij> -- PASS:0019 If HOURS = 20 ?
+-- END TEST >>> 0019 <<< END TEST
+-- **********************************************************
+-- TEST:0020 SELECT NULL value !
+-- setup
+     INSERT INTO WORKS
+         VALUES('E18','P18',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0020 If 1 row is inserted?
+      SELECT EMPNUM,HOURS  
+           FROM   WORKS
+          WHERE  EMPNUM='E18' AND PNUM='P18';
+EM&|HOURS 
+----------
+E18|NULL  
+ij> -- PASS:0020 If EMPNUM = 'E18' and HOURS is NULL?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0020 <<< END TEST
+-- **********************************************************
+-- NO_TEST:0021 SELECT CHAR(m) column into shorter var, get indic = m!
+-- Testing indicators
+-- ***********************************************************
+-- NO_TEST:0165 Truncate CHAR column SELECTed into shorter var!
+-- Testing host identifiers
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml009.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml009.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml009.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,118 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML009
+-- SQL Test Suite, V6.0, Interactive SQL, dml009.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
+-- TEST:0022 INSERT(column list) VALUES(literals and NULL)!
+-- setup
+     INSERT INTO WORKS(PNUM,EMPNUM,HOURS)
+            VALUES ('P22','E22',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0022 If 1 row inserted?
+      SELECT EMPNUM,PNUM
+           FROM   WORKS
+           WHERE  HOURS IS NULL;
+EM&|PN&
+-------
+E22|P22
+ij> -- PASS:0022 If EMPNUM = 'E22'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0022 <<< END TEST
+-- **************************************************************
+-- TEST:0023 DEC precision >= col.def.: ERROR if left-truncate!
+-- setup
+     DELETE FROM TEMP_S;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- setup
+     INSERT INTO TEMP_S(EMPNUM,GRADE,CITY)
+          VALUES('E23',2323.4,'China');
+1 row inserted/updated/deleted
+ij> -- PASS:0023 If 1 row inserted?
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E23 |2323 |China          
+ij> -- PASS:0023 If count = 1?
+-- setup
+     INSERT INTO TEMP_S
+            VALUES('E23',23234,'China');
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(4,0).
+ij> -- PASS:0023 If 1 row inserted or ?
+-- PASS:0023 insert fails due to precision of 23234?
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E23 |2323 |China          
+ij> -- PASS:0023 If count = 1 or 2 (depending on previous insertion)?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0023 <<< END TEST
+-- ***************************************************************
+-- TEST:0024 INSERT:<query spec.> is empty: SQLCODE = 100!
+-- setup
+     INSERT INTO TEMP_S
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 13;
+0 rows inserted/updated/deleted
+ij> -- PASS:0024 If 0 rows selected, SQLCODE = 100, end of data?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0024 <<< END TEST
+-- *************************************************************
+-- TEST:0025 INSERT:<query spec.> is not empty!
+     DELETE FROM TEMP_S;
+0 rows inserted/updated/deleted
+ij> -- setup
+     INSERT INTO TEMP_S(EMPNUM,GRADE,CITY)
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 12;
+2 rows inserted/updated/deleted
+ij> -- PASS:0025 If 2 rows are inserted?
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E3  |13   |Vienna         
+E5  |13   |Akron          
+ij> -- PASS:0025 If count = 2?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0025 <<< END TEST
+-- *************************************************************
+-- TEST:0026 INSERT into view with check option and unique violation!
+--0     SELECT COUNT(*) FROM STAFF;
+-- PASS:0026 If count = 5?
+-- setup
+--0     INSERT INTO TEMP_SS
+--0            SELECT EMPNUM,GRADE,CITY
+--0                 FROM STAFF3
+--0                 WHERE GRADE = 10;
+-- PASS:0026 If ERROR, view check constraint, 0 rows inserted  OR ?
+-- PASS:0026 If ERROR, unique constraint, 0 rows inserted?
+--0     SELECT COUNT(*) FROM STAFF;
+-- PASS:0026 If count = 5?
+-- restore
+--0     ROLLBACK WORK;
+-- END TEST >>> 0026 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml010.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml010.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml010.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,68 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML010
+-- SQL Test Suite, V6.0, Interactive SQL, dml010.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
+-- TEST:0027 INSERT short string in long col -- space padding !
+-- setup 
+     INSERT INTO TMP (T1, T2, T3) 
+            VALUES ( 'xxxx',23,'xxxx');
+1 row inserted/updated/deleted
+ij> -- PASS:0027 If 1 row inserted?
+      SELECT *
+           FROM TMP
+           WHERE T2 = 23 AND T3 = 'xxxx      ';
+T1        |T2  |T3        
+--------------------------
+xxxx      |23  |xxxx      
+ij> -- PASS:0027 If T1 = 'xxxx      ' ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0027 <<< END TEST
+-- ************************************************************* 
+-- TEST:0028 Insert String that fits Exactly in Column!
+-- setup
+     INSERT INTO TMP (T1, T2, T3) 
+            VALUES ('xxxxxxxxxx', 23,'xxxxxxxxxx');
+1 row inserted/updated/deleted
+ij> -- PASS:0028 If 1 row inserted?
+      SELECT *
+           FROM TMP
+           WHERE T2 = 23;
+T1        |T2  |T3        
+--------------------------
+xxxxxxxxxx|23  |xxxxxxxxxx
+ij> -- PASS:0028 If T1 = 'xxxxxxxxxx'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0028 <<< END TEST
+-- ***********************************************************
+-- TEST:0031 INSERT(column list) VALUES(NULL and literals)!
+-- setup
+     INSERT INTO TMP (T2, T3, T1) 
+            VALUES (NULL,'zz','z');
+1 row inserted/updated/deleted
+ij> -- PASS:0031 If 1 row inserted?
+      SELECT *
+           FROM   TMP
+           WHERE  T2 IS NULL;
+T1        |T2  |T3        
+--------------------------
+z         |NULL|zz        
+ij> -- PASS:0031 If T1 = 'z         '?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0031 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml011.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml011.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml011.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,87 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML011
+-- SQL Test Suite, V6.0, Interactive SQL, dml011.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
+-- TEST:0033 UPDATE view without <WHERE clause>!
+-- setup
+--O     UPDATE TEMP_SS
+--O          SET GRADE = 15;
+-- PASS:0033 If 2 rows are updated ?
+--O     SELECT COUNT(*)
+--O          FROM TEMP_SS
+--O          WHERE GRADE = 15;
+-- PASS:0033 If count = 2?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0033 <<< END TEST
+-- ***************************************************************
+-- TEST:0034 UPDATE table with SET column in <WHERE clause>!
+-- setup
+     UPDATE STAFF
+          SET GRADE = 2*GRADE
+          WHERE GRADE = 13;
+2 rows inserted/updated/deleted
+ij> -- PASS:0034 If 2 rows are updated?
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE GRADE = 26;
+1          
+-----------
+2          
+ij> -- PASS:0034 If count = 2?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0034 <<< END TEST
+-- ***********************************************************
+-- TEST:0035 UPDATE with correlated subquery in <WHERE clause>!
+-- setup
+     UPDATE STAFF
+          SET GRADE=10*STAFF.GRADE
+          WHERE STAFF.EMPNUM NOT IN
+                (SELECT WORKS.EMPNUM
+                      FROM WORKS
+                      WHERE STAFF.EMPNUM = WORKS.EMPNUM);
+1 row inserted/updated/deleted
+ij> -- PASS:0035 If 1 row is updated?
+     SELECT COUNT(*)
+          FROM   STAFF
+          WHERE  GRADE=130;
+1          
+-----------
+1          
+ij> -- PASS:0035 If count = 1?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0035 <<< END TEST
+-- ***************************************************************
+-- TEST:0036 UPDATE view globally with check option violation!
+     SELECT COUNT(*) FROM STAFF WHERE GRADE = 11;
+1          
+-----------
+0          
+ij> -- PASS:0036 If count = 0?
+--O     UPDATE TEMP_SS
+--O          SET GRADE = 11;
+-- PASS:0036 If ERROR, view check constraint, 0 rows updated?
+     SELECT COUNT(*) FROM STAFF WHERE GRADE = 11;
+1          
+-----------
+0          
+ij> -- PASS:0036 If count = 0?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0036 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml012.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml012.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml012.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,76 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML012
+-- SQL Test Suite, V6.0, Interactive SQL, dml012.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0037 DELETE without WHERE clause!
+     SELECT COUNT(*)
+          FROM STAFF;
+1          
+-----------
+5          
+ij> -- PASS:0037 If count = 5?
+      DELETE FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0037 If 5 rows deleted?
+      SELECT COUNT(*)
+           FROM STAFF;
+1          
+-----------
+0          
+ij> -- PASS:0037 If count = 0?
+-- restore
+     ROLLBACK WORK;
+ij> -- Testing Rollback
+      SELECT COUNT(*)
+           FROM STAFF;
+1          
+-----------
+5          
+ij> -- PASS:0037 If count = 5?
+-- END TEST >>> 0037 <<< END TEST
+-- **************************************************************
+-- TEST:0038 DELETE with correlated subquery in WHERE clause!
+     SELECT COUNT(*)
+          FROM WORKS;
+1          
+-----------
+12         
+ij> -- PASS:0038 If count = 12?
+     DELETE FROM WORKS
+           WHERE WORKS.PNUM IN
+                 (SELECT PROJ.PNUM
+                       FROM PROJ
+                       WHERE PROJ.PNUM=WORKS.PNUM
+                       AND PROJ.CITY='Tampa');
+1 row inserted/updated/deleted
+ij> -- PASS:0038 If 1 row deleted?
+      SELECT COUNT(*)
+           FROM WORKS;
+1          
+-----------
+11         
+ij> -- PASS:0038 If count = 11?
+-- restore
+      ROLLBACK WORK;
+ij> -- Testing Rollback
+      SELECT COUNT(*)
+           FROM WORKS;
+1          
+-----------
+12         
+ij> -- PASS:0038 If count = 12?
+-- END TEST >>> 0038 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml013.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml013.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml013.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,157 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML013
+-- SQL Test Suite, V6.0, Interactive SQL, dml013.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0039 COUNT DISTINCT function!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0039 If 1 row inserted?
+     SELECT COUNT(DISTINCT HOURS)
+          FROM WORKS;
+1          
+-----------
+4          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0039 If count = 4?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0039 <<< END TEST
+-- ************************************************************
+-- TEST:0167 SUM ALL function!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0167 If 1 row is inserted?
+     SELECT SUM(ALL HOURS)
+          FROM WORKS;
+1          
+-----------
+464        
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0167 If SUM(ALL HOURS) = 464?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0167 <<< END TEST
+-- ************************************************************
+-- TEST:0168 SUM function!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0168 If 1 row is inserted?
+     SELECT SUM(HOURS)
+          FROM WORKS;
+1          
+-----------
+464        
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0168 If SUM(HOURS) = 464?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0168 <<< END TEST
+-- ***********************************************************
+-- TEST:0169 COUNT(*) function !
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0169 If 1 row is inserted?
+     SELECT COUNT(*)
+          FROM WORKS;
+1          
+-----------
+13         
+ij> -- PASS:0169 If count = 13?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0169 <<< END TEST
+-- *************************************************************
+-- TEST:0040 SUM function with WHERE clause!
+     SELECT SUM(HOURS)
+          FROM WORKS
+          WHERE PNUM = 'P2';
+1          
+-----------
+140        
+ij> -- PASS:0040 If SUM(HOURS) = 140?
+-- END TEST >>> 0040 <<< END TEST
+-- ***************************************************************
+-- TEST:0170 SUM DISTINCT function with WHERE clause!
+     SELECT SUM(DISTINCT HOURS)
+          FROM WORKS
+          WHERE PNUM = 'P2';
+1          
+-----------
+100        
+ij> -- PASS:0170 If SUM(DISTINCT HOURS) = 100?
+-- END TEST >>> 0170 <<< END TEST
+-- **************************************************************
+-- TEST:0171 SUM(column) + value!
+     SELECT SUM(HOURS)+10
+          FROM WORKS
+          WHERE PNUM = 'P2';
+1           
+------------
+150         
+ij> -- PASS:0171 If SUM(HOURS)+10 = 150?
+-- END TEST >>> 0171 <<< END TEST
+-- ***************************************************************
+-- TEST:0041 MAX function in subquery!
+     SELECT EMPNUM
+          FROM STAFF
+          WHERE GRADE = (SELECT MAX(GRADE) FROM STAFF)
+          ORDER BY EMPNUM;
+EM&
+---
+E3 
+E5 
+ij> -- PASS:0041 If 2 rows are selected and EMPNUMs = 'E3' and 'E5'?
+-- END TEST >>> 0041 <<< END TEST
+-- ***************************************************************
+-- TEST:0042 MIN function in subquery!
+     SELECT EMPNUM
+          FROM STAFF
+          WHERE GRADE =
+               (SELECT MIN(GRADE) FROM STAFF);
+EM&
+---
+E2 
+ij> -- PASS:0042 If EMPNUM = 'E2'?
+-- END TEST >>> 0042 <<< END TEST
+-- ***************************************************************
+-- TEST:0043 AVG function!
+     SELECT AVG(GRADE)
+          FROM STAFF;
+1           
+------------
+12.0000     
+ij> -- PASS:0043 If AVG(GRADE) = 12?
+-- END TEST >>> 0043 <<< END TEST
+-- ***************************************************************
+-- TEST:0044 AVG function - empty result NULL value!
+     DELETE FROM TEMP_S;
+0 rows inserted/updated/deleted
+ij> SELECT AVG(GRADE)
+         FROM   TEMP_S;
+1           
+------------
+NULL        
+ij> -- PASS:0044 If AVG(GRADE) is NULL?
+-- END TEST >>> 0044 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml014.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml014.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml014.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,288 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML014
+-- SQL Test Suite, V6.0, Interactive SQL, dml014.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
+-- TEST:0045 BETWEEN predicate!
+     SELECT PNUM
+          FROM PROJ
+          WHERE BUDGET BETWEEN 40000 AND 60000;
+PN&
+---
+P6 
+ij> -- PASS:0045 If PNUM = 'P6'?
+     SELECT PNUM
+          FROM PROJ
+          WHERE BUDGET >= 40000 AND BUDGET <= 60000;
+PN&
+---
+P6 
+ij> -- PASS:0045 If PNUM = 'P6'?
+-- END TEST >>> 0045 <<< END TEST
+-- ***********************************************************
+-- TEST:0046 NOT BETWEEN predicate   !
+     SELECT CITY
+          FROM STAFF
+          WHERE GRADE NOT BETWEEN 12 AND 13;
+CITY           
+---------------
+Vienna         
+ij> -- PASS:0046 If CITY = 'Vienna'?
+      SELECT CITY
+           FROM STAFF
+           WHERE NOT(GRADE BETWEEN 12 AND 13);
+CITY           
+---------------
+Vienna         
+ij> -- PASS:0046 If CITY = 'Vienna'?
+-- END TEST >>> 0046 <<< END TEST
+-- *************************************************************
+-- TEST:0047 IN predicate!
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE STAFF.EMPNUM IN
+                  (SELECT WORKS.EMPNUM
+                        FROM WORKS
+                        WHERE WORKS.PNUM IN
+                              (SELECT PROJ.PNUM
+                                    FROM PROJ
+                                    WHERE PROJ.CITY='Tampa'));
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0047 If EMPNAME = 'Alice'?
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE STAFF.EMPNUM = ANY
+                 (SELECT WORKS.EMPNUM
+                       FROM WORKS
+                       WHERE WORKS.PNUM IN
+                            (SELECT PROJ.PNUM
+                                  FROM PROJ
+                                  WHERE PROJ.CITY='Tampa'));
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0047 If EMPNAME = 'Alice'?
+-- END TEST >>> 0047 <<< END TEST
+-- ***********************************************************
+-- TEST:0048 NOT IN predicate!
+     SELECT WORKS.HOURS
+          FROM WORKS
+          WHERE WORKS.PNUM NOT IN 
+                  (SELECT PROJ.PNUM
+                        FROM PROJ
+                        WHERE PROJ.BUDGET BETWEEN 5000 AND 40000);
+HOURS 
+------
+12    
+ij> -- PASS:0048 If HOURS = 12?
+     SELECT WORKS.HOURS
+          FROM WORKS
+          WHERE NOT (WORKS.PNUM IN 
+                 (SELECT PROJ.PNUM
+                       FROM PROJ
+                       WHERE PROJ.BUDGET BETWEEN 5000 AND 40000));
+HOURS 
+------
+12    
+ij> -- PASS:0048 If HOURS = 12?
+-- END TEST >>> 0048 <<< END TEST
+-- ****************************************************************
+-- TEST:0049 IN predicate value list!
+     SELECT HOURS
+          FROM WORKS
+          WHERE PNUM NOT IN 
+                 (SELECT PNUM
+                       FROM WORKS
+                       WHERE PNUM IN ('P1','P2','P4','P5','P6'));
+HOURS 
+------
+80    
+ij> -- PASS:0049 If HOURS = 80?
+     SELECT HOURS
+          FROM WORKS
+          WHERE NOT (PNUM IN 
+                 (SELECT PNUM
+                       FROM WORKS
+                       WHERE PNUM IN ('P1','P2','P4','P5','P6')));
+HOURS 
+------
+80    
+ij> -- PASS:0049 If HOURS = 80?
+-- END TEST >>> 0049 <<< END TEST
+-- **************************************************************
+-- TEST:0050 LIKE predicate -- %!
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE EMPNAME LIKE 'Al%';
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0050 If EMPNAME = 'Alice'?
+-- END TEST >>> 0050 <<< END TEST
+-- **************************************************************
+-- TEST:0051 LIKE predicate -- underscore!
+     SELECT CITY
+          FROM STAFF
+          WHERE EMPNAME LIKE 'B__t%';
+CITY           
+---------------
+Vienna         
+ij> -- PASS:0051 If CITY = 'Vienna'?
+-- END TEST >>> 0051 <<< END TEST
+-- *************************************************************
+-- TEST:0052 LIKE predicate -- ESCAPE character!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,'Xi_an%');
+1 row inserted/updated/deleted
+ij> -- PASS:0052 If 1 row is inserted?
+--O     SELECT CITY
+--O          FROM STAFF
+--O          WHERE CITY LIKE 'XiS___S%%'
+--O          ESCAPE 'S';
+-- PASS:0052 If CITY = 'Xi_an%' ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0052 <<< END TEST
+-- **************************************************************
+-- TEST:0053 NOT LIKE predicate!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,'Xi_an%');
+1 row inserted/updated/deleted
+ij> -- PASS:0053 If 1 row is inserted?
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE EMPNUM  NOT LIKE '_36';
+1          
+-----------
+5          
+ij> -- PASS:0053 If count = 5?
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE NOT(EMPNUM  LIKE '_36');
+1          
+-----------
+5          
+ij> -- PASS:0053 If count = 5?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0053 <<< END TEST
+-- ***************************************************************
+-- TEST:0054 IS NULL predicate!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0054 If 1 row is inserted?
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE CITY IS NULL;
+EMPNAME             
+--------------------
+Huyan               
+ij> -- PASS:0054 If EMPNAME = 'Huyan'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0054 <<< END TEST
+-- ************************************************************
+-- TEST:0055 NOT NULL predicate!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0055 If 1 row is inserted?
+     SELECT COUNT(*)
+          FROM STAFF;
+1          
+-----------
+6          
+ij> -- PASS:0055 If count = 6?
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE CITY IS NOT NULL;
+1          
+-----------
+5          
+ij> -- PASS:0055 If count = 5?
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE NOT (CITY IS NULL);
+1          
+-----------
+5          
+ij> -- PASS:0055 If count = 5?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0055 <<< END TEST
+-- ***************************************************************
+-- TEST:0056 NOT EXISTS predicate!
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE NOT EXISTS
+                 (SELECT *
+                       FROM PROJ
+                       WHERE NOT EXISTS
+                             (SELECT *
+                                   FROM WORKS
+                                   WHERE STAFF.EMPNUM = WORKS.EMPNUM
+                                   AND WORKS.PNUM=PROJ.PNUM));
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0056 If EMPNAME = 'Alice'?
+-- END TEST >>> 0056 <<< END TEST
+-- ************************************************************
+-- TEST:0057 ALL quantifier !
+     SELECT CITY
+          FROM PROJ
+          WHERE BUDGET > ALL
+                 (SELECT BUDGET
+                       FROM PROJ
+                       WHERE CITY='Vienna');
+CITY           
+---------------
+Deale          
+ij> -- PASS:0057 If CITY = 'Deale'?
+-- END TEST >>> 0057 <<< END TEST
+-- **************************************************************
+-- TEST:0058 SOME quantifier!
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE GRADE < SOME
+                 (SELECT BUDGET/1000 - 39 
+                       FROM PROJ
+                       WHERE CITY='Deale');
+EMPNAME             
+--------------------
+Betty               
+ij> -- PASS:0058 If EMPNAME = 'Betty'?
+-- END TEST >>> 0058 <<< END TEST
+-- *************************************************************
+-- TEST:0059 ANY quantifier !
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE GRADE < ANY
+                 (SELECT BUDGET/1000 - 39 
+                       FROM PROJ
+                       WHERE CITY = 'Deale');
+EMPNAME             
+--------------------
+Betty               
+ij> -- PASS:0059 If EMPNAME = 'Betty'?
+-- END TEST >>> 0059 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml015.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml015.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml015.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,80 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML015
+-- SQL Test Suite, V6.0, Interactive SQL, dml015.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:0060 COMMIT work closes CURSORs!
+-- Testing cursors
+-- ************************************************************
+-- TEST:0061 COMMIT work keeps changes to database!
+     INSERT INTO TEMP_S
+           SELECT EMPNUM, GRADE, CITY
+                FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0061 If 5 rows are inserted?
+     COMMIT WORK;
+ij> -- verify previous COMMIT keeps changes
+     ROLLBACK WORK;
+ij> --O     SELECT COUNT(*)
+     SELECT *
+          FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E1  |12   |Deale          
+E2  |10   |Vienna         
+E3  |13   |Vienna         
+E4  |12   |Deale          
+E5  |13   |Akron          
+ij> -- PASS:0061 If count = 5?
+-- END TEST >>> 0061 <<< END TEST
+-- ************************************************************
+-- TEST:0062 ROLLBACK work cancels changes to database!
+-- NOTE:0062 uses data created by TEST 0061
+     DELETE FROM TEMP_S
+           WHERE EMPNUM = 'E5';
+1 row inserted/updated/deleted
+ij> -- PASS:0062 If 1 row is deleted?
+--O        SELECT COUNT(*)
+        SELECT *
+             FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E1  |12   |Deale          
+E2  |10   |Vienna         
+E3  |13   |Vienna         
+E4  |12   |Deale          
+ij> -- PASS:0062 If count = 4?
+-- restore
+     ROLLBACK WORK;
+ij> --O     SELECT COUNT(*)
+        SELECT *
+          FROM TEMP_S;
+EMP&|GRADE|CITY           
+--------------------------
+E1  |12   |Deale          
+E2  |10   |Vienna         
+E3  |13   |Vienna         
+E4  |12   |Deale          
+E5  |13   |Akron          
+ij> -- PASS:0062 If count = 5?
+-- restore
+     DELETE FROM TEMP_S;
+5 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0062 <<< END TEST
+-- ***********************************************************
+-- NO_TEST:0063 ROLLBACK work closes CURSORs!
+-- Testing cursors
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml016.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml016.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml016.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,78 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML016
+-- SQL Test Suite, V6.0, Interactive SQL, dml016.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SULLIVAN
+   create schema SULLIVAN;
+0 rows inserted/updated/deleted
+ij> set schema SULLIVAN;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SULLIVAN1                                                                                                                       
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0064 SELECT USER!
+     SELECT USER, PNAME
+          FROM HU.PROJ;
+1                                                                                                                               |PNAME               
+-----------------------------------------------------------------------------------------------------------------------------------------------------
+SULLIVAN1                                                                                                                       |MXSS                
+SULLIVAN1                                                                                                                       |CALM                
+SULLIVAN1                                                                                                                       |SDP                 
+SULLIVAN1                                                                                                                       |SDP                 
+SULLIVAN1                                                                                                                       |IRM                 
+SULLIVAN1                                                                                                                       |PAYR                
+ij> -- PASS:0064 If 6 rows are selected and each USER = 'SULLIVAN' ?
+-- END TEST >>> 0064 <<< END TEST
+-- ***********************************************************
+-- NO_TEST:0172 SELECT USER into short variable!
+-- Tests Host Variable
+-- **********************************************************
+-- TEST:0065 SELECT CHAR literal and term with numeric literal!
+     SELECT 'USER',PNAME
+          FROM HU.PROJ;
+1   |PNAME               
+-------------------------
+USER|MXSS                
+USER|CALM                
+USER|SDP                 
+USER|SDP                 
+USER|IRM                 
+USER|PAYR                
+ij> -- PASS:0065 If 6 rows are selected and first column is value 'USER'?
+     SELECT PNUM,'BUDGET IN GRAMS IS ',BUDGET * 5
+          FROM HU.PROJ
+          WHERE PNUM = 'P1';
+PN&|2                  |3                   
+--------------------------------------------
+P1 |BUDGET IN GRAMS IS |50000               
+ij> -- PASS:0065 If values are 'P1', 'BUDGET IN GRAMS IS ', 50000?
+-- END TEST >>> 0065 <<< END TEST
+-- ************************************************************
+-- TEST:0066 SELECT numeric literal!
+     SELECT EMPNUM,10
+          FROM HU.STAFF
+          WHERE GRADE = 10;
+EM&|2          
+---------------
+E2 |10         
+ij> -- PASS:0066 If 1 row with values 'E2' and 10?
+     SELECT EMPNUM, 10
+          FROM HU.STAFF;
+EM&|2          
+---------------
+E1 |10         
+E2 |10         
+E3 |10         
+E4 |10         
+E5 |10         
+ij> -- PASS:0066 If 5 rows are selected with second value always = 10?
+-- PASS:0066 and EMPNUMs are 'E1', 'E2', 'E3', 'E4', 'E5'?
+-- END TEST >>> 0066 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml018.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml018.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml018.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,89 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML018
+-- SQL Test Suite, V6.0, Interactive SQL, dml018.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0069 HAVING COUNT with WHERE, GROUP BY!
+     SELECT PNUM
+          FROM WORKS
+          WHERE PNUM > 'P1'
+          GROUP BY PNUM
+          HAVING COUNT(*) > 1;
+PN&
+---
+P2 
+P4 
+P5 
+ij> -- PASS:0069 If 3 rows are selected with PNUMs = 'P2', 'P4', 'P5'?
+-- END TEST >>> 0069 <<< END TEST
+-- ***********************************************************
+-- TEST:0070 HAVING COUNT with GROUP BY!
+     SELECT PNUM
+          FROM WORKS
+          GROUP BY PNUM
+          HAVING COUNT(*) > 2;
+PN&
+---
+P2 
+ij> -- PASS:0070 If PNUM = 'P2'?
+-- END TEST >>> 0070 <<< END TEST
+-- ***********************************************************
+-- TEST:0071 HAVING MIN, MAX with GROUP BY 3 columns!
+     SELECT EMPNUM, PNUM, HOURS
+          FROM WORKS
+          GROUP BY PNUM, EMPNUM, HOURS
+          HAVING MIN(HOURS) > 12 AND MAX(HOURS) < 80;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E2 |P1 |40    
+E1 |P2 |20    
+E3 |P2 |20    
+E4 |P2 |20    
+E1 |P4 |20    
+E4 |P4 |40    
+ij> -- PASS:0071 If 7 rows are selected: EMPNUM/PNUMs are 'E1'/'P1',?
+-- PASS:0071      'E1'/'P2','E1'/'P4', 'E2'/'P1',?
+-- PASS:0071      'E3'/'P2', 'E4'/'P2', 'E4'/'P4'?
+-- END TEST >>> 0071 <<< END TEST
+-- *************************************************************
+-- TEST:0072 Nested HAVING IN with no outer reference!
+     SELECT WORKS.PNUM
+          FROM WORKS
+          GROUP BY WORKS.PNUM
+          HAVING WORKS.PNUM IN (SELECT PROJ.PNUM
+                    FROM PROJ
+                    GROUP BY PROJ.PNUM
+                    HAVING SUM(PROJ.BUDGET) > 25000)
+-- Derby change to standardize order for diff
+	order by works.pnum;
+PN&
+---
+P2 
+P3 
+P6 
+ij> -- PASS:0072 If 3 rows are selected: WORKS.PNUMs are 'P2', 'P3', 'P6'?
+-- END TEST >>> 0072 <<< END TEST
+-- ***********************************************************
+-- TEST:0073 HAVING MIN with no GROUP BY!
+     SELECT SUM(HOURS)
+          FROM WORKS
+          HAVING MIN(PNUM) > 'P0';
+1          
+-----------
+464        
+ij> -- PASS:0073 If 1 row is selected with SUM(HOURS) = 464?
+-- END TEST >>> 0073 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml019.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml019.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml019.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,146 @@
+ij> -- MODULE DML019
+-- SQL Test Suite, V6.0, Interactive SQL, dml019.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
+-- TEST:0074 GROUP BY col with SELECT col., SUM!
+     SELECT PNUM, SUM(HOURS)                 
+          FROM WORKS                              
+          GROUP BY PNUM;
+PN&|2          
+---------------
+P1 |80         
+P2 |140        
+P3 |80         
+P4 |60         
+P5 |92         
+P6 |12         
+ij> -- PASS:0074 If 6 rows are selected?
+-- PASS:0074 If PNUMs: 'P1', 'P2', 'P3', 'P4', 'P5', 'P6'?
+-- PASS:0074 If SUM(HOURS) for 'P2' is 140 ?
+-- END TEST >>> 0074 <<< END TEST
+-- **********************************************************
+-- TEST:0075 GROUP BY clause!
+     SELECT EMPNUM                           
+          FROM WORKS                              
+          GROUP BY EMPNUM
+-- Derby change to standardize order for diff
+	order by empnum;
+EM&
+---
+E1 
+E2 
+E3 
+E4 
+ij> -- PASS:0075 If 4 rows are selected with EMPNUMs: 'E1','E2','E3','E4'?
+-- END TEST >>> 0075 <<< END TEST
+-- ************************************************************
+-- TEST:0076 GROUP BY 2 columns!
+     SELECT EMPNUM,HOURS                     
+          FROM WORKS                              
+          GROUP BY EMPNUM,HOURS
+-- Derby change to standardize order for diff
+	order by empnum, hours;
+EM&|HOURS 
+----------
+E1 |12    
+E1 |20    
+E1 |40    
+E1 |80    
+E2 |40    
+E2 |80    
+E3 |20    
+E4 |20    
+E4 |40    
+E4 |80    
+ij> -- PASS:0076 If 10 rows are selected and EMPNUM = 'E1' in 4 rows ?
+-- PASS:0076 for 1 row EMPNUM = 'E1' and HOURS = 12?
+-- END TEST >>> 0076 <<< END TEST
+-- ***********************************************************
+-- TEST:0077 GROUP BY all columns with SELECT * !
+     SELECT *                    
+          FROM WORKS                              
+          GROUP BY PNUM,EMPNUM,HOURS;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P2 |20    
+E4 |P4 |40    
+E4 |P5 |80    
+ij> -- PASS:0077 If 12 rows are selected ?
+-- END TEST >>> 0077 <<< END TEST
+-- ***********************************************************
+-- TEST:0078 GROUP BY three columns, SELECT two!
+     SELECT PNUM,EMPNUM                      
+          FROM WORKS                              
+          GROUP BY EMPNUM,PNUM,HOURS;
+PN&|EM&
+-------
+P1 |E1 
+P2 |E1 
+P3 |E1 
+P4 |E1 
+P5 |E1 
+P6 |E1 
+P1 |E2 
+P2 |E2 
+P2 |E3 
+P2 |E4 
+P4 |E4 
+P5 |E4 
+ij> -- PASS:0078 If 12 rows are selected  ?
+-- END TEST >>> 0078 <<< END TEST
+-- *********************************************************
+-- TEST:0079 GROUP BY NULL value!
+-- setup
+     INSERT INTO STAFF(EMPNUM,EMPNAME,GRADE)
+            VALUES('E6','WANG',40);
+1 row inserted/updated/deleted
+ij> -- PASS:0079 If 1 row is inserted?
+     INSERT INTO STAFF(EMPNUM,EMPNAME,GRADE)
+            VALUES('E7','SONG',50);
+1 row inserted/updated/deleted
+ij> -- PASS:0079 If 1 row is inserted?
+     SELECT SUM(GRADE)                       
+          FROM STAFF                            
+          WHERE CITY IS NULL                     
+          GROUP BY CITY;
+1        
+---------
+90       
+ij> -- PASS:0079 If SUM(GRADE) = 90?
+-- restore
+   DELETE FROM STAFF WHERE CITY IS NULL;
+2 rows inserted/updated/deleted
+ij> -- PASS:0079 If 2 rows deleted?
+--O   SELECT COUNT(*) FROM STAFF;
+   SELECT * FROM STAFF;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:0079 If count = 5?
+-- END TEST >>> 0079 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml020.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml020.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml020.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,85 @@
+ij> -- MODULE DML020
+-- SQL Test Suite, V6.0, Interactive SQL, dml020.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
+-- TEST:0080 Simple two-table join!
+     SELECT EMPNUM,EMPNAME,GRADE,STAFF.CITY, PNAME, PROJ.CITY          
+          FROM STAFF, PROJ                                                   
+          WHERE STAFF.CITY = PROJ.CITY
+		ORDER BY EMPNUM, EMPNAME, GRADE, STAFF.CITY, PNAME;
+EM&|EMPNAME             |GRADE|CITY           |PNAME               |CITY           
+-----------------------------------------------------------------------------------
+E1 |Alice               |12   |Deale          |MXSS                |Deale          
+E1 |Alice               |12   |Deale          |PAYR                |Deale          
+E1 |Alice               |12   |Deale          |SDP                 |Deale          
+E2 |Betty               |10   |Vienna         |CALM                |Vienna         
+E2 |Betty               |10   |Vienna         |IRM                 |Vienna         
+E3 |Carmen              |13   |Vienna         |CALM                |Vienna         
+E3 |Carmen              |13   |Vienna         |IRM                 |Vienna         
+E4 |Don                 |12   |Deale          |MXSS                |Deale          
+E4 |Don                 |12   |Deale          |PAYR                |Deale          
+E4 |Don                 |12   |Deale          |SDP                 |Deale          
+ij> -- PASS:0080 If 10 rows are selected with EMPNAMEs:'Alice', 'Betty', ?
+-- PASS:0080 'Carmen', and 'Don' but not 'Ed'?
+-- END TEST >>> 0080 <<< END TEST
+-- **************************************************************
+-- TEST:0081 Simple two-table join with filter!
+--
+-- Added ORDER BY clause to get stable results across platforms - Jeff
+     SELECT EMPNUM,EMPNAME,GRADE,STAFF.CITY,PNUM,PNAME,         
+                                PTYPE,BUDGET,PROJ.CITY                        
+          FROM STAFF, PROJ                                                  
+          WHERE STAFF.CITY = PROJ.CITY                                       
+          AND GRADE <> 12
+		ORDER BY EMPNUM, EMPNAME, GRADE, STAFF.CITY, PNUM, PNAME;
+EM&|EMPNAME             |GRADE|CITY           |PN&|PNAME               |PTYPE |BUDGET    |CITY           
+---------------------------------------------------------------------------------------------------------
+E2 |Betty               |10   |Vienna         |P2 |CALM                |Code  |30000     |Vienna         
+E2 |Betty               |10   |Vienna         |P5 |IRM                 |Test  |10000     |Vienna         
+E3 |Carmen              |13   |Vienna         |P2 |CALM                |Code  |30000     |Vienna         
+E3 |Carmen              |13   |Vienna         |P5 |IRM                 |Test  |10000     |Vienna         
+ij> -- PASS:0081 If 4 rows selected with EMPNAMEs 'Betty' and 'Carmen' ?
+-- END TEST >>> 0081 <<< END TEST
+-- ************************************************************** 
+-- TEST:0082 Join 3 tables!
+     SELECT DISTINCT STAFF.CITY, PROJ.CITY                                
+          FROM STAFF, WORKS, PROJ                                            
+          WHERE STAFF.EMPNUM = WORKS.EMPNUM                                 
+          AND WORKS.PNUM = PROJ.PNUM
+		ORDER BY STAFF.CITY, PROJ.CITY;
+CITY           |CITY           
+-------------------------------
+Deale          |Deale          
+Deale          |Tampa          
+Deale          |Vienna         
+Vienna         |Deale          
+Vienna         |Vienna         
+ij> -- PASS:0082 If 5 distinct rows are selected ?
+-- END TEST >>> 0082 <<< END TEST
+-- ************************************************************
+-- TEST:0083 Join a table with itself!
+     SELECT FIRST1.EMPNUM, SECOND2.EMPNUM                               
+          FROM STAFF FIRST1, STAFF SECOND2                                   
+          WHERE FIRST1.CITY = SECOND2.CITY                                  
+          AND FIRST1.EMPNUM < SECOND2.EMPNUM
+		ORDER BY FIRST1.EMPNUM, SECOND2.EMPNUM;
+EM&|EM&
+-------
+E1 |E4 
+E2 |E3 
+ij> -- PASS:0083 If 2 rows are selected and ?
+-- PASS:0083 If EMPNUM pairs are 'E1'/'E4' and 'E2'/'E3'?
+-- END TEST >>> 0083 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml021.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml021.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml021.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,212 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML021
+-- SQL Test Suite, V6.0, Interactive SQL, dml021.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
+-- TEST:0084 Data type CHAR(20)!
+-- setup
+     INSERT INTO AA
+            VALUES('abcdefghijklmnopqrst');
+1 row inserted/updated/deleted
+ij> -- PASS:0084 If 1 row is inserted?
+     SELECT CHARTEST                                                   
+          FROM   AA;
+CHARTEST            
+--------------------
+abcdefghijklmnopqrst
+ij> -- PASS:0084 If CHARTEST = 'abcdefghijklmnopqrst' ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0084 <<< END TEST
+-- *************************************************************
+-- TEST:0173 Data type CHAR!
+-- setup
+     INSERT INTO BB
+            VALUES('a');
+1 row inserted/updated/deleted
+ij> -- PASS:0173 If 1 row is inserted?
+     SELECT CHARTEST                                                    
+          FROM BB;
+CHA&
+----
+a   
+ij> -- PASS:0173 If CHARTEST = 'a'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0173 <<< END TEST
+-- *****************************************************************
+-- TEST:0085 Data type CHARACTER(20)!
+-- setup
+     INSERT INTO CC
+            VALUES('abcdefghijklmnopqrst');
+1 row inserted/updated/deleted
+ij> -- PASS:0085 If 1 row is inserted?
+     SELECT CHARTEST                                                   
+          FROM CC;
+CHARTEST            
+--------------------
+abcdefghijklmnopqrst
+ij> -- PASS:0085 If CHARTEST = 'abcdefghijklmnopqrst'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0085 <<< END TEST
+-- *************************************************************
+-- TEST:0174 Data type CHARACTER!
+-- setup
+     INSERT INTO DD
+            VALUES('a');
+1 row inserted/updated/deleted
+ij> -- PASS:0174 If 1 row is inserted?
+     SELECT CHARTEST                                                    
+          FROM DD;
+CHA&
+----
+a   
+ij> -- PASS:0174 If CHARTEST = 'a'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0174 <<< END TEST
+-- ****************************************************************
+-- TEST:0086 Data type INTEGER!
+-- setup
+     INSERT INTO EE
+            VALUES(123456);
+1 row inserted/updated/deleted
+ij> -- PASS:0086 If 1 row is inserted?
+     SELECT INTTEST                                                     
+          FROM EE;
+INTTEST    
+-----------
+123456     
+ij> -- PASS:0086 If INTTEST = 123456?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0086 <<< END TEST
+-- ***************************************************************
+-- TEST:0087 Data type INT!
+-- setup 
+     INSERT INTO FF
+            VALUES(123456);
+1 row inserted/updated/deleted
+ij> -- PASS:0087 If 1 row is inserted?
+     SELECT INTTEST  
+          FROM FF;
+INTTEST    
+-----------
+123456     
+ij> -- PASS:0087 If INTTEST = 123456?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0087 <<< END TEST
+-- **************************************************************
+-- TEST:0089 Data type SMALLINT!
+-- setup
+     INSERT INTO HH
+            VALUES(123);
+1 row inserted/updated/deleted
+ij> -- PASS:0089 If 1 row is inserted?
+     SELECT *
+          FROM HH;
+SMALL&
+------
+123   
+ij> -- PASS:0089 If SMALLTEST = 123?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0089 <<< END TEST
+-- ****************************************************************
+-- TEST:0175 Data type NUMERIC!
+-- setup
+     INSERT INTO MM
+            VALUES(7);
+1 row inserted/updated/deleted
+ij> -- PASS:0175 If 1 row is inserted?
+     SELECT *
+          FROM MM;
+NUMTE&
+------
+7     
+ij> -- PASS:0175 If NUMTEST = 7?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0175 <<< END TEST
+-- ****************************************************************
+-- TEST:0176 Data type NUMERIC(9), SELECT *!
+-- making sure table is empty
+     DELETE FROM NN;
+0 rows inserted/updated/deleted
+ij> -- setup
+     INSERT INTO NN
+            VALUES(123456789);
+1 row inserted/updated/deleted
+ij> -- PASS:0176 If 1 row is inserted?
+     SELECT *
+          FROM NN;
+NUMTEST   
+----------
+123456789 
+ij> -- PASS:0176 If NUMTEST = 123456789 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0176 <<< END TEST
+-- *****************************************************************
+-- TEST:0177 Data type NUMERIC(9), SELECT column!
+-- setup
+     INSERT INTO OO
+            VALUES(123456789);
+1 row inserted/updated/deleted
+ij> -- PASS:0177 If 1 row is inserted ?
+     SELECT NUMTEST
+          FROM OO;
+NUMTEST   
+----------
+123456789 
+ij> -- PASS:0177 If NUMTEST = 123456789?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0177 <<< END TEST
+-- **************************************************************
+-- TEST:0178 Data type DECIMAL!
+-- setup
+     INSERT INTO QQ
+            VALUES(56);
+1 row inserted/updated/deleted
+ij> -- PASS:0178 If 1 row is inserted?
+     SELECT *
+          FROM QQ;
+NUMTE&
+------
+56    
+ij> -- PASS:0178 If NUMTEST = 56?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0178 <<< END TEST
+-- **************************************************************
+-- TEST:0179 Data type DECIMAL(8)!
+-- setup
+     INSERT INTO RR
+            VALUES(12345678);
+1 row inserted/updated/deleted
+ij> -- PASS:0179  If 1 row is inserted?
+     SELECT *
+          FROM RR;
+NUMTEST  
+---------
+12345678 
+ij> -- PASS:0179 If NUMTEST = 12345678?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0179 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml022.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml022.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml022.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,143 @@
+ij> -- MODULE DML022
+-- SQL Test Suite, V6.0, Interactive SQL, dml022.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0096 Subquery with MAX in < comparison predicate!
+     SELECT EMPNUM                                                         
+          FROM STAFF                                                           
+          WHERE GRADE <                                                        
+             (SELECT MAX(GRADE)                                                
+              FROM STAFF);
+EM&
+---
+E1 
+E2 
+E4 
+ij> -- PASS:0096 If 3 rows selected with EMPNUMs:'E1', 'E2', 'E4'?
+-- END TEST >>> 0096 <<< END TEST
+-- **********************************************************
+-- TEST:0097 Subquery with AVG - 1 in <= comparison predicate!
+     SELECT *                                                            
+          FROM STAFF                                                          
+          WHERE GRADE <=                                                    
+             (SELECT AVG(GRADE)-1                                           
+              FROM STAFF);
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E2 |Betty               |10   |Vienna         
+ij> -- PASS:0097 If EMPNUM = 'E2' and EMPNAME = 'Betty'?
+-- END TEST >>> 0097 <<< END TEST
+-- *******************************************************************
+-- TEST:0098 IN predicate with simple subquery!
+     SELECT EMPNAME                                                     
+          FROM STAFF                                                         
+          WHERE EMPNUM IN                                                   
+             (SELECT EMPNUM                                                  
+              FROM WORKS                                                   
+              WHERE PNUM = 'P2')
+     ORDER BY EMPNAME;
+EMPNAME             
+--------------------
+Alice               
+Betty               
+Carmen              
+Don                 
+ij> -- PASS:0098 If 4 rows selected and first EMPNAME = 'Alice'?
+-- END TEST >>> 0098 <<< END TEST
+-- ***************************************************************
+-- TEST:0099 Nested IN predicate - 2 levels!
+     SELECT EMPNAME                                                     
+          FROM STAFF                                                      
+          WHERE EMPNUM IN 
+             (SELECT EMPNUM                                                 
+              FROM WORKS                                                     
+              WHERE PNUM IN                                                   
+                 (SELECT PNUM                                                 
+                  FROM PROJ                                                  
+                  WHERE PTYPE = 'Design'));
+EMPNAME             
+--------------------
+Alice               
+Betty               
+Don                 
+ij> -- PASS:0099 If 3 rows selected with EMPNAMEs:'Alice', 'Betty', 'Don'?
+-- END TEST >>> 0099 <<< END TEST
+-- *****************************************************************
+-- TEST:0100 Nested IN predicate - 6 levels!
+     SELECT EMPNUM, EMPNAME                                             
+          FROM STAFF
+          WHERE EMPNUM IN                                                   
+             (SELECT EMPNUM                                                 
+              FROM WORKS                                                     
+              WHERE PNUM IN                                                    
+                 (SELECT PNUM                                                
+                  FROM PROJ                                                
+                  WHERE PTYPE IN                                              
+                     (SELECT PTYPE                                           
+                      FROM PROJ                                              
+                      WHERE PNUM IN                                          
+                         (SELECT PNUM                                          
+                          FROM WORKS
+                          WHERE EMPNUM IN                                    
+                             (SELECT EMPNUM                                   
+                              FROM WORKS                                     
+                              WHERE PNUM IN                                  
+                                 (SELECT PNUM                                
+                                  FROM PROJ                                  
+                                  WHERE PTYPE = 'Design'))))))
+     ORDER BY EMPNUM;
+EM&|EMPNAME             
+------------------------
+E1 |Alice               
+E2 |Betty               
+E3 |Carmen              
+E4 |Don                 
+ij> -- PASS:0100 If 4 rows selected and first EMPNUM = 'E1'?
+-- PASS:0100 and first EMPNAME = 'Alice'?
+-- END TEST >>> 0100 <<< END TEST
+-- ****************************************************************
+-- TEST:0101 Quantified predicate <= ALL with AVG in GROUP BY!
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                       
+          WHERE  HOURS <= ALL                                                 
+               (SELECT AVG(HOURS)                                            
+                FROM   WORKS                                                 
+                GROUP BY PNUM);
+EM&|PN&
+-------
+E1 |P5 
+E1 |P6 
+ij> -- PASS:0101 If 2 rows selected and each EMPNUM = 'E1'?
+-- END TEST >>> 0101 <<< END TEST
+-- *******************************************************************
+-- TEST:0102 Nested NOT EXISTS with correlated subquery and DISTINCT!
+     SELECT DISTINCT EMPNUM                                             
+          FROM WORKS WORKSX                                               
+          WHERE NOT EXISTS                                                    
+             (SELECT *                                                        
+              FROM WORKS WORKSY                                              
+              WHERE EMPNUM = 'E2'                                            
+              AND NOT EXISTS                                                
+                  (SELECT *                                                 
+                   FROM WORKS WORKSZ                                         
+                   WHERE WORKSZ.EMPNUM = WORKSX.EMPNUM
+                   AND WORKSZ.PNUM = WORKSY.PNUM));
+EM&
+---
+E1 
+E2 
+ij> -- PASS:0102 If 2 rows selected with EMPNUMs:'E1', 'E2'?
+-- END TEST >>> 0102 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml023.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml023.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml023.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,153 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML023
+-- SQL Test Suite, V6.0, Interactive SQL, dml023.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
+-- TEST:0103 Subquery with comparison predicate!
+     SELECT PNUM                                                        
+          FROM PROJ                                                            
+          WHERE PROJ.CITY =                                                  
+             (SELECT STAFF.CITY                                              
+              FROM STAFF                                                     
+              WHERE EMPNUM = 'E1');
+PN&
+---
+P1 
+P4 
+P6 
+ij> -- PASS:0103 If 3 rows are selected with PNUMs:'P1','P4','P6?
+-- END TEST >>> 0103 <<< END TEST
+-- **************************************************************
+-- TEST:0104 SQLCODE < 0, subquery with more than 1 value!
+     SELECT PNUM                                                       
+          FROM PROJ                                                          
+          WHERE PROJ.CITY =                                                  
+             (SELECT STAFF.CITY                                              
+              FROM STAFF                                                    
+              WHERE EMPNUM > 'E1' );
+ERROR 21000: Scalar subquery is only allowed to return a single row.
+ij> -- PASS:0104 If ERROR, SELECT returns more than 1 row in subquery?
+-- PASS:0104 If 0 rows are selected?
+-- END TEST >>> 0104 <<< END TEST
+-- ************************************************************
+-- TEST:0105 Subquery in comparison predicate is empty!
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF
+          WHERE STAFF.CITY =
+              (SELECT PROJ.CITY
+                    FROM PROJ
+                    WHERE PNUM > 'P7');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ij> -- PASS:0105 If count = 0?
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF
+          WHERE NOT (STAFF.CITY =
+                  (SELECT PROJ.CITY
+                        FROM PROJ
+                        WHERE PNUM > 'P7' ));
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ij> -- PASS:0105 If count = 0?
+-- END TEST >>> 0105 <<< END TEST
+-- *************************************************************
+-- TEST:0106 Comparison predicate <> !
+     SELECT PNUM                                                         
+          FROM PROJ                                                          
+          WHERE CITY <> 'Deale';
+PN&
+---
+P2 
+P3 
+P5 
+ij> -- PASS:0106 If 3 rows are selected with PNUMs:'P2','P3','P5'?
+-- END TEST >>> 0106 <<< END TEST
+-- *************************************************************
+-- TEST:0107 Comp predicate with short string logically blank padded!
+--O     SELECT COUNT(*)
+     SELECT empnum
+          FROM WORKS
+          WHERE EMPNUM = 'E1';
+EM&
+---
+E1 
+E1 
+E1 
+E1 
+E1 
+E1 
+ij> -- PASS:0107 If count = 6 ?
+--O     SELECT COUNT(*)
+     SELECT empnum
+          FROM WORKS
+          WHERE EMPNUM = 'E1' AND EMPNUM = 'E1 ';
+EM&
+---
+E1 
+E1 
+E1 
+E1 
+E1 
+E1 
+ij> -- PASS:0107 If count = 6?
+-- END TEST >>> 0107 <<< END TEST
+-- ****************************************************************
+-- TEST:0180 NULLs sort together in ORDER BY!
+-- setup
+     UPDATE STAFF
+          SET GRADE = NULL
+          WHERE EMPNUM = 'E1' OR EMPNUM = 'E3' OR EMPNUM = 'E5';
+3 rows inserted/updated/deleted
+ij> -- PASS:0180 If 3 rows are updated?
+     SELECT EMPNUM,GRADE                                                 
+          FROM   STAFF                                                        
+          ORDER  BY GRADE,EMPNUM;
+EM&|GRADE
+---------
+E2 |10   
+E4 |12   
+E1 |NULL 
+E3 |NULL 
+E5 |NULL 
+ij> -- PASS:0180 If 5 rows are selected with NULLs together ?
+-- PASS:0180 If first EMPNUM is either 'E1' or 'E2'?
+-- PASS:0180 If last EMPNUM is either 'E4' or 'E5?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0180 <<< END TEST
+-- ***************************************************************
+-- TEST:0181 NULLs are equal for DISTINCT!
+-- setup
+     UPDATE STAFF
+          SET GRADE = NULL
+          WHERE EMPNUM = 'E1' OR EMPNUM = 'E3' OR EMPNUM = 'E5';
+3 rows inserted/updated/deleted
+ij> -- PASS:0181 If 3 rows are updated?
+     SELECT DISTINCT USER, GRADE                                               
+          FROM   STAFF                                                        
+          ORDER  BY GRADE;
+1                                                                                                                               |GRADE
+--------------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              |10   
+HU                                                                                                                              |12   
+HU                                                                                                                              |NULL 
+ij> -- PASS:0181 If 3 rows are selected with GRADEs:10, 12, NULL ?
+-- PASS:0181 GRADE 10 precedes GRADE 12?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0181 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml024.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml024.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml024.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,128 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML024
+-- SQL Test Suite, V6.0, Interactive SQL, dml024.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
+-- TEST:0108 Search condition true OR NOT(true)!
+     SELECT EMPNUM,CITY                                                 
+          FROM   STAFF                                                        
+          WHERE  EMPNUM='E1' OR NOT(EMPNUM='E1');
+EM&|CITY           
+-------------------
+E1 |Deale          
+E2 |Vienna         
+E3 |Vienna         
+E4 |Deale          
+E5 |Akron          
+ij> -- PASS:0108 If 5 rows are selected ?
+-- END TEST >>> 0108 <<< END TEST
+-- ****************************************************************
+-- TEST:0109 Search condition true AND NOT(true)!
+     SELECT EMPNUM,CITY                                                  
+          FROM   STAFF                                                       
+          WHERE  EMPNUM='E1' AND NOT(EMPNUM='E1');
+EM&|CITY           
+-------------------
+ij> -- PASS:0109 If 0 rows are selected ?
+-- END TEST >>> 0109 <<< END TEST
+-- **************************************************************
+-- TEST:0110 Search condition unknown OR NOT(unknown)!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0110 If 1 row is inserted?
+     SELECT EMPNUM,PNUM                                                  
+          FROM   WORKS                                                       
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                     
+          OR NOT(HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8'));
+EM&|PN&
+-------
+ij> -- PASS:0110 If 0 rows are selected ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0110 <<< END TEST
+-- *************************************************************
+-- TEST:0111 Search condition unknown AND NOT(unknown)!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0111 If 1 row is inserted?
+     SELECT EMPNUM,PNUM                                                
+          FROM   WORKS                                                       
+          WHERE HOURS < (SELECT HOURS FROM WORKS                            
+                    WHERE EMPNUM = 'E8')                                     
+          AND NOT(HOURS< (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8'));
+EM&|PN&
+-------
+ij> -- PASS:0111 If 0 rows are selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0111 <<< END TEST
+-- ***************************************************************
+-- TEST:0112 Search condition unknown AND true!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0112 If 1 row is inserted?
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                      
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                      
+          AND   HOURS IN (SELECT HOURS FROM WORKS);
+EM&|PN&
+-------
+ij> -- PASS:0112 If 0 rows are selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0112 <<< END TEST
+-- *************************************************************
+-- TEST:0113 Search condition unknown OR true!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0113 If 1 row is inserted?
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                        
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                     
+          OR    HOURS IN (SELECT HOURS FROM WORKS)
+          ORDER BY EMPNUM;
+EM&|PN&
+-------
+E1 |P6 
+E1 |P5 
+E1 |P4 
+E1 |P3 
+E1 |P2 
+E1 |P1 
+E2 |P2 
+E2 |P1 
+E3 |P2 
+E4 |P5 
+E4 |P4 
+E4 |P2 
+ij> -- PASS:0113 If 12 rows are selected?
+-- PASS:0113 If first EMPNUM = 'E1'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0113 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml025.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml025.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml025.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,64 @@
+ij> -- MODULE DML025
+-- SQL Test Suite, V6.0, Interactive SQL, dml025.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0114 Set functions without GROUP BY returns 1 row!
+     SELECT SUM(HOURS),AVG(HOURS),MIN(HOURS),MAX(HOURS)                 
+          FROM    WORKS                                                      
+          WHERE   EMPNUM='E1';
+1          |2            |3     |4     
+---------------------------------------
+184        |30.6666      |12    |80    
+ij> -- PASS:0114 If SUM(HOURS) = 184 and AVG(HOURS) is 30 to 31?
+-- PASS:0114 If MIN(HOURS) = 12 and MAX(HOURS) = 80 ?
+-- END TEST >>> 0114 <<< END TEST
+-- ***********************************************************
+-- TEST:0115 GROUP BY col, set function: 0 groups returns empty table!
+     SELECT PNUM,AVG(HOURS),MIN(HOURS),MAX(HOURS)                        
+          FROM    WORKS                                                        
+          WHERE   EMPNUM='E8'                                                
+          GROUP BY PNUM;
+PN&|2            |3     |4     
+-------------------------------
+ij> -- PASS:0115 If 0 rows are selected ?
+-- END TEST >>> 0115 <<< END TEST
+-- ***********************************************************
+-- TEST:0116 GROUP BY set functions: zero groups returns empty table!
+     SELECT SUM(HOURS),AVG(HOURS),MIN(HOURS),MAX(HOURS)
+          FROM    WORKS                                                      
+          WHERE   EMPNUM='E8'                                                
+          GROUP BY PNUM;
+1          |2            |3     |4     
+---------------------------------------
+ij> -- PASS:0116 If 0 rows are selected?
+-- END TEST >>> 0116 <<< END TEST
+-- ***************************************************************
+-- TEST:0117 GROUP BY column, set functions with several groups!
+     SELECT PNUM,AVG(HOURS),MIN(HOURS),MAX(HOURS)                       
+          FROM    WORKS                                                      
+          GROUP BY PNUM
+          ORDER BY PNUM;
+PN&|2            |3     |4     
+-------------------------------
+P1 |40.0000      |40    |40    
+P2 |35.0000      |20    |80    
+P3 |80.0000      |80    |80    
+P4 |30.0000      |20    |40    
+P5 |46.0000      |12    |80    
+P6 |12.0000      |12    |12    
+ij> -- PASS:0117 If 6 rows are selected and first PNUM = 'P1'?
+-- PASS:0117 and first MAX(HOURS) = 40?
+-- END TEST >>> 0117 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml026.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml026.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml026.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,122 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML026
+-- SQL Test Suite, V6.0, Interactive SQL, dml026.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
+-- TEST:0118 Monadic arithmetic operator +!
+      SELECT +MAX(DISTINCT HOURS)
+              FROM WORKS;
+1     
+------
+80    
+ij> -- PASS:0118 If +MAX(DISTINCT HOURS) = 80?
+-- END TEST >>> 0118 <<< END TEST
+-- *********************************************************
+-- TEST:0119 Monadic arithmetic operator -!
+      SELECT -MAX(DISTINCT HOURS)
+              FROM WORKS;
+1     
+------
+-80   
+ij> -- PASS:0119 If -MAX(DISTINCT HOURS) = -80?
+-- END TEST >>> 0119 <<< END TEST
+-- *********************************************************
+-- TEST:0120 Value expression with NULL primary IS NULL!
+-- setup
+     INSERT INTO WORKS1
+            SELECT * 
+                 FROM WORKS;
+12 rows inserted/updated/deleted
+ij> -- PASS:0120 If 12 rows are inserted ?
+-- setup
+     INSERT INTO WORKS1
+            VALUES('E9','P1',NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0120 If 1 row is inserted?
+      SELECT EMPNUM
+           FROM WORKS1
+           WHERE HOURS IS NULL;
+EM&
+---
+E9 
+ij> -- PASS:0120 If EMPNUM = 'E9'?
+-- NOTE:0120 we insert into WORKS from WORKS1
+-- setup
+     INSERT INTO WORKS
+            SELECT EMPNUM,'P9',20+HOURS
+                 FROM WORKS1
+                 WHERE EMPNUM='E9';
+1 row inserted/updated/deleted
+ij> -- PASS:0120 If 1 row is inserted?
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM WORKS
+           WHERE EMPNUM='E9';
+EM&|PN&|HOURS 
+--------------
+E9 |P9 |NULL  
+ij> -- PASS:0120 If count = 1      ?
+--O      SELECT COUNT(*)
+      SELECT *
+              FROM WORKS
+              WHERE HOURS IS NULL;
+EM&|PN&|HOURS 
+--------------
+E9 |P9 |NULL  
+ij> -- PASS:0120 If count = 1 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0120 <<< END TEST
+-- **********************************************************
+-- TEST:0121 Dyadic operators +, -, *, /!
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM VTABLE;
+COL1       |COL2       |COL3       |COL4       |COL5      
+----------------------------------------------------------
+10         |20         |30         |40         |10.50     
+0          |1          |2          |3          |4.25      
+100        |200        |300        |400        |500.01    
+1000       |-2000      |3000       |NULL       |4000.00   
+ij> -- PASS:0121 If count = 4 ?
+      SELECT +COL1+COL2 - COL3*COL4/COL1
+              FROM VTABLE
+              WHERE COL1=10;
+1          
+-----------
+-90        
+ij> -- PASS:0121 If answer is -90?
+-- END TEST >>> 0121 <<< END TEST
+-- *********************************************************
+-- TEST:0122 Divisor shall not be zero!
+      SELECT COL2/COL1+COL3
+              FROM VTABLE
+              WHERE COL4=3;
+1          
+-----------
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0122 If ERROR Number not Divisible by Zero?
+-- END TEST >>> 0122 <<< END TEST
+-- **********************************************************
+-- TEST:0123 Evaluation order of expression!
+      SELECT (-COL2+COL1)*COL3 - COL3/COL1
+              FROM VTABLE
+              WHERE COL4 IS NULL;
+1          
+-----------
+8999997    
+ij> -- PASS:0123 If Answer is 8999997 (plus or minus 0.5)?
+-- END TEST >>> 0123 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml027.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml027.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml027.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,50 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML027
+-- SQL Test Suite, V6.0, Interactive SQL, dml027.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
+-- TEST:0124 UPDATE UNIQUE column (key = key + 1) interim conflict!
+-- setup
+     UPDATE UPUNIQ
+          SET NUMKEY = NUMKEY + 1;
+6 rows inserted/updated/deleted
+ij> -- PASS:0124 If 6 rows updated?
+      SELECT COUNT(*),SUM(NUMKEY)
+           FROM UPUNIQ;
+1          |2      
+-------------------
+6          |30     
+ij> -- PASS:0124 If count = 6 and SUM(NUMKEY) = 30?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0124 <<< END TEST
+-- ********************************************************
+-- TEST:0125 UPDATE UNIQUE column (key = key + 1) no interim conflit!
+-- setup
+     UPDATE UPUNIQ
+          SET NUMKEY = NUMKEY + 1
+          WHERE NUMKEY >= 4;
+3 rows inserted/updated/deleted
+ij> -- PASS:0125 If 3 rows are updated?
+      SELECT COUNT(*),SUM(NUMKEY)
+           FROM UPUNIQ;
+1          |2      
+-------------------
+6          |27     
+ij> -- PASS:0125 If count = 6 and SUM(NUMKEY) = 27?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0125 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml029.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml029.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml029.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,88 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML029
+-- SQL Test Suite, V6.0, Interactive SQL, dml029.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
+-- TEST:0129 Double quote work in character string literal!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E8','Yang Ling',15,'Xi''an');
+1 row inserted/updated/deleted
+ij> -- PASS:0129 If 1 row is inserted?
+      SELECT GRADE,CITY
+           FROM STAFF
+           WHERE EMPNUM = 'E8';
+GRADE|CITY           
+---------------------
+15   |Xi'an          
+ij> -- PASS:0129 If GRADE = 15 and CITY = 'Xi'an'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0129 <<< END TEST
+-- ************************************************************
+-- TEST:0130 Approximate numeric literal <mantissa>E<exponent>!
+-- setup
+     INSERT INTO JJ
+            VALUES(123.456E3);
+1 row inserted/updated/deleted
+ij> -- PASS:0130 If 1 row is inserted?
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM JJ
+           WHERE FLOATTEST > 123455 AND FLOATTEST < 123457;
+FLOATTEST             
+----------------------
+123456.0              
+ij> -- PASS:0130 If count = 1 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0130 <<< END TEST
+-- ***************************************************************
+-- TEST:0131 Approximate numeric literal with negative exponent!
+-- setup
+     INSERT INTO JJ
+            VALUES(123456E-3);
+1 row inserted/updated/deleted
+ij> -- PASS:0131 If 1 row is inserted?
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM JJ
+           WHERE FLOATTEST > 122 AND FLOATTEST < 124;
+FLOATTEST             
+----------------------
+123.456               
+ij> -- PASS:0131 If count = 1 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0131 <<< END TEST
+-- ********************************************************
+-- TEST:0182 Approx numeric literal with negative mantissa & exponent!
+-- setup
+     INSERT INTO JJ
+            VALUES(-123456E-3);
+1 row inserted/updated/deleted
+ij> -- PASS:0182 If 1 row is inserted?
+--O     SELECT COUNT(*)
+     SELECT *
+           FROM JJ
+           WHERE FLOATTEST > -124 AND FLOATTEST < -122;
+FLOATTEST             
+----------------------
+-123.456              
+ij> -- PASS:0182 If count = 1 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0182 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml033.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml033.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml033.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,40 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML033
+-- SQL Test Suite, V6.0, Interactive SQL, dml033.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
+-- TEST:0135 Upper and loer case letters are distinct!
+-- setup
+     INSERT INTO WORKS
+            VALUES('UPP','low',100);
+1 row inserted/updated/deleted
+ij> -- PASS:0135 If 1 row is inserted?
+      SELECT EMPNUM,PNUM
+           FROM WORKS
+           WHERE EMPNUM='UPP' AND PNUM='low';
+EM&|PN&
+-------
+UPP|low
+ij> -- PASS:0135 If EMPNUM = 'UPP' and PNUM = 'low'?
+      SELECT EMPNUM,PNUM
+           FROM WORKS
+           WHERE EMPNUM='upp' OR PNUM='LOW';
+EM&|PN&
+-------
+ij> -- PASS:0135 If 0 rows are selected - out of data?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0135 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml034.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml034.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml034.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,171 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML034
+-- SQL Test Suite, V6.0, Interactive SQL, dml034.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
+-- TEST:0088 Data type REAL!
+-- setup
+     INSERT INTO GG
+            VALUES(123.4567E-2);
+1 row inserted/updated/deleted
+ij> -- PASS:0088 If 1 row is inserted?
+     SELECT REALTEST                                                    
+          FROM GG;
+REALTEST     
+-------------
+1.234567     
+ij> -- PASS:0088 If REALTEST = 1.234567 ?
+-- PASS:0088 OR  is between 1.234562 and 1.234572 ?
+     SELECT * 
+        FROM GG    
+        WHERE REALTEST > 1.234561 and REALTEST < 1.234573;
+REALTEST     
+-------------
+1.234567     
+ij> -- PASS:0088 If 1 row selected?
+-- restore                                                                 
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0088 <<< END TEST
+-- ****************************************************************
+-- TEST:0090 Data type DOUBLE PRECISION!
+-- setup
+     INSERT INTO II
+            VALUES(0.123456123456E6);
+1 row inserted/updated/deleted
+ij> -- PASS:0090 If 1 row is inserted?
+     SELECT DOUBLETEST                                                  
+          FROM II;
+DOUBLETEST            
+----------------------
+123456.123456         
+ij> -- PASS:0090 If DOUBLETEST = 123456.123456 ?
+-- PASS:0090 OR  is between 123456.123451 and 123456.123461 ?
+     SELECT * 
+       FROM II 
+       WHERE DOUBLETEST > 123456.123450 and DOUBLETEST < 123456.123462;
+DOUBLETEST            
+----------------------
+123456.123456         
+ij> -- PASS:0090 If 1 row selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0090 <<< END TEST
+-- ***********************************************************
+-- TEST:0091 Data type FLOAT!
+-- setup
+     INSERT INTO JJ
+            VALUES(12.345678);
+1 row inserted/updated/deleted
+ij> -- PASS:0091 If 1 row is inserted?
+     SELECT FLOATTEST                                                  
+          FROM JJ;
+FLOATTEST             
+----------------------
+12.345678             
+ij> -- PASS:0091 If FLOATTEST = 12.345678 ?
+-- PASS:0091 OR  is between 12.345673 and 12.345683 ?
+     SELECT * 
+       FROM JJ
+       WHERE FLOATTEST > 12.345672 and FLOATTEST < 12.345684;
+FLOATTEST             
+----------------------
+12.345678             
+ij> -- PASS:0091 If 1 row selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0091 <<< END TEST
+-- **********************************************************
+-- TEST:0092 Data type FLOAT(32)!
+-- setup
+     INSERT INTO KK
+            VALUES(123.456123456E+3);
+1 row inserted/updated/deleted
+ij> -- PASS:0092 If 1 row is inserted?
+     SELECT FLOATTEST                                                   
+          FROM KK;
+FLOATTEST             
+----------------------
+123456.123456         
+ij> -- PASS:0092 If FLOATTEST = 123456.123456 ?
+-- PASS:0092 OR  is between 123456.1233 and 123456.1236 ?
+     SELECT * 
+       FROM KK
+       WHERE FLOATTEST > 123456.123450 and FLOATTEST < 123456.123462;
+FLOATTEST             
+----------------------
+123456.123456         
+ij> -- PASS:0092 If 1 row selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0092 <<< END TEST
+-- *************************************************************
+-- TEST:0093 Data type NUMERIC(13,6)!
+-- setup
+     INSERT INTO LL
+            VALUES(123456.123456);
+1 row inserted/updated/deleted
+ij> -- PASS:0093 If 1 row is inserted?
+     SELECT *
+          FROM LL;
+NUMTEST         
+----------------
+123456.123456   
+ij> -- PASS:0093 If NUMTEST = 123456.123456 ?
+-- PASS:0093 OR  is between 123456.123451 and 123456.123461 ?
+     SELECT * 
+       FROM LL
+       WHERE NUMTEST > 123456.123450 and NUMTEST < 123456.123462;
+NUMTEST         
+----------------
+123456.123456   
+ij> -- PASS:0093 If 1 row selected?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0093 <<< END TEST
+-- *************************************************************
+-- TEST:0094 Data type DECIMAL(13,6)!
+-- setup
+     INSERT INTO PP
+             VALUES(123456.123456);
+1 row inserted/updated/deleted
+ij> -- PASS:0094 If 1 row is inserted?
+     SELECT *
+          FROM PP;
+NUMTEST         
+----------------
+123456.123456   
+ij> -- PASS:0094 If NUMTEST = 123456.123456 ?
+-- PASS:0094 OR  is between 123456.123451 and 123456.123461 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0094 <<< END TEST
+-- **************************************************************
+-- TEST:0095 Data type DEC(13,6)!
+-- setup
+     INSERT INTO SS
+            VALUES(123456.123456);
+1 row inserted/updated/deleted
+ij> -- PASS:0095 If 1 row is inserted?
+     SELECT *
+          FROM SS;
+NUMTEST         
+----------------
+123456.123456   
+ij> -- PASS:0095 If NUMTEST = 123456.123456 ?
+-- PASS:0095 OR  is between 123456.123451 and 123456.123461 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0095 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml035.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml035.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml035.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,54 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML035
+-- SQL Test Suite, V6.0, Interactive SQL, dml035.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
+-- TEST:0157 ORDER BY approximate numeric!
+-- setup
+     INSERT INTO JJ VALUES(66.2);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-44.5);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(0.2222);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(66.3);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-87);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-66.25);
+1 row inserted/updated/deleted
+ij> -- PASS:0157 If 1 row is inserted?
+     SELECT FLOATTEST
+          FROM JJ
+          ORDER BY FLOATTEST DESC;
+FLOATTEST             
+----------------------
+66.3                  
+66.2                  
+0.2222                
+-44.5                 
+-66.25                
+-87.0                 
+ij> -- PASS:0157 If 6 rows are selected ?
+-- PASS:0157 If last FLOATTEST = -87 OR  is between -87.5 and -86.5 ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0157 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml037.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml037.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml037.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,41 @@
+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
+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> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml038.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml038.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml038.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,384 @@
+ij> -- MODULE DML038
+-- SQL Test Suite, V6.0, Interactive SQL, dml038.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
+-- TEST:0205 Cartesian product is produced without WHERE clause!
+     SELECT GRADE, HOURS, BUDGET
+          FROM STAFF, WORKS, PROJ order by GRADE, HOURS, BUDGET;
+GRADE|HOURS |BUDGET    
+-----------------------
+10   |12    |10000     
+10   |12    |10000     
+10   |12    |10000     
+10   |12    |10000     
+10   |12    |20000     
+10   |12    |20000     
+10   |12    |30000     
+10   |12    |30000     
+10   |12    |30000     
+10   |12    |30000     
+10   |12    |50000     
+10   |12    |50000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |10000     
+10   |20    |20000     
+10   |20    |20000     
+10   |20    |20000     
+10   |20    |20000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |30000     
+10   |20    |50000     
+10   |20    |50000     
+10   |20    |50000     
+10   |20    |50000     
+10   |40    |10000     
+10   |40    |10000     
+10   |40    |10000     
+10   |40    |10000     
+10   |40    |10000     
+10   |40    |10000     
+10   |40    |20000     
+10   |40    |20000     
+10   |40    |20000     
+10   |40    |30000     
+10   |40    |30000     
+10   |40    |30000     
+10   |40    |30000     
+10   |40    |30000     
+10   |40    |30000     
+10   |40    |50000     
+10   |40    |50000     
+10   |40    |50000     
+10   |80    |10000     
+10   |80    |10000     
+10   |80    |10000     
+10   |80    |10000     
+10   |80    |10000     
+10   |80    |10000     
+10   |80    |20000     
+10   |80    |20000     
+10   |80    |20000     
+10   |80    |30000     
+10   |80    |30000     
+10   |80    |30000     
+10   |80    |30000     
+10   |80    |30000     
+10   |80    |30000     
+10   |80    |50000     
+10   |80    |50000     
+10   |80    |50000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |10000     
+12   |12    |20000     
+12   |12    |20000     
+12   |12    |20000     
+12   |12    |20000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |30000     
+12   |12    |50000     
+12   |12    |50000     
+12   |12    |50000     
+12   |12    |50000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |10000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |20000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |30000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |20    |50000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |10000     
+12   |40    |20000     
+12   |40    |20000     
+12   |40    |20000     
+12   |40    |20000     
+12   |40    |20000     
+12   |40    |20000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |30000     
+12   |40    |50000     
+12   |40    |50000     
+12   |40    |50000     
+12   |40    |50000     
+12   |40    |50000     
+12   |40    |50000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |10000     
+12   |80    |20000     
+12   |80    |20000     
+12   |80    |20000     
+12   |80    |20000     
+12   |80    |20000     
+12   |80    |20000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |30000     
+12   |80    |50000     
+12   |80    |50000     
+12   |80    |50000     
+12   |80    |50000     
+12   |80    |50000     
+12   |80    |50000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |10000     
+13   |12    |20000     
+13   |12    |20000     
+13   |12    |20000     
+13   |12    |20000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |30000     
+13   |12    |50000     
+13   |12    |50000     
+13   |12    |50000     
+13   |12    |50000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |10000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |20000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |30000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |20    |50000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |10000     
+13   |40    |20000     
+13   |40    |20000     
+13   |40    |20000     
+13   |40    |20000     
+13   |40    |20000     
+13   |40    |20000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |30000     
+13   |40    |50000     
+13   |40    |50000     
+13   |40    |50000     
+13   |40    |50000     
+13   |40    |50000     
+13   |40    |50000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |10000     
+13   |80    |20000     
+13   |80    |20000     
+13   |80    |20000     
+13   |80    |20000     
+13   |80    |20000     
+13   |80    |20000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |30000     
+13   |80    |50000     
+13   |80    |50000     
+13   |80    |50000     
+13   |80    |50000     
+13   |80    |50000     
+13   |80    |50000     
+ij> -- PASS:0205 If 360 rows are selected ?
+-- END TEST >>> 0205 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml039.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml039.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml039.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,45 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML039
+-- SQL Test Suite, V6.0, Interactive SQL, dml039.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
+-- TEST:0208 Upper and lower case in LIKE predicate!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E7', 'yanping',26,'China');
+1 row inserted/updated/deleted
+ij> -- PASS:0208 If 1 row is inserted?
+     INSERT INTO STAFF
+            VALUES('E8','YANPING',30,'NIST');
+1 row inserted/updated/deleted
+ij> -- PASS:0208 If 1 row is inserted?
+      SELECT CITY
+           FROM STAFF
+           WHERE EMPNAME LIKE 'yan____%';
+CITY           
+---------------
+China          
+ij> -- PASS:0208 If CITY = 'China'?
+      SELECT CITY
+           FROM STAFF
+           WHERE EMPNAME LIKE 'YAN____%';
+CITY           
+---------------
+NIST           
+ij> -- PASS:0208 If CITY = 'NIST'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0208 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml042.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml042.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml042.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,34 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML042
+-- SQL Test Suite, V6.0, Interactive SQL, dml042.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
+-- TEST:0213 FIPS sizing -- 100 columns in a row!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T100(C1,C21,C41,C61,C81,C100)
+            VALUES(' 1','21','41','61','81','00');
+1 row inserted/updated/deleted
+ij> -- PASS:0213 If 1 row is inserted?
+      SELECT C1,C21,C41,C61,C81,C100
+           FROM T100;
+C1  |C21 |C41 |C61 |C81 |C100
+-----------------------------
+ 1  |21  |41  |61  |81  |00  
+ij> -- PASS:0213 If C1 = ' 1' and C100 = '00' ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0213 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml043.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml043.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml043.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,50 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML043
+-- SQL Test Suite, V6.0, Interactive SQL, dml043.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
+-- TEST:0214 FIPS sizing -- 2000-byte row!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T2000(STR110,STR200,STR216)
+            VALUES
+               ('STR11111111111111111111111111111111111111111111111',
+                'STR22222222222222222222222222222222222222222222222',
+                'STR66666666666666666666666666666666666666666666666');
+1 row inserted/updated/deleted
+ij> -- PASS:0214 If 1 row is inserted?
+      UPDATE T2000
+           SET STR140 =
+           'STR44444444444444444444444444444444444444444444444';
+1 row inserted/updated/deleted
+ij> -- PASS:0214 If 1 row is updated?
+      UPDATE T2000
+           SET STR180 =
+           'STR88888888888888888888888888888888888888888888888';
+1 row inserted/updated/deleted
+ij> -- PASS:0214 If 1 row is updated?
+      SELECT STR110,STR180,STR216
+           FROM T2000;
+STR110                                                                                                        |STR180                                                                                                                          |STR216                                                                                                                          
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+STR11111111111111111111111111111111111111111111111                                                            |STR88888888888888888888888888888888888888888888888                                                                             &|STR66666666666666666666666666666666666666666666666                                                                             &
+ij> -- PASS:0214 If STR180 = ?
+-- PASS:0214   'STR88888888888888888888888888888888888888888888888'?
+-- PASS:0214 If STR216 = ?
+-- PASS:0214   'STR66666666666666666666666666666666666666666666666'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0214 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml044.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml044.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml044.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,68 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML044
+-- SQL Test Suite, V6.0, Interactive SQL, dml044.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0215 FIPS sizing -- 6 columns in a UNIQUE constraint!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T8
+            VALUES('th','seco','third3','fourth_4','fifth_colu',
+                'sixth_column','seventh_column','last_column_of_t');
+1 row inserted/updated/deleted
+ij> -- PASS:0215 If 1 row is inserted?
+     INSERT INTO T8
+            VALUES('th','seco','third3','fourth_4','fifth_colu',
+                'sixth_column','column_seventh','column_eighth_la');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'T8C1' defined on 'T8'.
+ij> -- PASS:0215 If ERROR, unique constraint, 0 rows inserted?
+      SELECT COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8
+           FROM T8;
+C&|COL2|COL3  |COL4    |COL5      |COL6        |COL7          |COL8            
+-------------------------------------------------------------------------------
+th|seco|third3|fourth_4|fifth_colu|sixth_column|seventh_column|last_column_of_t
+ij> -- PASS:0215 If COL1 = 'th'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0215 <<< END TEST
+-- **************************************************************
+-- TEST:0216 FIPS sizing -- 120 bytes in a UNIQUE constraint!
+-- FIPS sizing TEST
+-- setup
+     DELETE FROM T4;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO T4 VALUES (
+'This test is trying to test the limit on the total length of an index',
+                 -123456, 'which is','not less than 120');
+1 row inserted/updated/deleted
+ij> -- PASS:0216 If 1 row is inserted?
+      INSERT INTO T4 VALUES (
+'This test is trying to test the limit on the total length of an index',
+                 -123456,'which is','not less than 120');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'T4C1' defined on 'T4'.
+ij> -- PASS:0216 If ERROR, unique constraint, 0 rows inserted?
+      SELECT STR110
+           FROM T4;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+This test is trying to test the limit on the total length of an index                                         
+ij> -- PASS:0216 If STR110 starts with 'This test is trying to test the '?
+-- PASS:0216 and ends with 'limit on the total length of an index'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0216 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml045.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml045.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml045.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,108 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML045
+-- SQL Test Suite, V6.0, Interactive SQL, dml045.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0218 FIPS sizing -- 6 columns in GROUP BY!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',44,48);
+1 row inserted/updated/deleted
+ij> -- PASS:0218 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',11,12);
+1 row inserted/updated/deleted
+ij> -- PASS:0218 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',22,24);
+1 row inserted/updated/deleted
+ij> -- PASS:0218 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',33,36);
+1 row inserted/updated/deleted
+ij> -- PASS:0218 If 1 row is inserted?
+     SELECT COUNT(*)
+                FROM  T12;
+1          
+-----------
+4          
+ij> -- PASS:0218 If count = 4?
+     SELECT COL6,SUM(COL11),MAX(COL12)
+          FROM T12
+          GROUP BY COL1,COL5,COL3,COL6,COL2,COL4
+          ORDER BY COL6 DESC;
+COL6      |2          |3          
+----------------------------------
+1010101010|33         |24         
+0101010101|77         |48         
+ij> -- PASS:0218 If 2 rows are selected and second COL6 = 0101010101 and ?
+-- PASS:0218 second SUM(COL11) = 77 and second MAX(COL12) = 48?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0218 <<< END TEST
+-- ****************************************************************
+-- TEST:0219 FIPS sizing -- 120 bytes in GROUP BY!
+-- FIPS sizing TEST
+-- setup
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888888','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',111,112);
+1 row inserted/updated/deleted
+ij> -- PASS:0219 If 1 row is inserted?
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888889','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',333,336);
+1 row inserted/updated/deleted
+ij> -- PASS:0219 If 1 row is inserted?
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888889','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',444,448);
+1 row inserted/updated/deleted
+ij> -- PASS:0219 If 1 row is inserted?
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888888','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',222,224);
+1 row inserted/updated/deleted
+ij> -- PASS:0219 If 1 row is inserted?
+     SELECT COUNT(*)
+                FROM  T12;
+1          
+-----------
+4          
+ij> -- PASS:0219 If count = 4?
+     SELECT COL5,SUM(COL11),MAX(COL12)
+          FROM T12
+          GROUP BY COL9,COL5,COL7,COL4,COL3,COL8
+          ORDER BY COL5 DESC;
+COL5    |2          |3          
+--------------------------------
+88888889|777        |448        
+88888888|333        |224        
+ij> -- PASS:0219 If 2 rows are selected ?
+-- PASS:0219 If row #1 COL5=88888889, SUM(COL11)=777, MAX(COL12)=448?
+-- PASS:0219 If row #2 COL5=88888888, SUM(COL11)=333, MAX(COL12)=224?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0219 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml046.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml046.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml046.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,117 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML046
+-- SQL Test Suite, V6.0, Interactive SQL, dml046.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
+-- TEST:0220 FIPS sizing -- 6 column in ORDER BY!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888884','1010101010',
+               '2020...20','3030...30','4040...40','5050...50',11,12);
+1 row inserted/updated/deleted
+ij> -- PASS:0220 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888883','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',22,24);
+1 row inserted/updated/deleted
+ij> -- PASS:0220 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888882','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',33,36);
+1 row inserted/updated/deleted
+ij> -- PASS:0220 If 1 row is inserted?
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888881','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',44,48);
+1 row inserted/updated/deleted
+ij> -- PASS:0220 If 1 row is inserted?
+--O     SELECT COUNT(*)
+     SELECT COL5
+                FROM  T12;
+COL5    
+--------
+88888884
+88888883
+88888882
+88888881
+ij> -- PASS:0220 If count = 4?
+     SELECT COL5,COL6,COL11,COL3,COL4,COL7,COL8
+          FROM T12
+          ORDER BY COL7,COL8,COL3,COL4,COL6,COL5 DESC;
+COL5    |COL6      |COL11      |COL3|COL4  |COL7                |COL8                          
+-----------------------------------------------------------------------------------------------
+88888882|0101010101|33         |4444|666666|2020...20           |3030...30                     
+88888881|0101010101|44         |4444|666666|2020...20           |3030...30                     
+88888884|1010101010|11         |4444|666666|2020...20           |3030...30                     
+88888883|1010101010|22         |4444|666666|2020...20           |3030...30                     
+ij> -- PASS:0220 If 4 rows are selected and first row?
+-- PASS:0220 COL5 = 88888882, COL6 = 0101010101 and COL11 = 33?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0220 <<< END TEST
+-- **************************************************************
+-- TEST:0221 FIPS sizing -- 120 bytes in ORDER BY!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO T12
+     VALUES('1','22','4442','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',111,112);
+1 row inserted/updated/deleted
+ij> -- PASS:0221 If 1 row is inserted?
+     INSERT INTO T12
+     VALUES('1','22','4443','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',222,224);
+1 row inserted/updated/deleted
+ij> -- PASS:0221 If 1 row is inserted?
+     INSERT INTO T12
+     VALUES('1','22','4441','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',333,336);
+1 row inserted/updated/deleted
+ij> -- PASS:0221 If 1 row is inserted?
+     INSERT INTO T12
+     VALUES('1','22','4444','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',444,448);
+1 row inserted/updated/deleted
+ij> -- PASS:0221 If 1 row is inserted?
+--O     SELECT COUNT(*)
+     SELECT COL3
+                FROM  T12;
+COL3
+----
+4442
+4443
+4441
+4444
+ij> -- PASS:0221 If count = 4?
+     SELECT COL3,COL11,COL9,COL8,COL7,COL5,COL4
+          FROM T12
+          ORDER BY COL9,COL8,COL7,COL5,COL4,COL3;
+COL3|COL11      |COL9                                    |COL8                          |COL7                |COL5    |COL4  
+-----------------------------------------------------------------------------------------------------------------------------
+4441|333        |4040404040404040404040404040404040404040|303030303030303030303030303030|20202020202020202020|88888888|666666
+4442|111        |4040404040404040404040404040404040404040|303030303030303030303030303030|20202020202020202020|88888888|666666
+4443|222        |4040404040404040404040404040404040404040|303030303030303030303030303030|20202020202020202020|88888888|666666
+4444|444        |4040404040404040404040404040404040404040|303030303030303030303030303030|20202020202020202020|88888888|666666
+ij> -- PASS:0221 If 4 rows are selected ?
+-- PASS:0221 If first row COL3 = 4441 and COL11 = 333?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0221 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml047.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml047.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml047.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,37 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML047
+-- SQL Test Suite, V6.0, Interactive SQL, dml047.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
+-- TEST:0222 FIPS sizing -- Length(240) of a character string!
+-- FIPS sizing TEST
+-- NOTE:0222 Literal length is only 78
+-- setup
+     INSERT INTO T240 VALUES(
+'Now is the time for all good men and women to come to the aid of their country'
+);
+1 row inserted/updated/deleted
+ij> -- PASS:0222 If 1 row is inserted?
+     SELECT * 
+          FROM T240;
+STR240                                                                                                                          
+--------------------------------------------------------------------------------------------------------------------------------
+Now is the time for all good men and women to come to the aid of their country                                                 &
+ij> -- PASS:0222 If STR240 starts with 'Now is the time for all good men'?
+-- PASS:0222 and ends 'and women to come to the aid of their country'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0222 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml049.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml049.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml049.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,83 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML049
+-- SQL Test Suite, V6.0, Interactive SQL, dml049.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
+-- TEST:0225 FIPS sizing -- ten tables in FROM clause!
+-- FIPS sizing TEST
+-- setup
+     INSERT INTO TEMP_S
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 11;
+4 rows inserted/updated/deleted
+ij> -- PASS:0225 If 4 rows are inserted ?
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0225 If 5 rows are inserted?
+     INSERT INTO WORKS1
+            SELECT *
+                 FROM WORKS;
+12 rows inserted/updated/deleted
+ij> -- PASS:0225 If 12 rows are inserted?
+     INSERT INTO STAFF4
+            SELECT *
+                 FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0225 If 5 rows are inserted?
+     INSERT INTO PROJ1
+            SELECT *
+                 FROM PROJ;
+6 rows inserted/updated/deleted
+ij> -- PASS:0225 If 6 rows are inserted?
+                 SELECT STAFF.EMPNUM,PROJ.PNUM,WORKS.HOURS,
+                        STAFF3.GRADE,STAFF4.CITY,WORKS1.HOURS,
+                        TEMP_S.GRADE,PROJ1.PNUM,STAFF1.GRADE,
+                        UPUNIQ.COL2
+                 FROM   STAFF,PROJ,WORKS,STAFF3,STAFF4,WORKS1,
+                        TEMP_S,PROJ1,STAFF1,UPUNIQ
+                 WHERE  STAFF.EMPNUM = WORKS.EMPNUM    AND
+                        PROJ.PNUM = WORKS.PNUM         AND
+                        STAFF3.EMPNUM = WORKS.EMPNUM   AND
+                        STAFF4.EMPNUM = WORKS.EMPNUM   AND
+                        WORKS1.EMPNUM = WORKS.EMPNUM   AND
+                        WORKS1.PNUM = WORKS.PNUM       AND
+                        TEMP_S.EMPNUM = WORKS.EMPNUM   AND
+                        PROJ1.PNUM = WORKS.PNUM        AND
+                        STAFF1.EMPNUM = WORKS.EMPNUM   AND
+                        UPUNIQ.COL2 = 'A'
+                 ORDER BY 1, 2;
+EM&|PN&|HOURS |GRADE|CITY           |HOURS |GRADE|PN&|GRADE|COL2
+----------------------------------------------------------------
+E1 |P1 |40    |12   |Deale          |40    |12   |P1 |12   |A   
+E1 |P2 |20    |12   |Deale          |20    |12   |P2 |12   |A   
+E1 |P3 |80    |12   |Deale          |80    |12   |P3 |12   |A   
+E1 |P4 |20    |12   |Deale          |20    |12   |P4 |12   |A   
+E1 |P5 |12    |12   |Deale          |12    |12   |P5 |12   |A   
+E1 |P6 |12    |12   |Deale          |12    |12   |P6 |12   |A   
+E3 |P2 |20    |13   |Vienna         |20    |13   |P2 |13   |A   
+E4 |P2 |20    |12   |Deale          |20    |12   |P2 |12   |A   
+E4 |P4 |40    |12   |Deale          |40    |12   |P4 |12   |A   
+E4 |P5 |80    |12   |Deale          |80    |12   |P5 |12   |A   
+ij> ;
+ij> -- PASS:0225 If 10 rows are selected ?
+-- PASS:0225 If first STAFF.EMPNUM='E1',PROJ.PNUM='P1',WORKS.HOURS=40?
+-- PASS:0225 If last  STAFF.EMPNUM='E4',PROJ.PNUM='P5',WORKS.HOURS=80?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0225 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml050.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml050.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml050.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,49 @@
+ij> -- MODULE DML050
+-- SQL Test Suite, V6.0, Interactive SQL, dml050.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
+-- TEST:0226 FIPS sizing - 10 tables in SQL statement!
+-- FIPS sizing TEST
+     SELECT EMPNUM, EMPNAME 
+     FROM STAFF 
+     WHERE EMPNUM IN 
+       (SELECT EMPNUM  FROM WORKS 
+        WHERE PNUM IN 
+          (SELECT PNUM  FROM PROJ 
+           WHERE PTYPE IN 
+             (SELECT PTYPE  FROM PROJ 
+              WHERE PNUM IN 
+                (SELECT PNUM  FROM WORKS 
+                 WHERE EMPNUM IN 
+                   (SELECT EMPNUM  FROM WORKS 
+                    WHERE PNUM IN 
+                      (SELECT PNUM   FROM PROJ 
+                       WHERE PTYPE IN
+                         (SELECT PTYPE  FROM PROJ
+                          WHERE CITY IN
+                            (SELECT CITY  FROM STAFF
+                             WHERE EMPNUM IN
+                               (SELECT EMPNUM  FROM WORKS
+                                WHERE HOURS = 20 
+                                AND PNUM = 'P2' )))))))));
+EM&|EMPNAME             
+------------------------
+E1 |Alice               
+E2 |Betty               
+E3 |Carmen              
+E4 |Don                 
+ij> -- PASS:0226 If 4 rows selected excluding EMPNUM='E5', EMPNAME='Ed'?
+-- END TEST >>> 0226 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml051.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml051.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml051.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,50 @@
+ij> -- MODULE DML051
+-- SQL Test Suite, V6.0, Interactive SQL, dml051.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0227 BETWEEN predicate with character string values!
+      SELECT PNUM
+           FROM   PROJ
+           WHERE  PNAME BETWEEN 'A' AND 'F';
+PN&
+---
+P2 
+ij> -- PASS:0227 If PNUM = 'P2'?
+      SELECT PNUM
+           FROM   PROJ
+           WHERE PNAME >= 'A' AND PNAME <= 'F';
+PN&
+---
+P2 
+ij> -- PASS:0227 If PNUM = 'P2'?
+-- END TEST >>> 0227 <<< END TEST
+-- ***********************************************************
+-- TEST:0228 NOT BETWEEN predicate with character string values!
+      SELECT CITY
+           FROM   STAFF
+           WHERE  EMPNAME NOT BETWEEN 'A' AND 'E';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0228 If CITY = 'Akron'?
+      SELECT CITY
+           FROM   STAFF
+           WHERE  NOT( EMPNAME BETWEEN 'A' AND 'E' );
+CITY           
+---------------
+Akron          
+ij> -- PASS:0228 If CITY = 'Akron'?
+-- END TEST >>> 0228 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml052.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml052.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml052.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,41 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML052
+-- SQL Test Suite, V6.0, Interactive SQL, dml052.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
+-- TEST:0229 Case-sensitive LIKE predicate!
+-- setup
+     INSERT INTO STAFF
+            VALUES('E6','ALICE',11,'Gaithersburg');
+1 row inserted/updated/deleted
+ij> -- PASS:0229 If 1 row is inserted?
+     SELECT EMPNAME
+          FROM   STAFF
+          WHERE  EMPNAME LIKE 'Ali%';
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0229 If 1 row is returned and EMPNAME = 'Alice' (not 'ALICE')?
+     SELECT EMPNAME
+          FROM   STAFF
+          WHERE  EMPNAME LIKE 'ALI%';
+EMPNAME             
+--------------------
+ALICE               
+ij> -- PASS:0229 If 1 row is returned and EMPNAME = 'ALICE' (not 'Alice')?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0229 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml053.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml053.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml053.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,40 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML053
+-- SQL Test Suite, V6.0, Interactive SQL, dml053.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
+-- TEST:0233 Table as multiset of rows - INSERT duplicate VALUES()!
+-- setup
+     INSERT INTO TEMP_S
+            VALUES('E1',11,'Deale');
+1 row inserted/updated/deleted
+ij> -- PASS:0233 If 1 row is inserted?
+     INSERT INTO TEMP_S
+            VALUES('E1',11,'Deale');
+1 row inserted/updated/deleted
+ij> -- PASS:0233 If 1 row is inserted?
+--O     SELECT COUNT(*)
+     SELECT empnum
+                FROM TEMP_S
+                WHERE EMPNUM='E1' AND GRADE=11 AND CITY='Deale';
+EMP&
+----
+E1  
+E1  
+ij> -- PASS:0233 If count = 2?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0233 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml055.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml055.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml055.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,128 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML055
+-- SQL Test Suite, V6.0, Interactive SQL, dml055.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
+-- TEST:0243 FIPS sizing - precision of SMALLINT >= 4!
+-- FIPS sizing TEST
+     DELETE FROM HH;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO HH
+            VALUES(9999);
+1 row inserted/updated/deleted
+ij> -- PASS:0243 If 1 row is inserted?
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM HH
+          WHERE SMALLTEST = 9999;
+SMALL&
+------
+9999  
+ij> -- PASS:0243 If count = 1?
+-- setup
+     INSERT INTO HH
+            VALUES(-9999);
+1 row inserted/updated/deleted
+ij> -- PASS:0243 If 1 row is inserted?
+     SELECT SMALLTEST 
+          FROM HH
+          WHERE SMALLTEST = -9999;
+SMALL&
+------
+-9999 
+ij> -- PASS:0243 If SMALLTEST = -9999?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0243 <<< END TEST
+-- ***************************************************************
+-- TEST:0244 FIPS sizing - precision of INTEGER >= 9!
+-- FIPS sizing TEST
+     DELETE FROM EE;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO EE
+            VALUES(999999999);
+1 row inserted/updated/deleted
+ij> -- PASS:0244 If 1 row is inserted?
+     SELECT INTTEST
+          FROM EE
+          WHERE INTTEST = 999999999;
+INTTEST    
+-----------
+999999999  
+ij> -- PASS:0244 If INTTEST = 999999999?
+-- setup
+     INSERT INTO EE
+            VALUES(-999999999);
+1 row inserted/updated/deleted
+ij> -- PASS:0244 If 1 row is inserted?
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM EE
+          WHERE INTTEST = -999999999;
+INTTEST    
+-----------
+-999999999 
+ij> -- PASS:0244 If count = 1?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0244 <<< END TEST
+-- *****************************************************************
+-- TEST:0245 FIPS sizing - precision of DECIMAL >= 15!
+-- FIPS sizing TEST
+     DELETE FROM PP_15;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO PP_15
+            VALUES(.123456789012345);
+1 row inserted/updated/deleted
+ij> -- PASS:0245 If 1 row is inserted?
+     SELECT NUMTEST
+          FROM PP_15;
+NUMTEST           
+------------------
+0.123456789012345 
+ij> -- PASS:0245 If NUMTEST = 0.123456789012345?
+--O     SELECT COUNT(*) FROM PP_15
+     SELECT * FROM PP_15
+       WHERE NUMTEST = 0.123456789012345;
+NUMTEST           
+------------------
+0.123456789012345 
+ij> -- PASS:0245 If count = 1?
+     DELETE FROM PP_15;
+1 row inserted/updated/deleted
+ij> -- PASS:0245 If 1 row is deleted?
+-- setup
+     INSERT INTO PP_15
+            VALUES(-.912345678901234);
+1 row inserted/updated/deleted
+ij> -- PASS:0245 If 1 row is inserted?
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM PP_15
+          WHERE NUMTEST = -0.912345678901234;
+NUMTEST           
+------------------
+-0.912345678901234
+ij> -- PASS:0245 If count = 1?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0245 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml056.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml056.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml056.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,87 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML056
+-- SQL Test Suite, V6.0, Interactive SQL, dml056.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
+-- TEST:0246 FIPS sizing - 100 values in INSERT!
+-- FIPS sizing TEST
+     DELETE FROM T100;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO T100 
+            VALUES('ZA','ZB','CA','ZC','ZD','AA','ZE','ZF','BA','ZG',
+                   'YA','YB','CB','YC','YD','AB','YE','YF','BB','YG',
+                   'XA','XB','CC','XC','XD','AC','XE','XF','BC','XG',
+                   'UA','UB','CD','UC','UD','AD','UE','UF','BD','UG',
+                   'VA','VB','CE','VC','VD','AE','VE','VF','BE','VG',
+                   'WA','WB','CF','WC','WD','AF','WE','WF','BF','WG',
+                   'LA','LB','CG','LC','LD','AG','LE','LF','BG','LG',
+                   'MA','MB','CH','MC','MD','AH','ME','MF','BH','MG',
+                   'NA','NB','CI','NC','ND','AI','NE','NF','BI','NG',
+                   'OA','OB','CJ','OC','OD','AJ','OE','OF','BJ','OG');
+1 row inserted/updated/deleted
+ij> -- PASS:0246 If 1 row is inserted?
+     SELECT C6, C16, C26, C36, C46, C56, C66, C76, C86, C96, C100
+          FROM T100
+          WHERE C1 = 'ZA' AND C2 = 'ZB';
+C6  |C16 |C26 |C36 |C46 |C56 |C66 |C76 |C86 |C96 |C100
+------------------------------------------------------
+AA  |AB  |AC  |AD  |AE  |AF  |AG  |AH  |AI  |AJ  |OG  
+ij> -- PASS:0246 If C6  = 'AA', C16 = 'AB', C26  = 'AC', C36 = 'AD' ?
+-- PASS:0246 If C46 = 'AE', C56 = 'AF', C66  = 'AG', C76 = 'AH' ?
+-- PASS:0246 If C86 = 'AI', C96 = 'AJ', C100 = 'OG' ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0246 <<< END TEST
+-- *********************************************************************
+-- TEST:0247 FIPS sizing - 20 values in update SET clause!
+-- FIPS sizing TEST
+     DELETE FROM T100;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO T100 
+            VALUES('ZA','ZB','CA','ZC','ZD','AA','ZE','ZF','BA','ZG',
+                   'YA','YB','CB','YC','YD','AB','YE','YF','BB','YG',
+                   'XA','XB','CC','XC','XD','AC','XE','XF','BC','XG',
+                   'UA','UB','CD','UC','UD','AD','UE','UF','BD','UG',
+                   'VA','VB','CE','VC','VD','AE','VE','VF','BE','VG',
+                   'WA','WB','CF','WC','WD','AF','WE','WF','BF','WG',
+                   'LA','LB','CG','LC','LD','AG','LE','LF','BG','LG',
+                   'MA','MB','CH','MC','MD','AH','AE','AF','BH','BG',
+                   'NA','NB','CI','NC','ND','AI','NE','NF','BI','NG',
+                   'OA','OB','CJ','OC','OD','AJ','OE','OF','BJ','OG');
+1 row inserted/updated/deleted
+ij> -- PASS:0247 If 1 row is inserted?
+     UPDATE T100
+          SET C5 = 'BA', C10 = 'ZP', C15 = 'BB', C20 = 'YP', C25 = 'BC',
+             C30 = 'XP', C35 = 'BD', C40 = 'UP', C45 = 'BE', C50 = 'VP',
+             C55 = 'BF', C60 = 'WP', C65 = 'BG', C70 = 'LP', C75 = 'BH',
+            C80 = 'MP', C85 = 'BI', C90 = 'NP', C95 = 'BJ', C100 = 'OP';
+1 row inserted/updated/deleted
+ij> -- PASS:0247 If 1 row is updated ?
+     SELECT C5, C20, C35, C40, C55, C60, C75, C80, C90, C95, C100
+          FROM T100
+          WHERE C1 = 'ZA' AND C2 = 'ZB';
+C5  |C20 |C35 |C40 |C55 |C60 |C75 |C80 |C90 |C95 |C100
+------------------------------------------------------
+BA  |YP  |BD  |UP  |BF  |WP  |BH  |MP  |NP  |BJ  |OP  
+ij> -- PASS:0247 If C5  = 'BA', C35  = 'BD', C55 = 'BF', C75 = 'BH' ?
+-- PASS:0247 If C90 = 'NP', C100 = 'OP'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0247 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml057.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml057.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml057.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,167 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML057
+-- SQL Test Suite, V6.0, Interactive SQL, dml057.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
+-- TEST:0248 FIPS sizing - binary precision of FLOAT >= 20!
+-- FIPS sizing TEST
+     DELETE FROM JJ;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO JJ
+            VALUES(0.1048575);
+1 row inserted/updated/deleted
+ij> -- PASS:0248 If 1 row is inserted?
+     SELECT FLOATTEST
+          FROM JJ;
+FLOATTEST             
+----------------------
+0.1048575             
+ij> -- PASS:0248 If FLOATTEST = 0.1048575 ?
+-- PASS:0248 OR  is between 0.1048574 and 0.1048576 ?
+--O     SELECT COUNT(*) FROM JJ
+     SELECT * FROM JJ
+       WHERE FLOATTEST > 0.1048574 AND FLOATTEST < 0.1048576;
+FLOATTEST             
+----------------------
+0.1048575             
+ij> -- PASS:0248 If count = 1?
+     DELETE FROM JJ;
+1 row inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO JJ
+            VALUES(-0.1048575);
+1 row inserted/updated/deleted
+ij> -- PASS:0248 If 1 row is inserted?
+     SELECT FLOATTEST
+          FROM JJ;
+FLOATTEST             
+----------------------
+-0.1048575            
+ij> -- PASS:0248 If FLOATTEST = -0.1048575 ?
+-- PASS:0248 OR  is between -0.1048576 and -0.1048574 ?
+--O     SELECT COUNT(*) FROM JJ
+     SELECT * FROM JJ
+       WHERE FLOATTEST > -0.1048576 AND FLOATTEST < -0.1048574;
+FLOATTEST             
+----------------------
+-0.1048575            
+ij> -- PASS:0248 If count = 1?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0248 <<< END TEST
+-- *****************************************************************
+-- TEST:0249 FIPS sizing - binary precision of REAL >= 20!
+-- FIPS sizing TEST
+     DELETE FROM GG;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO GG
+            VALUES(0.1048575);
+1 row inserted/updated/deleted
+ij> -- PASS:0249 If 1 row is inserted?
+     SELECT REALTEST
+          FROM GG;
+REALTEST     
+-------------
+0.1048575    
+ij> -- PASS:0249 If REALTEST =  0.1048575 ?
+-- PASS:0249 OR  is between 0.1048574 and 0.1048576 ?
+--O     SELECT COUNT(*) FROM GG
+     SELECT * FROM GG
+       WHERE REALTEST > 0.1048574 AND REALTEST < 0.1048576;
+REALTEST     
+-------------
+0.1048575    
+ij> -- PASS:0249 If count = 1?
+     DELETE FROM GG;
+1 row inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO GG
+            VALUES(-0.1048575);
+1 row inserted/updated/deleted
+ij> -- PASS:0249 If 1 row is inserted?
+     SELECT REALTEST
+          FROM GG;
+REALTEST     
+-------------
+-0.1048575   
+ij> -- PASS:0249 If REALTEST =  -0.1048575 ?
+-- PASS:0249 OR  is between -0.1048576 and -0.1048574 ?
+--O     SELECT COUNT(*) FROM GG
+     SELECT * FROM GG
+       WHERE REALTEST > -0.1048576 AND REALTEST < -0.1048574;
+REALTEST     
+-------------
+-0.1048575   
+ij> -- PASS:0249 If count = 1?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0249 <<< END TEST
+-- ***************************************************************
+-- TEST:0250 FIPS sizing - bin. precision of DOUBLE >= 30!
+-- FIPS sizing TEST
+     DELETE FROM II;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO II
+            VALUES(0.1073741823);
+1 row inserted/updated/deleted
+ij> -- PASS:0250 If 1 row is inserted?
+     SELECT DOUBLETEST
+          FROM II;
+DOUBLETEST            
+----------------------
+0.1073741823          
+ij> -- PASS:0250 If DOUBLETEST = 0.1073741823 ?
+-- PASS:0250 OR  is between  0.1073741822 and 0.1073741824 ?
+--O     SELECT COUNT(*) FROM II
+     SELECT * FROM II
+       WHERE DOUBLETEST > 0.1073741822 AND DOUBLETEST < 0.1073741824;
+DOUBLETEST            
+----------------------
+0.1073741823          
+ij> -- PASS:0250 If count = 1?
+     DELETE FROM II;
+1 row inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO II
+            VALUES(-0.1073741823);
+1 row inserted/updated/deleted
+ij> -- PASS:0250 If 1 row is inserted?
+     SELECT DOUBLETEST
+          FROM II;
+DOUBLETEST            
+----------------------
+-0.1073741823         
+ij> -- PASS:0250 If DOUBLETEST = -0.1073741823 ?
+-- PASS:0250 OR  is between  -0.1073741824 and -0.1073741822 ?
+--O     SELECT COUNT(*) FROM II
+     SELECT * FROM II
+       WHERE DOUBLETEST > -0.1073741824 AND DOUBLETEST < -0.1073741822;
+DOUBLETEST            
+----------------------
+-0.1073741823         
+ij> -- PASS:0250 If count = 1?
+-- restore 
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0250 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml058.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml058.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml058.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,260 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML058
+-- SQL Test Suite, V6.0, Interactive SQL, dml058.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
+-- TEST:0251 COMMIT keeps changes of current transaction!
+     DELETE FROM STAFF1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0251 If 5 rows are inserted?
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM STAFF1;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:0251 If count = 5?
+     INSERT INTO STAFF1
+            VALUES('E9','Tom',50,'London');
+1 row inserted/updated/deleted
+ij> -- PASS:0251 If 1 row is inserted?
+     UPDATE STAFF1
+            SET GRADE = 40 
+            WHERE EMPNUM = 'E2';
+1 row inserted/updated/deleted
+ij> -- PASS:0251 If 1 row is updated?
+     COMMIT WORK;
+ij> DELETE FROM STAFF1;
+6 rows inserted/updated/deleted
+ij> -- PASS:0251 If 6 rows are deleted?
+-- verify
+     ROLLBACK WORK;
+ij> -- verify previous commit
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF1
+          WHERE GRADE > 12;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E2 |Betty               |40   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E5 |Ed                  |13   |Akron          
+E9 |Tom                 |50   |London         
+ij> -- PASS:0251 If count = 4?
+-- restore
+     DELETE FROM STAFF1;
+6 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0251 <<< END TEST
+-- ***************************************************************
+-- TEST:0252 ROLLBACK cancels changes of current transaction!
+     DELETE FROM STAFF1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0252 If 5 rows are inserted?
+     COMMIT WORK;
+ij> INSERT INTO STAFF1
+            VALUES('E10','Tom',50,'London');
+1 row inserted/updated/deleted
+ij> -- PASS:0252 If 1 row is inserted?
+     UPDATE STAFF1
+            SET GRADE = 40
+            WHERE EMPNUM = 'E1';
+1 row inserted/updated/deleted
+ij> -- PASS:0252 If 1 row is updated?
+     DELETE FROM STAFF1
+            WHERE EMPNUM = 'E2';
+1 row inserted/updated/deleted
+ij> -- PASS:0252 If 1 row is deleted?
+     ROLLBACK WORK;
+ij> -- verify     
+     SELECT SUM(GRADE)
+          FROM STAFF1;
+1        
+---------
+60       
+ij> -- PASS:0252 If SUM(GRADE) = 60?
+-- restore
+     DELETE FROM STAFF1;
+5 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0252 <<< END TEST
+-- ****************************************************************
+-- TEST:0253 TEST0124 workaround (key = key+1)!
+     SELECT NUMKEY
+          FROM UPUNIQ
+          ORDER BY NUMKEY DESC;
+NUM&
+----
+8   
+6   
+4   
+3   
+2   
+1   
+ij> -- PASS:0253 If 6 rows are selected and first NUMKEY = 8 ?
+     UPDATE UPUNIQ
+          SET NUMKEY = 8 + 1
+          WHERE NUMKEY = 8;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     UPDATE UPUNIQ
+          SET NUMKEY = 6 + 1
+          WHERE NUMKEY = 6;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     UPDATE UPUNIQ
+          SET NUMKEY = 4 + 1
+          WHERE NUMKEY = 4;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     UPDATE UPUNIQ
+          SET NUMKEY = 3 + 1
+          WHERE NUMKEY = 3;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     UPDATE UPUNIQ
+          SET NUMKEY = 2 + 1 
+          WHERE NUMKEY = 2;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     UPDATE UPUNIQ
+          SET NUMKEY = 1 + 1
+          WHERE NUMKEY = 1;
+1 row inserted/updated/deleted
+ij> -- PASS:0253 If 1 row is updated?
+     SELECT MAX(NUMKEY), MIN(NUMKEY)
+          FROM UPUNIQ;
+1   |2   
+---------
+9   |2   
+ij> -- PASS:0253 If MAX(NUMKEY) = 9 AND MIN(NUMKEY) = 2?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0253 <<< END TEST
+-- **************************************************************
+-- TEST:0254 Column name in SET clause!
+     DELETE FROM PROJ1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO PROJ1
+            SELECT *
+                 FROM PROJ;
+6 rows inserted/updated/deleted
+ij> -- PASS:0254 If 6 rows are inserted?
+     UPDATE PROJ1
+          SET CITY = PTYPE;
+6 rows inserted/updated/deleted
+ij> -- PASS:0254 If 6 rows are updated?
+     SELECT CITY
+          FROM PROJ1
+          WHERE PNUM = 'P1';
+CITY           
+---------------
+Design         
+ij> -- PASS:0254 If CITY = 'Design'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0254 <<< END TEST
+-- **************************************************************
+-- TEST:0255 Key word USER for INSERT, UPDATE!
+     DELETE FROM T4;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO T4
+          VALUES(USER,100,'good','luck');
+1 row inserted/updated/deleted
+ij> -- PASS:0255 If 1 row is inserted?
+     SELECT STR110 
+          FROM T4
+          WHERE NUM6 = 100;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+HU                                                                                                            
+ij> -- PASS:0255 If STR110 = 'HU'?
+-- setup
+     INSERT INTO T4
+          VALUES('Hello',101,'good','luck');
+1 row inserted/updated/deleted
+ij> -- PASS:0255 If 1 row is inserted?
+     UPDATE T4
+          SET STR110 = USER
+          WHERE NUM6 = 101;
+1 row inserted/updated/deleted
+ij> -- PASS:0255 If 1 row is updated?
+     SELECT STR110 
+          FROM T4
+          WHERE NUM6 = 101;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+HU                                                                                                            
+ij> -- PASS:0255 If STR110 = 'HU'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0255 <<< END TEST
+-- ***************************************************************
+-- TEST:0256 Key word USER in WHERE clause!
+     DELETE FROM T4;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO T4
+            VALUES('HU',100,'good','luck');
+1 row inserted/updated/deleted
+ij> -- PASS:0256 If 1 row is inserted?
+     SELECT STR110 
+          FROM T4
+          WHERE STR110 = USER;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+HU                                                                                                            
+ij> -- PASS:0256 If STR110 = 'HU'?
+-- setup
+     INSERT INTO T4
+            VALUES('Hello',101,'good','luck');
+1 row inserted/updated/deleted
+ij> -- PASS:0256 If 1 row is inserted?
+     DELETE FROM T4
+            WHERE STR110 = USER;
+1 row inserted/updated/deleted
+ij> -- PASS:0256 If 1 row is deleted?
+     SELECT COUNT(*)
+          FROM T4
+          WHERE STR110 LIKE '%HU%';
+1          
+-----------
+0          
+ij> -- PASS:0256 If count = 0?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0256 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml059.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml059.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml059.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,146 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML059
+-- SQL Test Suite, V6.0, Interactive SQL, dml059.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0257 SELECT MAX, MIN (COL1 + or - COL2)!
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+1 row inserted/updated/deleted
+ij> -- PASS:0257 If 1 row is inserted?
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+1 row inserted/updated/deleted
+ij> -- PASS:0257 If 1 row is inserted?
+     SELECT COL1, MAX(COL2 + COL3), MIN(COL3 - COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          ORDER BY COL1;
+COL1       |2          |3          
+-----------------------------------
+0          |3          |1          
+10         |50         |1          
+100        |1223       |100        
+1000       |1000       |5000       
+ij> -- PASS:0257 If 4 rows are selected in order with values:?
+-- PASS:0257    (    0,    3,    1) ?
+-- PASS:0257    (   10,   50,    1)?
+-- PASS:0257    (  100, 1223,  100)?
+-- PASS:0257    ( 1000, 1000, 5000)?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0257 <<< END TEST
+-- *********************************************************************
+-- TEST:0258 SELECT SUM(2*COL1*COL2) in HAVING SUM(COL2*COL3)!
+-- setup
+     INSERT INTO VTABLE
+            VALUES (10,11,12,13,15);
+1 row inserted/updated/deleted
+ij> -- PASS:0258 if 1 row is inserted?
+-- setup
+     INSERT INTO VTABLE
+            VALUES (100,111,1112,113,115);
+1 row inserted/updated/deleted
+ij> -- PASS:0258 if 1 row is inserted ?
+     SELECT COL1,SUM(2 * COL2 * COL3)
+                  FROM VTABLE
+                  GROUP BY COL1
+                  HAVING SUM(COL2 * COL3) > 2000 
+                  OR SUM(COL2 * COL3) < -2000
+                  ORDER BY COL1;
+COL1       |2          
+-----------------------
+100        |366864     
+1000       |-12000000  
+ij> -- PASS:0258 If 2 rows are selected?
+-- PASS:0258 If first row has values (100, 366864)    ?
+-- PASS:0258 If second row has values (1000, -12000000)    ?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0258 <<< END TEST
+-- *********************************************************************
+-- TEST:0259 SOME, ANY in HAVING clause!
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+1 row inserted/updated/deleted
+ij> -- PASS:0259 If 1 row is inserted?
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+1 row inserted/updated/deleted
+ij> -- PASS:0259 If 1 row is inserted?
+     SELECT COL1, MAX(COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          HAVING MAX(COL2) > ANY (SELECT GRADE FROM STAFF)
+          AND MAX(COL2) < SOME (SELECT HOURS FROM WORKS)
+          ORDER BY COL1;
+COL1       |2          
+-----------------------
+10         |20         
+ij> -- PASS:0259 If 1 row is selected and COL1 = 10 and MAX(COL2) = 20?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0259 <<< END TEST
+-- *******************************************************************
+-- TEST:0260 EXISTS in HAVING clause!
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+1 row inserted/updated/deleted
+ij> -- PASS:0260 If 1 row is inserted?
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+1 row inserted/updated/deleted
+ij> -- PASS:0260 If 1 row is inserted?
+     SELECT COL1, MAX(COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          HAVING EXISTS (SELECT *
+                               FROM STAFF
+                               WHERE EMPNUM = 'E1')
+                               AND MAX(COL2) BETWEEN 10 AND 90
+          ORDER BY COL1;
+COL1       |2          
+-----------------------
+10         |20         
+ij> -- PASS:0260 If 1 row is selected and COL1 = 10 and MAX(COL2) = 20?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0260 <<< END TEST
+-- ******************************************************************
+-- TEST:0264 WHERE, HAVING without GROUP BY!
+     SELECT SUM(COL1) 
+          FROM VTABLE
+          WHERE 10 + COL1 > COL2
+          HAVING MAX(COL1) > 100;
+1          
+-----------
+1000       
+ij> -- PASS:0264 If SUM(COL1) = 1000?
+     SELECT SUM(COL1)
+          FROM VTABLE
+          WHERE 1000 + COL1 >= COL2
+          HAVING MAX(COL1) > 100;
+1          
+-----------
+1110       
+ij> -- PASS:0264 If SUM(COL1) = 1110?
+-- END TEST >>> 0264 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml060.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml060.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml060.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,256 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML060
+-- SQL Test Suite, V6.0, Interactive SQL, dml060.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
+-- TEST:0261 WHERE (2 * (c1 - c2)) BETWEEN!
+     SELECT COL1, COL2
+          FROM VTABLE
+          WHERE(2*(COL3 - COL2)) BETWEEN 5 AND 200
+          ORDER BY COL1;
+COL1       |COL2       
+-----------------------
+10         |20         
+100        |200        
+ij> -- PASS:0261 If 2 rows are selected ?
+-- PASS:0261 If first row is  ( 10,  20)?
+-- PASS:0261 If second row is (100, 200)?
+-- END TEST >>> 0261 <<< END TEST
+-- ********************************************************************
+-- TEST:0262 WHERE clause with computation, ANY/ALL subqueries!
+     UPDATE VTABLE
+          SET COL1 = 1
+          WHERE COL1 = 0;
+1 row inserted/updated/deleted
+ij> -- PASS:0262 If 1 row is updated?
+     SELECT COL1, COL2
+          FROM VTABLE
+          WHERE (COL3 * COL2/COL1) > ALL
+                (SELECT HOURS FROM WORKS)
+                OR -(COL3 * COL2/COL1) > ANY
+                (SELECT HOURS FROM WORKS)
+          ORDER BY COL1;
+COL1       |COL2       
+-----------------------
+100        |200        
+1000       |-2000      
+ij> -- PASS:0262 If 2 rows are selected?
+-- PASS:0262 If first row is  ( 100,   200)?
+-- PASS:0262 If second row is (1000, -2000)?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0262 <<< END TEST
+-- ******************************************************************
+-- TEST:0263 Computed column in ORDER BY!
+     SELECT COL1, (COL3 * COL2/COL1 - COL2 + 10)
+          FROM VTABLE
+          WHERE COL1 > 0
+          ORDER BY 2;
+COL1       |2          
+-----------------------
+1000       |-3990      
+10         |50         
+100        |410        
+ij> -- PASS:0263 If 3 rows are selected in order with values:?
+-- PASS:0263      (1000, -3990)?
+-- PASS:0263      (  10,    50)?
+-- PASS:0263      ( 100,   410)?
+-- END TEST >>> 0263 <<< END TEST
+-- ********************************************************************
+-- TEST:0265 Update:searched - view with check option!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E3','P4',50);
+1 row inserted/updated/deleted
+ij> -- PASS:0265 If 1 row is inserted?
+           SELECT EMPNUM, PNUM, HOURS
+                FROM SUBSP;
+EM&|PN&|HOURS 
+--------------
+E3 |P2 |20    
+E3 |P4 |50    
+ij> -- PASS:0265 If 2 rows are selected?
+     SELECT * FROM WORKS;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P2 |20    
+E4 |P4 |40    
+E4 |P5 |80    
+E3 |P4 |50    
+ij> -- PASS:0265 If 13 rows selected?
+--O     UPDATE SUBSP 
+--O          SET EMPNUM = 'E9'
+--O          WHERE PNUM = 'P2';
+-- PASS:0265 If ERROR, view check constraint, 0 rows are updated?
+     SELECT * FROM WORKS;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P2 |20    
+E4 |P4 |40    
+E4 |P5 |80    
+E3 |P4 |50    
+ij> -- PASS:0265 If 13 rows selected and no EMPNUM = 'E9'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0265 <<< END TEST
+-- ******************************************************************
+-- TEST:0266 Update:searched - UNIQUE violation under view!
+-- setup
+     INSERT INTO WORKS
+            VALUES('E3','P4',50);
+1 row inserted/updated/deleted
+ij> -- PASS:0266 If 1 row is inserted?
+     SELECT EMPNUM, PNUM, HOURS
+          FROM SUBSP;
+EM&|PN&|HOURS 
+--------------
+E3 |P2 |20    
+E3 |P4 |50    
+ij> -- PASS:0266 If 2 rows are selected?
+     SELECT * FROM WORKS WHERE EMPNUM = 'E3';
+EM&|PN&|HOURS 
+--------------
+E3 |P2 |20    
+E3 |P4 |50    
+ij> -- PASS:0266 If 2 rows selected and PNUM values are 'P2' and 'P4'?
+--O     UPDATE SUBSP
+--O          SET PNUM = 'P6'
+--O          WHERE EMPNUM = 'E3';
+-- PASS:0266 If ERROR, unique constraint, 0 rows updated?
+--O     SELECT EMPNUM, PNUM, HOURS
+--O          FROM SUBSP;
+-- PASS:0266 If 2 rows are selected?
+--O     SELECT * FROM WORKS WHERE EMPNUM = 'E3';
+-- PASS:0266 If 2 rows selected and PNUM values are 'P2' and 'P4'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0266 <<< END TEST
+-- ******************************************************************
+-- TEST:0267 Update compound key, interim uniqueness conflict!
+     DELETE FROM WORKS1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO WORKS1 VALUES ('P1','P6',1);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P6',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P6',3);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P6',4);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P6',5);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P6',6);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P1','P5',7);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P5',8);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P5',9);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P5',10);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P5',11);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P5',12);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P1','P4',13);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P4',14);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P4',15);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P4',16);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P4',17);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P4',18);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P1','P3',19);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P3',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P3',21);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P3',22);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P3',23);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P3',24);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P1','P2',25);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P2',26);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P2',27);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P2',28);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P2',29);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P2',30);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P1','P1',31);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P2','P1',32);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P3','P1',33);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P4','P1',34);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P5','P1',35);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS1 VALUES ('P6','P1',36);
+1 row inserted/updated/deleted
+ij> UPDATE WORKS1
+       SET PNUM = EMPNUM, EMPNUM = PNUM;
+36 rows inserted/updated/deleted
+ij> -- PASS:0267 If 36 rows are updated?
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM WORKS1
+          WHERE EMPNUM = 'P1' AND HOURS > 30;
+EM&|PN&|HOURS 
+--------------
+P1 |P1 |31    
+P1 |P2 |32    
+P1 |P3 |33    
+P1 |P4 |34    
+P1 |P5 |35    
+P1 |P6 |36    
+ij> -- PASS:0267 If count = 6?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0267 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml061.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml061.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml061.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,154 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML061
+-- SQL Test Suite, V6.0, Interactive SQL, dml061.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0269 BETWEEN value expressions in wrong order!
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN 80 AND 40;
+1          
+-----------
+0          
+ij> -- PASS:0269 If count = 0   ?
+-- setup   
+         INSERT INTO WORKS
+            VALUES('E6','P6',-60);
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN -40 AND -80;
+1          
+-----------
+0          
+ij> -- PASS:0269 If count = 0?
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN -80 AND -40;
+1          
+-----------
+1          
+ij> -- PASS:0269 If count = 1?
+-- restore
+    ROLLBACK WORK;
+ij> -- END TEST >>> 0269 <<< END TEST
+-- ****************************************************************
+-- TEST:0270 BETWEEN approximate and exact numeric values!
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN 11.999 AND 12 OR
+                  HOURS BETWEEN 19.999 AND 2.001E1;
+1          
+-----------
+6          
+ij> -- PASS:0270 If count = 6?
+-- END TEST >>> 0270 <<< END TEST
+-- ****************************************************************
+-- TEST:0271 COUNT(*) with Cartesian product subset !
+            SELECT COUNT(*)
+            FROM WORKS,STAFF
+            WHERE WORKS.EMPNUM = 'E1';
+1          
+-----------
+30         
+ij> -- PASS:0271 If count = 30?
+-- END TEST >>> 0271 <<< END TEST
+-- ****************************************************************
+-- TEST:0272 Statement rollback for integrity!
+        UPDATE WORKS
+        SET EMPNUM = 'E7'
+        WHERE EMPNUM = 'E1' OR EMPNUM = 'E4';
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'WORKSC1' defined on 'WORKS'.
+ij> -- PASS:0272 If ERROR, unique constraint, 0 rows updated?
+        INSERT INTO WORKS 
+        SELECT 'E3',PNUM,17 FROM PROJ;
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'WORKSC1' defined on 'WORKS'.
+ij> -- PASS:0272 If ERROR, unique constraint, 0 rows inserted?
+--0        UPDATE V_WORKS1
+--0        SET HOURS = HOURS - 9;
+-- PASS:0272 If ERROR, view check constraint, 0 rows updated?
+        SELECT COUNT(*)
+        FROM WORKS
+        WHERE EMPNUM = 'E7' OR HOURS = 31 OR HOURS = 17;
+1          
+-----------
+0          
+ij> -- PASS:0272 If count = 0?
+-- restore
+       ROLLBACK WORK;
+ij> -- END TEST >>> 0272 <<< END TEST
+-- ****************************************************************
+-- TEST:0273 SUM, MAX, MIN = NULL for empty arguments  !
+            UPDATE WORKS
+            SET HOURS = NULL;
+12 rows inserted/updated/deleted
+ij> -- PASS:0273 If 12 rows updated?
+            SELECT SUM(HOURS),MAX(HOURS),MIN(HOURS),MIN(EMPNUM)
+                FROM WORKS;
+1          |2     |3     |4   
+------------------------------
+NULL       |NULL  |NULL  |E1  
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0273 If 1 row is selected?
+-- PASS:0273 If SUM(HOURS), MAX(HOURS), and MIN(HOURS) are NULL?
+-- restore
+    ROLLBACK WORK;
+ij> -- END TEST >>> 0273 <<< END TEST
+-- ****************************************************************
+-- TEST:0277 Computation with NULL value specification!
+          UPDATE WORKS
+          SET HOURS = NULL  WHERE EMPNUM = 'E1';
+6 rows inserted/updated/deleted
+ij> -- PASS:0277 If 6 rows are updated?
+          UPDATE WORKS
+          SET HOURS = HOURS - (3 + -17);
+12 rows inserted/updated/deleted
+ij> -- PASS:0277 If 12 rows are updated?
+          UPDATE WORKS
+          SET HOURS = 3 / -17 * HOURS;
+12 rows inserted/updated/deleted
+ij> -- PASS:0277 If 12 rows are updated?
+          UPDATE WORKS
+          SET HOURS = HOURS + 5;
+12 rows inserted/updated/deleted
+ij> -- PASS:0277 If 12 rows are updated?
+          SELECT COUNT(*)
+          FROM WORKS
+          WHERE HOURS IS NULL;
+1          
+-----------
+6          
+ij> -- PASS:0277 If count = 6?
+-- restore 
+    ROLLBACK WORK;
+ij> -- END TEST >>> 0277 <<< END TEST
+-- ****************************************************************
+-- TEST:0278 IN value list with USER, literal, variable spec.!
+          UPDATE STAFF
+          SET EMPNAME = 'HU'
+          WHERE EMPNAME = 'Ed';
+1 row inserted/updated/deleted
+ij> -- PASS:0278 If 1 row is updated?
+          SELECT COUNT(*)
+          FROM STAFF
+          WHERE EMPNAME IN (USER,'Betty','Carmen');
+1          
+-----------
+3          
+ij> -- PASS:0278 If count = 3?
+-- restore
+    ROLLBACK WORK;
+ij> -- END TEST >>> 0278 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml065.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml065.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml065.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,95 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML065
+-- SQL Test Suite, V6.0, Interactive SQL, dml065.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
+-- TEST:0284 INSERT, SELECT char. strings with blank!
+  INSERT INTO STAFF(EMPNUM,EMPNAME)
+         VALUES ('E6','Ed');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF(EMPNUM,EMPNAME)
+         VALUES ('E7','Ed ');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF(EMPNUM,EMPNAME)
+         VALUES ('E8','Ed                  ');
+1 row inserted/updated/deleted
+ij> --O  SELECT COUNT(*) FROM STAFF
+  SELECT * FROM STAFF
+                  WHERE EMPNAME = 'Ed';
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E5 |Ed                  |13   |Akron          
+E6 |Ed                  |NULL |NULL           
+E7 |Ed                  |NULL |NULL           
+E8 |Ed                  |NULL |NULL           
+ij> -- PASS:0284 If count = 4?
+--O  SELECT COUNT(*) FROM STAFF
+  SELECT * FROM STAFF
+                  WHERE EMPNAME = 'Ed ';
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E5 |Ed                  |13   |Akron          
+E6 |Ed                  |NULL |NULL           
+E7 |Ed                  |NULL |NULL           
+E8 |Ed                  |NULL |NULL           
+ij> -- PASS:0284 If count = 4?
+--O  SELECT COUNT(*) FROM STAFF
+  SELECT * FROM STAFF
+                  WHERE EMPNAME = 'Ed                ';
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E5 |Ed                  |13   |Akron          
+E6 |Ed                  |NULL |NULL           
+E7 |Ed                  |NULL |NULL           
+E8 |Ed                  |NULL |NULL           
+ij> -- PASS:0284 If count = 4?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0284 <<< END TEST
+-- *************************************************
+-- TEST:0285 INSERT, SELECT integer with various formats!
+  INSERT INTO STAFF(EMPNUM,GRADE)
+         VALUES ('E6',25);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF(EMPNUM,GRADE)
+         VALUES ('E7',25.0);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF(EMPNUM,GRADE)
+         VALUES ('E8',-25);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF(EMPNUM,GRADE)
+         VALUES ('E9',25.000);
+1 row inserted/updated/deleted
+ij> UPDATE STAFF
+         SET GRADE = -GRADE
+         WHERE GRADE < 0;
+1 row inserted/updated/deleted
+ij> --O  SELECT COUNT(*) FROM STAFF
+  SELECT * FROM STAFF
+                  WHERE GRADE = 25;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E6 |NULL                |25   |NULL           
+E7 |NULL                |25   |NULL           
+E8 |NULL                |25   |NULL           
+E9 |NULL                |25   |NULL           
+ij> -- PASS:0285 If count = 4?
+-- restore
+  ROLLBACK WORK;
+ij> -- END TEST >>> 0285 <<< END TEST
+-- *************************************************
+-- NO_TEST:0286 Compatibility of structures and host variables!
+-- Testing host identifiers
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml068.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml068.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml068.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,198 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML068 
+-- SQL Test Suite, V6.0, Interactive SQL, dml068.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
+-- TEST:0389 95-character graphic subset of ASCII!
+-- NOTE:  OPTIONAL test
+-- NOTE:0389 Collating sequence is implementor defined
+     DELETE FROM AA;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO AA VALUES('@ at');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('`-qt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('!exc');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('"dqt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('#pou');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('$dol');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('%pct');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('&amp');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('''+qt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('(lpr');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES(')rpr');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('*ast');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('aaaa');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES(':col');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('+plu');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES(';sem');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('[lbk');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('{lbc');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES(',com');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('< lt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('\bsl');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('|dvt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('-hyp');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('=equ');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES(']rbk');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('}rbc');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('.per');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('> gt');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('^hat');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('~til');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('/ sl');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('?que');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('_und');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('AAAA');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('0000');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('9999');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('zzzz');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('  sp');
+1 row inserted/updated/deleted
+ij> INSERT INTO AA VALUES('ZZZZ');
+1 row inserted/updated/deleted
+ij> SELECT * FROM AA
+          ORDER BY CHARTEST;
+CHARTEST            
+--------------------
+  sp                
+!exc                
+"dqt                
+#pou                
+$dol                
+%pct                
+&amp                
+'+qt                
+(lpr                
+)rpr                
+*ast                
++plu                
+,com                
+-hyp                
+.per                
+/ sl                
+0000                
+9999                
+:col                
+;sem                
+< lt                
+=equ                
+> gt                
+?que                
+@ at                
+AAAA                
+ZZZZ                
+[lbk                
+\bsl                
+]rbk                
+^hat                
+_und                
+`-qt                
+aaaa                
+zzzz                
+{lbc                
+|dvt                
+}rbc                
+~til                
+ij> -- PASS:0389 If character in 1st position matches                 ?
+-- PASS:0389    description in positions 2-4                      ?
+-- PASS:0389 If ASCII, then ORDER is: space followed by characters?
+-- PASS:0389    !"#$%&'()*+,-./09:;<=>?@AZ[\]^_`az{|}~            ?
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM AA;
+CHARTEST            
+--------------------
+@ at                
+`-qt                
+!exc                
+"dqt                
+#pou                
+$dol                
+%pct                
+&amp                
+'+qt                
+(lpr                
+)rpr                
+*ast                
+aaaa                
+:col                
++plu                
+;sem                
+[lbk                
+{lbc                
+,com                
+< lt                
+\bsl                
+|dvt                
+-hyp                
+=equ                
+]rbk                
+}rbc                
+.per                
+> gt                
+^hat                
+~til                
+/ sl                
+?que                
+_und                
+AAAA                
+0000                
+9999                
+zzzz                
+  sp                
+ZZZZ                
+ij> -- PASS:0389 If count = 39? 
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0389 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml069.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml069.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml069.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,80 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML069 
+-- SQL Test Suite, V6.0, Interactive SQL, dml069.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:0404 2 FETCHes (different target types) on same cursor!
+-- Testing cursors
+-- ***************************************************************
+-- NO_TEST:0405 2 cursors open from different schemas (coded join)!
+-- Testing cursors
+-- ***************************************************************
+-- TEST:0406 Subquery from different schema!
+--O     DELETE FROM CUGINI.VTABLE;
+     DELETE FROM VTABLE;
+4 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup 
+--O     INSERT INTO CUGINI.VTABLE VALUES (80, 100, 100, 100, 100.0);
+     INSERT INTO VTABLE VALUES (80, 100, 100, 100, 100.0);
+1 row inserted/updated/deleted
+ij> --O     INSERT INTO CUGINI.VTABLE VALUES (40, 200, 100, 100, 100.0);
+     INSERT INTO VTABLE VALUES (40, 200, 100, 100, 100.0);
+1 row inserted/updated/deleted
+ij> SELECT PNUM
+          FROM WORKS
+             WHERE EMPNUM = 'E1' AND HOURS IN 
+--O                 (SELECT COL1 FROM CUGINI.VTABLE
+                 (SELECT COL1 FROM VTABLE
+                 WHERE  COL1 > 50);
+PN&
+---
+P3 
+ij> -- PASS:0406 If PNUM = 'P3'?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0406 <<< END TEST
+-- *************************************************************
+-- NO_TEST:0407 SELECT INTO :XX ... WHERE :XX = !
+-- Testing host variables
+-- **************************************************************
+-- TEST:0408 UPDATE references column value BEFORE update!
+     DELETE FROM WORKS1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup
+     INSERT INTO WORKS1 SELECT * FROM WORKS;
+12 rows inserted/updated/deleted
+ij> UPDATE WORKS1
+          SET PNUM = EMPNUM, EMPNUM = PNUM, HOURS = (HOURS + 3) * HOURS;
+12 rows inserted/updated/deleted
+ij> SELECT * 
+          FROM WORKS1
+             WHERE EMPNUM = 'P2'
+             ORDER BY EMPNUM, PNUM ASC;
+EM&|PN&|HOURS 
+--------------
+P2 |E1 |460   
+P2 |E2 |6640  
+P2 |E3 |460   
+P2 |E4 |460   
+ij> -- PASS:0408 If FOR ROW #1, EMPNO1 = 'P2', PNUM1 = 'E1', HOURS1 = 460?
+-- PASS:0408 If FOR ROW #2, EMPNO1 = 'P2', PNUM1 = 'E2',HOURS1 = 6640? 
+-- PASS:0408 If FOR ROW #3, EMPNO1 = 'P2', PNUM1 = 'E3', HOURS1 = 460?
+-- PASS:0408 If FOR ROW #4, EMPNO1 = 'P2', PNUM1 = 'E4', HOURS1 = 460?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0408 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml070.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml070.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml070.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,92 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML070
+-- SQL Test Suite, V6.0, Interactive SQL, dml070.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
+-- TEST:0409 Effective outer join -- with 2 cursors!
+-- setup
+     INSERT INTO STAFF
+           VALUES('E6','Lendle',17,'Potomac');
+1 row inserted/updated/deleted
+ij> SELECT PNUM, WORKS.EMPNUM, EMPNAME, HOURS
+           FROM WORKS, STAFF
+           WHERE STAFF.EMPNUM = WORKS.EMPNUM
+                ORDER BY 2;
+PN&|EM&|EMPNAME             |HOURS 
+-----------------------------------
+P6 |E1 |Alice               |12    
+P5 |E1 |Alice               |12    
+P4 |E1 |Alice               |20    
+P3 |E1 |Alice               |80    
+P2 |E1 |Alice               |20    
+P1 |E1 |Alice               |40    
+P2 |E2 |Betty               |80    
+P1 |E2 |Betty               |40    
+P2 |E3 |Carmen              |20    
+P5 |E4 |Don                 |80    
+P4 |E4 |Don                 |40    
+P2 |E4 |Don                 |20    
+ij> -- PASS:0409 If twelve rows are selected with ROW #9 as follows?
+-- PASS:0409 PNUM   WORKS.EMPNUM   EMPNAME    HOURS?
+-- PASS:0409  P2         E3         Carmen     20?
+     SELECT 'ZZ', EMPNUM, EMPNAME, -99
+           FROM STAFF
+           WHERE NOT EXISTS (SELECT * FROM WORKS
+                WHERE WORKS.EMPNUM = STAFF.EMPNUM)
+                ORDER BY EMPNUM;
+1 |EM&|EMPNAME             |4          
+---------------------------------------
+ZZ|E5 |Ed                  |-99        
+ZZ|E6 |Lendle              |-99        
+ij> -- PASS:0409 If 2 rows are selected in the following order?
+-- PASS:0409 'ZZ'     STAFF.EMPNUM     EMPNAME     HOURS?
+-- PASS:0409  ZZ          E5              Ed        -99?
+-- PASS:0409  ZZ          E6            Lendle      -99?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0409 <<< END TEST
+-- *****************************************************
+-- TEST:0411 Effective set difference!
+     SELECT W1.EMPNUM FROM WORKS W1
+           WHERE W1.PNUM = 'P2'
+                AND NOT EXISTS (SELECT * FROM WORKS W2
+                WHERE W2.EMPNUM = W1.EMPNUM
+                      AND W2.PNUM = 'P1')
+                      ORDER BY 1 ASC;
+EM&
+---
+E3 
+E4 
+ij> -- PASS:0411 If 2 rows are selected?
+-- PASS:0411 If FOR ROW #1, W1.EMPNUM = 'E3'?
+-- PASS:0411 If FOR ROW #2, W1.EMPNUM = 'E4'?
+-- END TEST >>> 0411 <<< END TEST
+-- *************************************************************
+-- TEST:0412 Effective set intersection!
+     SELECT W1.EMPNUM FROM WORKS W1
+           WHERE W1.PNUM = 'P2'
+                AND EXISTS (SELECT * FROM WORKS W2
+                WHERE W1.EMPNUM = W2.EMPNUM
+                      AND W2.PNUM = 'P1')
+                      ORDER BY EMPNUM ASC;
+EM&
+---
+E1 
+E2 
+ij> -- PASS:0412 If 2 rows are selected?
+-- PASS:0412 If FOR ROW #1, W1.EMPNUM = 'E1'?
+-- PASS:0412 If FOR ROW #2, W1.EMPNUM = 'E2'?
+-- END TEST >>> 0412 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml073.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml073.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml073.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,142 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML073
+-- SQL Test Suite, V6.0, Interactive SQL, dml073.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU 
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0393 SUM, MAX on Cartesian product!
+     SELECT SUM(HOURS), MAX(HOURS)
+           FROM  STAFF, WORKS;
+1          |2     
+------------------
+2320       |80    
+ij> -- PASS:0393 If SUM(HOURS) = 2320 and MAX(HOURS) = 80?
+-- END TEST >>> 0393 <<< END TEST
+-- *************************************************************
+-- TEST:0394 AVG, MIN on joined table with WHERE without GROUP!
+     SELECT AVG(HOURS), MIN(HOURS)
+           FROM  STAFF, WORKS
+           WHERE STAFF.EMPNUM = 'E2'
+                 AND STAFF.EMPNUM = WORKS.EMPNUM;
+1            |2     
+--------------------
+60.0000      |40    
+ij> -- PASS:0394 If AVG(HOURS) = 60 and MIN(HOURS) = 40?
+-- END TEST >>> 0394 <<< END TEST
+-- *************************************************************
+-- TEST:0395 SUM, MIN on joined table with GROUP without WHERE!
+     SELECT STAFF.EMPNUM, SUM(HOURS), MIN(HOURS)
+           FROM  STAFF, WORKS
+           GROUP BY STAFF.EMPNUM
+           ORDER BY 1;
+EM&|2          |3     
+----------------------
+E1 |464        |12    
+E2 |464        |12    
+E3 |464        |12    
+E4 |464        |12    
+E5 |464        |12    
+ij> -- PASS:0395 If 5 rows are selected with the following order?
+-- PASS:0395 STAFF.EMPNUM  SUM(HOURS)  MIN(HOURS)?
+-- PASS:0395    'E1'         464          12?
+-- PASS:0395    'E2'         464          12?
+-- PASS:0395    'E3'         464          12?
+-- PASS:0395    'E4'         464          12?
+-- PASS:0395    'E5'         464          12?
+-- END TEST >>> 0395 <<< END TEST
+-- *************************************************************
+-- TEST:0396 SUM, MIN on joined table with WHERE, GROUP BY, HAVING!
+     SELECT STAFF.EMPNUM, AVG(HOURS), MIN(HOURS)
+           FROM  STAFF, WORKS
+           WHERE STAFF.EMPNUM IN ('E1','E4','E3') AND
+                 STAFF.EMPNUM = WORKS.EMPNUM
+                 GROUP BY STAFF.EMPNUM
+                 HAVING COUNT(*) > 1
+--0                 ORDER BY STAFF.EMPNUM;
+                 ORDER BY EMPNUM;
+EM&|2            |3     
+------------------------
+E1 |30.6666      |12    
+E4 |46.6666      |20    
+ij> -- PASS:0396 If 2 rows are selected with the following order?
+-- PASS:0396 STAFF.EMPNUM   AVG(HOURS)  MIN(HOURS)?
+-- PASS:0396     'E1'        30 to 31      12?
+-- PASS:0396     'E4'        46 to 47      20?
+-- END TEST >>> 0396 <<< END TEST
+-- *************************************************************
+-- TEST:0417 Cartesian product GROUP BY 2 columns with NULLs!
+     DELETE FROM STAFF1;
+0 rows inserted/updated/deleted
+ij> -- Making sure the table is empty
+-- setup          
+     INSERT INTO STAFF VALUES ('E6', 'David', 17, NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E7', 'Tony', 18, NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF1 SELECT * FROM STAFF;
+7 rows inserted/updated/deleted
+ij> SELECT MAX(STAFF1.GRADE), SUM(STAFF1.GRADE)
+           FROM STAFF1, STAFF
+           GROUP BY STAFF1.CITY, STAFF.CITY;
+1    |2        
+---------------
+13   |13       
+13   |26       
+13   |26       
+13   |26       
+12   |24       
+12   |48       
+12   |48       
+12   |48       
+13   |23       
+13   |46       
+13   |46       
+13   |46       
+18   |35       
+18   |70       
+18   |70       
+18   |70       
+ij> -- PASS:0417 If 16 rows are selected in any order?
+-- PASS:0417 Including the following four rows? 
+-- PASS:0417 MAX(STAFF1.GRADE) = 18 and SUM(STAFF1.GRADE) = 35?
+-- PASS:0417 MAX(STAFF1.GRADE) = 18 and SUM(STAFF1.GRADE) = 70?
+-- PASS:0417 MAX(STAFF1.GRADE) = 18 and SUM(STAFF1.GRADE) = 70?
+-- PASS:0417 MAX(STAFF1.GRADE) = 18 and SUM(STAFF1.GRADE) = 70?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0417 <<< END TEST
+-- *************************************************************
+-- TEST:0418 AVG, SUM, COUNT on Cartesian product with NULL!
+     SELECT AVG(T1.COL4), AVG(T1.COL4 + T2.COL4),
+           SUM(T2.COL4), COUNT(DISTINCT T1.COL4)
+           FROM VTABLE T1, VTABLE T2;
+1          |2          |3          |4          
+-----------------------------------------------
+147        |295        |1772       |3          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0418 If AVG(T1.COL4) = 147 or 148? 
+-- PASS:0418 If AVG(T1.COL4 + T2.COL4) = 295 or 296?
+-- PASS:0418 If SUM(T2.COL4) = 1772?
+-- PASS:0418 If COUNT(DISTINCT T1.COL4) = 3?
+-- END TEST >>> 0418 <<< END TEST
+-- *************************************************************
+-- TEST:0419 SUM, MAX, MIN on joined table view!
+     SELECT SUM(COST), MAX(COST), MIN(COST)
+           FROM STAFF_WORKS_DESIGN;
+1                               |2                   |3                   
+--------------------------------------------------------------------------
+3488                            |960                 |288                 
+ij> -- PASS:0419 If SUM(COST) = 3488, MAX(COST) = 960, MIN(COST) = 288?
+-- END TEST >>> 0419 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml075.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml075.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml075.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,227 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML075
+-- SQL Test Suite, V6.0, Interactive SQL, dml075.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
+-- TEST:0431 Redundant rows in IN subquery!
+--O   SELECT COUNT (*) FROM STAFF
+   SELECT * FROM STAFF
+       WHERE EMPNUM IN
+            (SELECT EMPNUM FROM WORKS);
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+ij> -- PASS:0431 If count = 4?
+   INSERT INTO STAFF1
+       SELECT * FROM STAFF;
+5 rows inserted/updated/deleted
+ij> --O   SELECT COUNT (*) FROM STAFF1
+   SELECT * FROM STAFF1
+       WHERE EMPNUM IN
+            (SELECT EMPNUM FROM WORKS);
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+ij> -- PASS:0431 If count = 4?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0431 <<< END TEST
+-- *************************************************************
+-- TEST:0432 Unknown comparison predicate in ALL, SOME, ANY!
+-- setup
+UPDATE PROJ SET CITY = NULL 
+  WHERE PNUM = 'P3';
+1 row inserted/updated/deleted
+ij> --OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY = ALL (SELECT CITY
+                   FROM PROJ
+                   WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ij> -- PASS:0432 If count = 0?
+--OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY <> ALL (SELECT CITY 
+                    FROM PROJ
+                    WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ij> -- PASS:0432 If count = 0?
+--OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY = ANY (SELECT CITY    
+                   FROM PROJ
+                   WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E4 |Don                 |12   |Deale          
+ij> -- PASS:0432 If count = 2?
+--OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY <> ANY (SELECT CITY
+                     FROM PROJ
+                     WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:0432 If count = 3?
+--OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY = SOME (SELECT CITY
+                     FROM PROJ
+                     WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E4 |Don                 |12   |Deale          
+ij> -- PASS:0432 If count = 2?
+--OSELECT COUNT(*)
+SELECT *
+  FROM STAFF
+  WHERE CITY <> SOME (SELECT CITY
+                      FROM PROJ
+                      WHERE PNAME = 'SDP');
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:0432 If count = 3?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0432 <<< END TEST
+-- *************************************************************
+-- TEST:0433 Empty subquery in ALL, SOME, ANY!
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM = ALL (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+P1 |MXSS                |Design|10000     |Deale          
+P2 |CALM                |Code  |30000     |Vienna         
+P3 |SDP                 |Test  |30000     |Tampa          
+P4 |SDP                 |Design|20000     |Deale          
+P5 |IRM                 |Test  |10000     |Vienna         
+P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:0433 If count = 6?
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM <> ALL (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+P1 |MXSS                |Design|10000     |Deale          
+P2 |CALM                |Code  |30000     |Vienna         
+P3 |SDP                 |Test  |30000     |Tampa          
+P4 |SDP                 |Design|20000     |Deale          
+P5 |IRM                 |Test  |10000     |Vienna         
+P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:0433 If count = 6?
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM = ANY (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+ij> -- PASS:0433 If count = 0?
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM <> ANY (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+ij> -- PASS:0433 If count = 0?
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM = SOME (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+ij> -- PASS:0433 If count = 0?
+--O   SELECT COUNT(*) FROM PROJ
+   SELECT * FROM PROJ
+        WHERE PNUM <> SOME (SELECT PNUM
+                          FROM WORKS WHERE EMPNUM = 'E8');
+PN&|PNAME               |PTYPE |BUDGET    |CITY           
+----------------------------------------------------------
+ij> -- PASS:0433 If count = 0?
+-- END TEST >>> 0433 <<< END TEST
+-- *************************************************************
+-- TEST:0434 GROUP BY with HAVING EXISTS-correlated set function!
+   SELECT PNUM, SUM(HOURS) FROM WORKS c
+          GROUP BY PNUM
+--O          HAVING EXISTS (SELECT PNAME FROM PROJ
+--O                         WHERE PROJ.PNUM = WORKS.PNUM AND
+          HAVING EXISTS (SELECT PNAME FROM PROJ, works a
+                         WHERE PROJ.PNUM = a.PNUM AND
+--O                               SUM(WORKS.HOURS) > PROJ.BUDGET / 200);
+                         PROJ.BUDGET / 200 < (select sum(hours) from works b
+			  where a.pnum = b.pnum
+			  and a.pnum = c.pnum));
+PN&|2          
+---------------
+P1 |80         
+P5 |92         
+ij> -- PASS:0434 If 2 rows selected with values (in any order):?
+-- PASS:0434 PNUM = 'P1', SUM(HOURS) = 80?
+-- PASS:0434 PNUM = 'P5', SUM(HOURS) = 92?
+-- END TEST >>> 0434 <<< END TEST
+-- *************************************************************
+-- TEST:0442 DISTINCT with GROUP BY, HAVING!
+   SELECT PTYPE, CITY FROM PROJ
+          GROUP BY PTYPE, CITY
+          HAVING AVG(BUDGET) > 21000;
+PTYPE |CITY           
+----------------------
+Code  |Vienna         
+Design|Deale          
+Test  |Tampa          
+ij> -- PASS:0442 If 3 rows selected with PTYPE/CITY values(in any order):?
+-- PASS:0442 Code/Vienna, Design/Deale, Test/Tampa?
+   SELECT DISTINCT PTYPE, CITY FROM PROJ
+          GROUP BY PTYPE, CITY
+          HAVING AVG(BUDGET) > 21000;
+PTYPE |CITY           
+----------------------
+Code  |Vienna         
+Design|Deale          
+Test  |Tampa          
+ij> -- PASS:0442 If 3 rows selected with PTYPE/CITY values(in any order):?
+-- PASS:0442 Code/Vienna, Design/Deale, Test/Tampa?
+   SELECT DISTINCT SUM(BUDGET) FROM PROJ
+          GROUP BY PTYPE, CITY
+          HAVING AVG(BUDGET) > 21000;
+1                  
+-------------------
+30000              
+80000              
+ij> -- PASS:0442 If 2 rows selected (in any order):?
+-- PASS:0442 with SUM(BUDGET) values 30000 and 80000?
+-- END TEST >>> 0442 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml076.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml076.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml076.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,122 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML076
+-- SQL Test Suite, V6.0, Interactive SQL, dml076.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:0435 Host variables in UPDATE WHERE CURRENT!
+-- Testing cursors <update statement:positioned>
+-- *************************************************************
+-- TEST:0436 NULL values for various SQL data types!
+    INSERT INTO BB VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO EE VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO GG VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO HH VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO II VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO JJ VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO MM VALUES(NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO SS VALUES(NULL);
+1 row inserted/updated/deleted
+ij> SELECT CHARTEST 
+      FROM BB;
+CHA&
+----
+NULL
+ij> -- PASS:0436 If CHARTEST is NULL (Implementor defined print format)?
+    SELECT INTTEST
+      FROM EE;
+INTTEST    
+-----------
+NULL       
+ij> -- PASS:0436 If INTTEST is NULL (Implementor defined print format)?
+    SELECT REALTEST 
+      FROM GG;
+REALTEST     
+-------------
+NULL         
+ij> -- PASS:0436 If REALTEST is NULL (Implementor defined print format)?
+--O    SELECT COUNT(*)
+    SELECT *
+      FROM GG 
+      WHERE REALTEST IS NULL;
+REALTEST     
+-------------
+NULL         
+ij> -- PASS:0436 If count = 1?
+    SELECT SMALLTEST 
+      FROM HH;
+SMALL&
+------
+NULL  
+ij> -- PASS:0436 If SMALLTEST is NULL (Implementor defined print format)?
+    SELECT DOUBLETEST 
+      FROM II;
+DOUBLETEST            
+----------------------
+NULL                  
+ij> -- PASS:0436 If DOUBLETEST is NULL (Implementor defined print format)?
+--O    SELECT COUNT(*) 
+    SELECT * 
+      FROM II 
+      WHERE DOUBLETEST IS NULL;
+DOUBLETEST            
+----------------------
+NULL                  
+ij> -- PASS:0436 If count = 1?
+    SELECT FLOATTEST 
+      FROM JJ;
+FLOATTEST             
+----------------------
+NULL                  
+ij> -- PASS:0436 If FLOATTEST is NULL (Implementor defined print format)?
+--O    SELECT COUNT(*) 
+    SELECT * 
+      FROM JJ 
+      WHERE FLOATTEST IS NULL;
+FLOATTEST             
+----------------------
+NULL                  
+ij> -- PASS:0436 If count = 1?
+    SELECT NUMTEST  
+      FROM MM;
+NUMTE&
+------
+NULL  
+ij> -- PASS:0436 If NUMTEST is NULL (Implementor defined print format)?
+    SELECT NUMTEST 
+      FROM SS;
+NUMTEST         
+----------------
+NULL            
+ij> -- PASS:0436 If NUMTEST is NULL (Implementor defined print format)?
+-- restore
+    ROLLBACK WORK;
+ij> -- END TEST >>> 0436 <<< END TEST
+-- *************************************************************
+-- NO_TEST:0437 NULL values for various host variable types!
+-- Testing Host Variables & Indicator Variables
+-- *************************************************************
+-- NO_TEST:0410 NULL value in OPEN CURSOR!
+-- Testing Cursors & Indicator Variables
+-- *************************************************************
+-- NO_TEST:0441 NULL value for various predicates!
+-- Testing Indicator Variables
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml079.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml079.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml079.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,222 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML079
+-- SQL Test Suite, V6.0, Interactive SQL, dml079.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
+-- TEST:0451 UNIQUEness is case sensitive!
+         UPDATE STAFF SET EMPNUM = 'e2'
+           WHERE EMPNUM = 'E4';
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row updated?  
+         INSERT INTO STAFF(EMPNUM)
+           VALUES ('E1');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'STAFF'.
+ij> -- PASS:0451 If ERROR, unique constraint, 0 rows inserted?
+         INSERT INTO STAFF(EMPNUM)
+           VALUES ('e1');
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row inserted?
+         UPDATE STAFF
+           SET EMPNUM = 'E1' WHERE EMPNUM = 'e1';
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'STAFF'.
+ij> -- PASS:0451 If ERROR, unique constraint, 0 rows updated?
+         SELECT * FROM STAFF;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+e2 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+e1 |NULL                |NULL |NULL           
+ij> -- PASS:0451 If 6 rows are selected?
+-- PASS:0451 If EMPNUMs are 'e1','e2','E1','E2','E3','E5'?
+         INSERT INTO WORKS (EMPNUM,PNUM)
+           VALUES ('e1','p2');
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row inserted?
+         INSERT INTO WORKS (EMPNUM,PNUM)
+           VALUES ('E1','p2');
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row inserted?
+         INSERT INTO WORKS (EMPNUM,PNUM) 
+           VALUES ('E1','P2');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'WORKSC1' defined on 'WORKS'.
+ij> -- PASS:0451 If ERROR, unique constraint, 0 rows inserted?
+         INSERT INTO WORKS (EMPNUM,PNUM)
+           VALUES ('e1', 'P2');
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row inserted?
+         UPDATE WORKS
+           SET EMPNUM = 'E1'
+           WHERE PNUM = 'P5' AND EMPNUM = 'E4';
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'WORKSC1' defined on 'WORKS'.
+ij> -- PASS:0451 If ERROR, unique constraint, 0 rows updated?
+         UPDATE WORKS
+           SET EMPNUM = 'e1'
+           WHERE PNUM = 'P5' AND EMPNUM = 'E4';
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row updated?
+         UPDATE WORKS
+           SET PNUM = 'P4'
+           WHERE PNUM = 'P2' AND EMPNUM = 'E4';
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'WORKSC1' defined on 'WORKS'.
+ij> -- PASS:0451 If ERROR, unique constraint, 0 rows updated?
+         UPDATE WORKS
+           SET PNUM = 'p4'
+           WHERE PNUM = 'P2' AND EMPNUM = 'E4';
+1 row inserted/updated/deleted
+ij> -- PASS:0451 If 1 row updated?
+          SELECT * FROM WORKS
+             ORDER BY EMPNUM, PNUM;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E1 |p2 |NULL  
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P4 |40    
+E4 |p4 |20    
+e1 |P2 |NULL  
+e1 |P5 |80    
+e1 |p2 |NULL  
+ij> -- PASS:0451 If 15 rows are selected?
+-- PASS:0451 If EMPNUM/PNUM values include ?
+-- PASS:0451    e1/p2, E1/p2, e1/P2, e1/P5, E4/p4 ? 
+-- PASS:0451 If no EMPNUM/PNUM values are duplicates ?
+         ROLLBACK WORK;
+ij> -- END TEST >>> 0451 <<< END TEST
+-- *********************************************
+-- TEST:0452 Order of precedence, left-to-right in UNION [ALL]!
+      SELECT EMPNAME FROM STAFF
+             UNION
+      SELECT EMPNAME FROM STAFF
+             UNION ALL 
+      SELECT EMPNAME FROM STAFF;
+EMPNAME             
+--------------------
+Alice               
+Betty               
+Carmen              
+Don                 
+Ed                  
+Alice               
+Betty               
+Carmen              
+Don                 
+Ed                  
+ij> -- PASS:0452 If 10 rows selected?
+      SELECT EMPNAME FROM STAFF
+             UNION ALL
+      SELECT EMPNAME FROM STAFF
+             UNION
+      SELECT EMPNAME FROM STAFF;
+EMPNAME             
+--------------------
+Alice               
+Betty               
+Carmen              
+Don                 
+Ed                  
+ij> -- PASS:0452 If 5 rows selected? 
+-- END TEST >>> 0452 <<< END TEST
+-- *********************************************
+-- TEST:0453 NULL with empty subquery of ALL, SOME, ANY!
+   UPDATE PROJ
+       SET CITY = NULL WHERE PNAME = 'IRM';
+1 row inserted/updated/deleted
+ij> --O   SELECT COUNT(*) 
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY IS NULL;
+CITY           
+---------------
+NULL           
+ij> -- PASS:0453 If count = 1?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY = ALL (SELECT CITY
+                    FROM STAFF
+                    WHERE EMPNUM = 'E8');
+CITY           
+---------------
+Deale          
+Vienna         
+Tampa          
+Deale          
+NULL           
+Deale          
+ij> -- PASS:0453 If count = 6?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY <> ALL (SELECT CITY
+                     FROM STAFF
+                     WHERE EMPNUM = 'E8');
+CITY           
+---------------
+Deale          
+Vienna         
+Tampa          
+Deale          
+NULL           
+Deale          
+ij> -- PASS:0453 If count = 6?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY = ANY (SELECT CITY
+                    FROM STAFF
+                    WHERE EMPNUM = 'E8');
+CITY           
+---------------
+ij> -- PASS:0453 If count = 0?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY <> ANY (SELECT CITY
+                     FROM STAFF
+                     WHERE EMPNUM = 'E8');
+CITY           
+---------------
+ij> -- PASS:0453 If count = 0?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY = SOME (SELECT CITY
+                     FROM STAFF
+                     WHERE EMPNUM = 'E8');
+CITY           
+---------------
+ij> -- PASS:0453 If count = 0?
+--O   SELECT COUNT(*)
+   SELECT CITY 
+       FROM PROJ
+       WHERE CITY <> SOME (SELECT CITY
+                      FROM STAFF
+                      WHERE EMPNUM = 'E8');
+CITY           
+---------------
+ij> -- PASS:0453 If count = 0?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0453 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml080.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml080.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml080.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,75 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML080  
+-- SQL Test Suite, V6.0, Interactive SQL, dml080.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   create schema SHANZLE;
+0 rows inserted/updated/deleted
+ij> set schema SHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- TEST:0462 SQLCODE 100: DELETE with no data!
+   DELETE FROM HU.STAFF 
+         WHERE EMPNUM = 'E7';
+0 rows inserted/updated/deleted
+ij> -- PASS:0462 If SQLCODE = 100 or no data, 0 rows deleted?
+   DELETE FROM HU.STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0462 If 5 rows deleted?
+   DELETE FROM HU.STAFF;
+0 rows inserted/updated/deleted
+ij> -- PASS:0462 If SQLCODE = 100 or no data, 0 rows deleted?
+   DELETE FROM HU.STAFF
+         WHERE EMPNUM = 'E1';
+0 rows inserted/updated/deleted
+ij> -- PASS:0462 If SQLCODE = 100 or no data, 0 rows deleted?
+-- restore 
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0462 <<< END TEST
+-- *********************************************
+-- TEST:0463 SQLCODE 100: UPDATE with no data!
+   UPDATE HU.STAFF
+         SET CITY = 'NOWHERE'
+         WHERE EMPNAME = 'NOBODY';
+0 rows inserted/updated/deleted
+ij> -- PASS:0463 If SQLCODE = 100 or no data, 0 rows updated? 
+   UPDATE HU.STAFF
+         SET GRADE = 11;
+5 rows inserted/updated/deleted
+ij> -- PASS:0463 If 5 rows updated?
+   DELETE FROM HU.STAFF;
+5 rows inserted/updated/deleted
+ij> -- PASS:0463 If 5 rows deleted?
+   UPDATE HU.STAFF
+         SET CITY = 'NOWHERE';
+0 rows inserted/updated/deleted
+ij> -- PASS:0463 If SQLCODE = 100 or no data, 0 rows updated?
+   UPDATE HU.STAFF
+         SET CITY = 'NOWHERE'
+         WHERE EMPNAME = 'NOBODY';
+0 rows inserted/updated/deleted
+ij> -- PASS:0463 If SQLCODE = 100 or no data, 0 rows updated?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0463 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml081.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml081.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml081.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,148 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML081  
+-- SQL Test Suite, V6.0, Interactive SQL, dml081.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- TEST:0487 SQLSTATE 00000: successful completion!
+--O   SELECT COUNT(*) 
+   SELECT * 
+         FROM HU.WORKS;
+EM&|PN&|HOURS 
+--------------
+E1 |P1 |40    
+E1 |P2 |20    
+E1 |P3 |80    
+E1 |P4 |20    
+E1 |P5 |12    
+E1 |P6 |12    
+E2 |P1 |40    
+E2 |P2 |80    
+E3 |P2 |20    
+E4 |P2 |20    
+E4 |P4 |40    
+E4 |P5 |80    
+ij> -- PASS:0487 If count = 12?
+-- PASS:0487 OR SQLSTATE = 00000: successful completion?
+-- END TEST >>> 0487 <<< END TEST
+-- *********************************************
+-- TEST:0488 SQLSTATE 21000: cardinality violation!
+--O   SELECT COUNT(*) 
+   SELECT * 
+         FROM HU.WORKS
+         WHERE PNUM = (SELECT PNUM 
+                             FROM HU.WORKS
+                             WHERE HOURS = 80);
+ERROR 21000: Scalar subquery is only allowed to return a single row.
+ij> -- PASS:0488 If ERROR, cardinality violation, 0 rows selected? 
+-- PASS:0488 OR SQLSTATE = 21000 OR SQLCODE < 0?            
+-- END TEST >>> 0488 <<< END TEST
+-- *********************************************
+-- TEST:0489 SQLSTATE 02000: no data!
+   SELECT GRADE
+         FROM HU.STAFF 
+         WHERE EMPNUM = 'xx';
+GRADE
+-----
+ij> -- PASS:0489 If 0 rows selected?
+-- PASS:0489 OR SQLSTATE = 02000: no data OR SQLCODE = 100? 
+   DELETE FROM HU.STAFF
+         WHERE GRADE = 11;
+0 rows inserted/updated/deleted
+ij> -- PASS:0489 If 0 rows deleted?
+-- PASS:0489 OR SQLSTATE = 02000: no data OR SQLCODE = 100?
+   INSERT INTO HU.STAFF (EMPNUM,GRADE)
+         SELECT EMPNUM, 9 
+               FROM HU.WORKS
+               WHERE PNUM = 'x9';
+0 rows inserted/updated/deleted
+ij> -- PASS:0489 If 0 rows inserted?
+-- PASS:0489 OR SQLSTATE = 02000: no data OR SQLCODE = 100?
+   UPDATE HU.STAFF SET CITY = 'Ho'
+         WHERE GRADE = 15;
+0 rows inserted/updated/deleted
+ij> -- PASS:0489 If 0 rows updated?
+-- PASS:0489 OR SQLSTATE = 02000: no data OR SQLCODE = 100?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0489 <<< END TEST
+-- *********************************************
+-- TEST:0490 SQLSTATE 22012: data exception/division by zero!
+-- setup
+   INSERT INTO HU.STAFF
+         VALUES ('E6','Fidel',0,'Havana');
+1 row inserted/updated/deleted
+ij> --O   SELECT COUNT(*) 
+   SELECT * 
+         FROM HU.STAFF
+         WHERE EMPNAME = 'Fidel' AND 16/GRADE > 2;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows selected?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+   SELECT 16/GRADE 
+         FROM HU.STAFF
+         WHERE EMPNAME = 'Fidel';
+1                                 
+----------------------------------
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows selected?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+   SELECT COUNT(*) 
+         FROM HU.STAFF
+         GROUP BY CITY HAVING SUM(GRADE/0) > 44;
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows selected?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+--O   SELECT COUNT(*) 
+   SELECT * 
+         FROM HU.STAFF WHERE GRADE = 
+                      (SELECT 16/GRADE 
+                             FROM HU.STAFF 
+                             WHERE EMPNUM = 'E6');
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows selected?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+   UPDATE HU.STAFF 
+         SET GRADE = GRADE/0 
+         WHERE GRADE = 12;
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows updated?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+   INSERT INTO HU.STAFF 
+         SELECT 'X','Y',HOURS/0,'z' 
+               FROM HU.WORKS 
+               WHERE PNUM = 'P6';
+ERROR 22012: Attempt to divide by zero.
+ij> -- PASS:0490 If ERROR, data exception/division by zero, 0 rows inserted?
+-- PASS:0490 OR SQLSTATE = 22012 OR SQLCODE < 0?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0490 <<< END TEST
+-- *********************************************
+-- NO_TEST:0502 SQLSTATE 24000: invalid cursor state!
+-- Testing cursors
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml082.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml082.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml082.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,164 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML082  
+-- SQL Test Suite, V6.0, Interactive SQL, dml082.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- NO_TEST:0491 SQLSTATE 22022: data exception/indicator overflow!
+-- Testing indicators 
+-- *********************************************
+-- TEST:0492 SQLSTATE 22019: data exception/invalid escape char!
+-- setup
+--O   UPDATE HU.STAFF 
+--O         SET CITY = 'Percent%Xunder_'
+--O         WHERE EMPNUM = 'E1';
+--O   SELECT COUNT(*) 
+--O         FROM HU.STAFF 
+--O         WHERE CITY LIKE '%XX%X_%' ESCAPE 'XX';
+-- PASS:0492 If ERROR, data exception/invalid escape char?
+-- PASS:0492 0 rows selected OR SQLSTATE = 22019 OR SQLCODE < 0?
+--O   SELECT COUNT(*)
+--O         FROM HU.STAFF
+--O         WHERE CITY LIKE '%XX%X_%' ESCAPE 'X';
+-- PASS:0492 If count = 1?
+--O   SELECT COUNT(*)
+--O         FROM HU.STAFF
+--O         WHERE CITY LIKE '%XX_%' ESCAPE 'XX';
+-- PASS:0492 If ERROR, data exception/invalid escape char?
+-- PASS:0492 0 rows selected OR SQLSTATE = 22019 OR SQLCODE < 0?
+--O   SELECT COUNT(*) 
+--O         FROM HU.STAFF WHERE CITY
+--O         LIKE '%XX_%' ESCAPE 'X';
+-- PASS:0492 If count = 1?
+-- restore
+--O   ROLLBACK WORK;
+-- END TEST >>> 0492 <<< END TEST
+-- *********************************************
+-- TEST:0493 SQLSTATE 22025: data exception/invalid escape seq.!
+-- setup
+--O   DELETE FROM CPBASE;
+--O   INSERT INTO CPBASE 
+--O         VALUES(82,'Per%X&und_');
+--O   SELECT COUNT(*) 
+--O         FROM CPBASE WHERE JUNK1
+--O         LIKE 'P%X%%X' ESCAPE 'X';
+-- PASS:0493 If ERROR, data exception/invalid escape seq.?
+-- PASS:0493 0 rows selected OR SQLSTATE = 22025 OR SQLCODE < 0?
+--O   SELECT COUNT(*) 
+--O         FROM CPBASE WHERE JUNK1
+--O         LIKE 'P%X%%' ESCAPE 'X';
+-- PASS:0493 If count = 1?
+--O   INSERT INTO HU.STAFF 
+--O         SELECT 'E12','ff',KC,'gg' 
+--O               FROM CPBASE
+--O               WHERE JUNK1 LIKE '%X%%Xd_' ESCAPE 'X';
+-- PASS:0493 If ERROR, data exception/invalid escape seq.?
+-- PASS:0493 0 rows inserted OR SQLSTATE = 22025 OR SQLCODE < 0?
+--O   INSERT INTO HU.STAFF 
+--O         SELECT 'E13','ff',KC,'gg' 
+--O               FROM CPBASE
+--O               WHERE JUNK1 LIKE '%X%%X_' ESCAPE 'X';
+-- PASS:0493 If 1 row is inserted?
+--O   UPDATE CPBASE
+--O         SET KC = -1
+--O         WHERE JUNK1 LIKE '%?X%' ESCAPE '?';
+-- PASS:0493 If ERROR, data exception/invalid escape seq.?
+-- PASS:0493 0 rows updated OR SQLSTATE = 22025 OR SQLCODE < 0?
+--O   UPDATE CPBASE 
+--O         SET KC = -1
+--O         WHERE JUNK1 LIKE '%?%X%' ESCAPE '?';
+-- PASS:0493 If 1 row is updated?
+--O   DELETE FROM CPBASE
+--O         WHERE JUNK1 LIKE '_e%&u%' ESCAPE '&';
+-- PASS:0493 If ERROR, data exception/invalid escape seq.?
+-- PASS:0493 0 rows deleted OR SQLSTATE = 22025 OR SQLCODE < 0?
+--O   DELETE FROM CPBASE
+--O         WHERE JUNK1 LIKE '_e%&&u%' ESCAPE '&';
+-- PASS:0493 If 1 row is deleted?
+-- restore
+--O   ROLLBACK WORK;
+-- END TEST >>> 0493 <<< END TEST
+-- *********************************************
+-- TEST:0494 SQLSTATE 22003: data exception/numeric value out of range!
+-- setup
+   DELETE FROM HU.HH;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.HH 
+         VALUES (10);
+1 row inserted/updated/deleted
+ij> -- PASS:0494 If 1 row is inserted? 
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.HH 
+         VALUES (100);
+1 row inserted/updated/deleted
+ij> -- PASS:0494 If 1 row is inserted?
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.HH 
+         VALUES (1000);
+1 row inserted/updated/deleted
+ij> -- PASS:0494 If 1 row is inserted?
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.HH 
+         VALUES (10000);
+1 row inserted/updated/deleted
+ij> -- PASS:0494 If 1 row is inserted?
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.HH
+         VALUES (100000);
+ERROR 22003: The resulting value is outside the range for the data type SMALLINT.
+ij> -- PASS:0494 If 1 row is inserted?
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.HH
+         VALUES (1000000);
+ERROR 22003: The resulting value is outside the range for the data type SMALLINT.
+ij> -- PASS:0494 If 1 row is inserted?
+-- PASS:0494 OR ERROR, data exception/numeric value out of range?
+-- PASS:0494 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0494 <<< END TEST
+-- *********************************************
+-- TEST:0505 SQLSTATE 44000: with check option violation!
+--O   INSERT INTO FLATER.WCOV 
+--O         VALUES (0);
+-- PASS:0505 If ERROR, with check option violation?
+-- PASS:0505 0 rows inserted OR SQLSTATE = 44000 OR SQLCODE < 0?
+--O   INSERT INTO FLATER.WCOV
+--O         VALUES (75);
+-- PASS:0505 If 1 row is inserted?
+--O   UPDATE FLATER.WCOV
+--O         SET C1 = -C1 
+--O         WHERE C1 = 75;
+-- PASS:0505 If ERROR, with check option violation?
+-- PASS:0505 0 rows updated OR SQLSTATE = 44000 OR SQLCODE < 0?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0505 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml083.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml083.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml083.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,133 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML083
+-- SQL Test Suite, V6.0, Interactive SQL, dml083.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- NO_TEST:0496 SQLSTATE 22002: data exception/null, value, no indic.!
+-- Testing indicators
+-- *********************************************
+-- TEST:0498 SQLSTATE 22001: data exception/string right trunc.!
+   INSERT INTO HU.STAFF 
+         VALUES ('E6','Earl Brown',11,'Claggetsville Maryland');
+ERROR 22001: A truncation error was encountered trying to shrink CHAR 'Claggetsville Maryland' to length 15.
+ij> -- PASS:0498 If ERROR, data exception/string right trunc.?
+-- PASS:0498 If 0 rows inserted OR SQLSTATE = 22001 OR SQLCODE < 0?
+   INSERT INTO HU.STAFF 
+         VALUES ('E7','Ella Brown',12,'Claggetsville Maryland');
+ERROR 22001: A truncation error was encountered trying to shrink CHAR 'Claggetsville Maryland' to length 15.
+ij> -- PASS:0498 If ERROR, data exception/string right trunc.?
+-- PASS:0498 If 0 rows inserted OR SQLSTATE = 22001 OR SQLCODE < 0?
+--O   SELECT COUNT(*)
+   SELECT *
+         FROM HU.STAFF;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E1 |Alice               |12   |Deale          
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E4 |Don                 |12   |Deale          
+E5 |Ed                  |13   |Akron          
+ij> -- PASS:0498 If count = 5?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0498 <<< END TEST
+-- *********************************************
+-- TEST:0500 SQLSTATE 01003: warning/null value elim. in set function!
+-- setup
+   DELETE FROM HU.HH;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.HH 
+         VALUES (3);
+1 row inserted/updated/deleted
+ij> INSERT INTO HU.HH 
+         VALUES (NULL);
+1 row inserted/updated/deleted
+ij> SELECT AVG(SMALLTEST)
+         FROM HU.HH;
+1     
+------
+3     
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0500 If WARNING, null value eliminated in set function?
+-- PASS:0500 OR SQLSTATE = 01003?
+-- setup
+   UPDATE HU.STAFF 
+         SET GRADE = NULL
+         WHERE GRADE = 13;
+2 rows inserted/updated/deleted
+ij> SELECT AVG(GRADE)
+         FROM HU.STAFF
+         WHERE CITY = 'Vienna';
+1           
+------------
+10.0000     
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0500 If WARNING, null value eliminated in set function?
+-- PASS:0500 OR SQLSTATE = 01003?
+   SELECT SUM(DISTINCT GRADE)
+         FROM HU.STAFF;
+1        
+---------
+22       
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0500 If WARNING, null value eliminated in set function?
+-- PASS:0500 OR SQLSTATE = 01003?
+   INSERT INTO HU.HH 
+         SELECT MAX(GRADE) 
+               FROM HU.STAFF;
+1 row inserted/updated/deleted
+ij> -- PASS:0500 If WARNING, null value eliminated in set function?
+-- PASS:0500 OR SQLSTATE = 01003?
+   DELETE FROM HU.HH 
+         WHERE SMALLTEST < (SELECT MIN(GRADE)
+                                  FROM HU.STAFF
+                                  WHERE CITY = 'Vienna');
+1 row inserted/updated/deleted
+ij> -- PASS:0500 If WARNING, null value eliminated in set function?
+-- PASS:0500 OR SQLSTATE = 01003?
+   SELECT CITY, COUNT(DISTINCT GRADE) 
+         FROM HU.STAFF
+         GROUP BY CITY
+         ORDER BY CITY DESC;
+CITY           |2          
+---------------------------
+Vienna         |1          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+Deale          |1          
+Akron          |0          
+ij> -- PASS:0500 If 3 rows are selected with the following order?
+-- PASS:0500     CITY    COUNT(DISTINCT GRADE)?
+-- PASS:0500   'Vienna'          1?
+-- PASS:0500   'Deale'           1?
+-- PASS:0500   'Akron'           0?
+-- PASS:0500 OR SQLSTATE = 01003?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0500 <<< END TEST
+-- *********************************************
+-- NO_TEST:0501 SQLSTATE 01004: warning/string right truncation!
+-- Testing host variables
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml085.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml085.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml085.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,241 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML085  
+-- SQL Test Suite, V6.0, Interactive SQL, dml085.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0508 Delimited identifers!
+   SELECT COUNT(DISTINCT "sullivan.select")     
+     FROM "FLATER"."SULLIVAN.SELECT";
+1          
+-----------
+2          
+ij> -- PASS:0508 If count = 2?
+   SELECT "A<a"."sullivan.select"    
+     FROM "FLATER"."SULLIVAN.SELECT" "A<a";
+sullivan.s&
+-----------
+0          
+1          
+0          
+1          
+ij> -- PASS:0508 If 4 rows selected?
+-- PASS:0508 If for each row, "sullivan.select" = 0 OR 1 ?
+   SELECT "A < a".CITY
+     FROM HU.STAFF "A < a"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "0".CITY
+     FROM HU.STAFF "0"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT """".CITY
+     FROM HU.STAFF  """"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "%".CITY
+     FROM HU.STAFF  "%"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "&".CITY
+     FROM HU.STAFF  "&"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "'".CITY
+     FROM HU.STAFF  "'"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "(".CITY
+     FROM HU.STAFF  "("
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ")".CITY
+     FROM HU.STAFF  ")"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "*".CITY
+     FROM HU.STAFF  "*"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "+".CITY
+     FROM HU.STAFF  "+"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ",".CITY
+     FROM HU.STAFF  ","
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "-".CITY
+     FROM HU.STAFF  "-"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ".".CITY
+     FROM HU.STAFF  "."
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "/".CITY
+     FROM HU.STAFF  "/"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ":".CITY
+     FROM HU.STAFF  ":"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ";".CITY
+     FROM HU.STAFF  ";"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "<".CITY
+     FROM HU.STAFF  "<"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "=".CITY
+     FROM HU.STAFF  "="
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT ">".CITY
+     FROM HU.STAFF  ">"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "?".CITY
+     FROM HU.STAFF  "?"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "_".CITY
+     FROM HU.STAFF  "_"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "|".CITY
+     FROM HU.STAFF  "|"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   SELECT "|_?=;:/. -,+*)'&""%".CITY
+     FROM HU.STAFF  "|_?=;:/. -,+*)'&""%"
+     WHERE EMPNUM = 'E5';
+CITY           
+---------------
+Akron          
+ij> -- PASS:0508 If 1 row selected and CITY = 'Akron'?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0508 <<< END TEST
+-- *********************************************
+-- TEST:0509 Renaming columns with AS for ORDER BY!
+--O   SELECT GRADE AS PROVOLONE, EMPNAME AS EDAM    
+   SELECT GRADE  PROVOLONE, EMPNAME  EDAM    
+         FROM HU.STAFF    
+         ORDER BY PROVOLONE, EDAM DESC;
+PROV&|EDAM                
+--------------------------
+10   |Betty               
+12   |Don                 
+12   |Alice               
+13   |Ed                  
+13   |Carmen              
+ij> -- PASS:0509 If 5 rows are selected with the following order?
+-- PASS:0509      PROVOLONE     EDAM      ?
+-- PASS:0509         10         'Betty'   ?
+-- PASS:0509         12         'Don'     ?
+-- PASS:0509         12         'Alice'   ?
+-- PASS:0509         13         'Ed'      ?
+-- PASS:0509         13         'Carmen'  ?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0509 <<< END TEST
+-- *********************************************
+-- NO_TEST:0510 <parameter name> = <column name> (OK with SQL-92)!
+-- Testing embedded variables
+-- *********************************************
+-- TEST:0554 More column renaming!
+   SELECT HU.PROJ.CITY AS PCITY, HU.STAFF.CITY SCITY,
+         BUDGET + GRADE * HOURS * 100  REAL_BUDGET    
+         FROM HU.STAFF, HU.PROJ, HU.WORKS       
+         WHERE HU.WORKS.EMPNUM = HU.STAFF.EMPNUM
+         AND HU.WORKS.PNUM = HU.PROJ.PNUM
+         AND EMPNAME = 'Alice'
+         AND HU.PROJ.PNUM = 'P3';
+PCITY          |SCITY          |REAL_BUDGET          
+-----------------------------------------------------
+Tampa          |Deale          |126000               
+ij> -- PASS:0554 If PCITY = 'Tampa' AND SCITY = 'Deale'?
+-- PASS:0554 AND REAL_BUDGET = 126000?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0554 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml087.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml087.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml087.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,160 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML087  
+-- SQL Test Suite, V6.0, Interactive SQL, dml087.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0518 CREATE VIEW with DISTINCT!
+   SELECT COUNT(*)
+         FROM DV1;
+1          
+-----------
+4          
+ij> -- PASS:0518 If count = 4?
+   SELECT HOURS FROM DV1
+         ORDER BY HOURS DESC;
+HOURS 
+------
+80    
+40    
+20    
+12    
+ij> -- PASS:0518 If 4 rows selected AND first HOURS = 80?
+-- PASS:0518 AND second HOURS = 40 AND third HOURS = 20?
+-- PASS:0518 AND fourth HOURS = 12? 
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0518 <<< END TEST;
+-- *********************************************;
+-- TEST:0519 CREATE VIEW with subqueries!
+   SELECT COUNT(*)
+         FROM VS2
+         WHERE C1 = 0;
+1          
+-----------
+2          
+ij> -- PASS:0519 If count = 2?
+   SELECT COUNT(*)
+         FROM VS2
+         WHERE C1 = 1;
+1          
+-----------
+2          
+ij> -- PASS:0519 If count = 2?
+   SELECT COUNT(*)
+         FROM VS3;
+1          
+-----------
+0          
+ij> -- PASS:0519 If count = 0?
+   SELECT COUNT(*) 
+         FROM VS4;
+1          
+-----------
+0          
+ij> -- PASS:0519 If count = 0?
+   SELECT COUNT(*) 
+         FROM VS5;
+1          
+-----------
+2          
+ij> -- PASS:0519 If count = 2?
+   SELECT COUNT(*)
+         FROM VS6;
+1          
+-----------
+2          
+ij> -- PASS:0519 If count = 2?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0519 <<< END TEST;
+-- *********************************************;
+-- TEST:0520 Underscores are legal an significant!
+   SELECT COUNT(*)
+         FROM USIG 
+         WHERE C1 = 0;
+1          
+-----------
+1          
+ij> -- PASS:0520 If count = 1?
+   SELECT COUNT(*)
+         FROM USIG
+         WHERE C1 = 2;
+1          
+-----------
+0          
+ij> -- PASS:0520 If count = 0?
+   SELECT COUNT(*) 
+         FROM USIG
+         WHERE C_1 = 0;
+1          
+-----------
+0          
+ij> -- PASS:0520 If count = 0?
+   SELECT COUNT(*) 
+         FROM USIG
+         WHERE C_1 = 2;
+1          
+-----------
+1          
+ij> -- PASS:0520 If count = 1?
+   SELECT COUNT(*)
+         FROM USIG
+         WHERE C1 = 4;
+1          
+-----------
+0          
+ij> -- PASS:0520 If count = 0?
+   SELECT COUNT(*) 
+         FROM U_SIG
+         WHERE C1 = 0;
+1          
+-----------
+0          
+ij> -- PASS:0520 If count = 0?
+   SELECT COUNT(*) 
+         FROM U_SIG 
+         WHERE C1 = 4;
+1          
+-----------
+1          
+ij> -- PASS:0520 If count = 1?
+   SELECT COUNT(*) 
+         FROM HU.STAFF U_CN
+         WHERE U_CN.GRADE IN
+                       (SELECT UCN.GRADE 
+                              FROM HU.STAFF UCN
+                              WHERE UCN.GRADE > 10);
+1          
+-----------
+4          
+ij> -- PASS:0520 If count = 4?
+   SELECT COUNT(*) 
+         FROM HU.STAFF 
+         WHERE GRADE > 10;
+1          
+-----------
+4          
+ij> -- PASS:0520 If count = 4?
+   SELECT COUNT(*) 
+         FROM HU.STAFF 
+         WHERE GRADE < 10;
+1          
+-----------
+0          
+ij> -- PASS:0520 If count = 0?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0520 <<< END TEST;
+-- *************************************************////END-OF-MODULE;
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml090.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml090.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml090.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,116 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML090  
+-- SQL Test Suite, V6.0, Interactive SQL, dml090.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION HU
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+HU                                                                                                                              
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- TEST:0512 <value expression> for IN predicate!
+   SELECT MIN(PNAME) 
+         FROM PROJ, WORKS, STAFF
+         WHERE PROJ.PNUM = WORKS.PNUM
+               AND WORKS.EMPNUM = STAFF.EMPNUM
+               AND BUDGET - GRADE * HOURS * 100 IN
+                   (-4400, -1000, 4000);
+1                   
+--------------------
+CALM                
+ij> -- PASS:0512 If PNAME = 'CALM'?
+   SELECT CITY, COUNT(*)
+         FROM PROJ
+         GROUP BY CITY
+         HAVING (MAX(BUDGET) - MIN(BUDGET)) / 2
+                IN (2, 20000, 10000)
+         ORDER BY CITY DESC;
+CITY           |2          
+---------------------------
+Vienna         |2          
+Deale          |3          
+ij> -- PASS:0512 If in first row: CITY = 'Vienna' AND count = 2?
+-- PASS:0512 AND in second row: CITY = 'Deale' AND count = 3?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0512 <<< END TEST
+-- *********************************************;
+-- TEST:0513 NUMERIC(4) implies CHECK BETWEEN -9999 AND 9999!
+-- setup
+--0   DELETE FROM TEMP_OBSERV;
+--0   INSERT INTO TEMP_OBSERV (YEAR_OBSERV)
+--0         VALUES (9999);
+-- PASS:0513 If 1 row is inserted?
+--0   INSERT INTO TEMP_OBSERV (YEAR_OBSERV) 
+--0         VALUES (10000);
+-- PASS:0513 If ERROR, constraint violation, 0 rows inserted?
+--0   UPDATE TEMP_OBSERV
+--0          SET YEAR_OBSERV = -10000
+--0          WHERE YEAR_OBSERV = 9999;
+-- PASS:0513 If ERROR, constraint violation, 0 rows updated?
+--0   INSERT INTO TEMP_OBSERV (YEAR_OBSERV, MAX_TEMP)
+--0          VALUES (-9999, 123.4517);
+-- PASS:0513 If 1 row is inserted?
+--0   SELECT COUNT(*) FROM TEMP_OBSERV
+--0         WHERE MAX_TEMP = 123.45
+--0         AND MAX_TEMP NOT BETWEEN 123.4516 AND 123.4518;
+-- PASS:0513 If count = 1?
+--0   INSERT INTO TEMP_OBSERV (YEAR_OBSERV, MAX_TEMP)
+--0          VALUES (-9999, 1234.51);
+-- PASS:0513 If ERROR, constraint violation, 0 rows inserted?
+-- restore
+--0   ROLLBACK WORK;
+-- END TEST >>> 0513 <<< END TEST
+-- *********************************************;
+-- TEST:0523 <value expression> for BETWEEN predicate!
+   SELECT COUNT(*) 
+         FROM PROJ
+         WHERE 24 * 1000 BETWEEN BUDGET - 5000 AND 50000 / 1.7;
+1          
+-----------
+3          
+ij> -- PASS:0523 If count = 3?
+   SELECT PNAME
+         FROM PROJ
+         WHERE 'Tampa' NOT BETWEEN CITY AND 'Vienna'
+                           AND PNUM > 'P2';
+PNAME               
+--------------------
+IRM                 
+ij> -- PASS:0523 If PNAME = 'IRM'?
+SELECT CITY, COUNT(*)
+      FROM PROJ
+      GROUP BY CITY
+      HAVING 50000 + 2 BETWEEN 33000 AND SUM(BUDGET) - 20;
+CITY           |2          
+---------------------------
+Deale          |3          
+ij> -- PASS:0523 If CITY = 'Deale' and count = 3?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0523 <<< END TEST
+-- *********************************************;
+-- TEST:0564 Outer ref. directly contained in HAVING clause!
+     SELECT EMPNUM, GRADE*1000
+--0           FROM HU.STAFF WHERE GRADE * 1000 > ANY
+--0              (SELECT SUM(BUDGET) FROM HU.PROJ
+           FROM STAFF WHERE GRADE * 1000 > ANY
+              (SELECT SUM(BUDGET) FROM PROJ
+               GROUP BY CITY, PTYPE 
+--0               HAVING HU.PROJ.CITY = HU.STAFF.CITY);
+               HAVING PROJ.CITY = STAFF.CITY);
+EM&|2              
+-------------------
+E3 |13000          
+ij> -- PASS:0564 If EMPNUM = E3 and GRADE * 1000 = 13000?
+-- restore
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0564 <<< END TEST
+-- *************************************************////END-OF-MODULE;
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml091.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml091.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml091.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,137 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE DML091  
+-- SQL Test Suite, V6.0, Interactive SQL, dml091.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION SCHANZLE
+   set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+SCHANZLE                                                                                                                        
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- TEST:0497 SQLSTATE 22003: data exception/numeric val.range 2!
+-- setup
+   DELETE FROM HU.P1;
+0 rows inserted/updated/deleted
+ij> DELETE FROM FOUR_TYPES;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.P1 
+         VALUES (100000);
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(1,0).
+ij> -- PASS:0497 If 1 row is inserted?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0? 
+   INSERT INTO HU.P1 
+         VALUES (-1000000);
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(1,0).
+ij> -- PASS:0497 If 1 row is inserted?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows inserted OR SQLSTATE = 22003 OR SQLCODE < 0?
+   INSERT INTO HU.P1 
+         VALUES (-9);
+1 row inserted/updated/deleted
+ij> -- PASS:0497 If 1 row is inserted?
+   INSERT INTO HU.P1 
+         VALUES (9);
+1 row inserted/updated/deleted
+ij> -- PASS:0497 If 1 row is inserted?
+   UPDATE HU.P1 
+         SET NUMTEST = NUMTEST + 100000
+      WHERE NUMTEST = 9;
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(1,0).
+ij> -- PASS:0497 If 1 row is updated?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows updated OR SQLSTATE = 22003 OR SQLCODE < 0?
+   UPDATE HU.P1 SET NUMTEST =
+       ((1 + NUMTEST) * 100000)
+     WHERE NUMTEST = 100009
+    OR    NUMTEST IN (SELECT GRADE - 4 FROM HU.STAFF);
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(1,0).
+ij> -- PASS:0497 If 1 row is updated?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows updated OR SQLSTATE = 22003 OR SQLCODE < 0?
+   UPDATE HU.P1
+         SET NUMTEST = NUMTEST * 200000
+         WHERE NUMTEST = -9;
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(1,0).
+ij> -- PASS:0497 If 1 row is updated?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows updated OR SQLSTATE = 22003 OR SQLCODE < 0?
+-- setup
+   INSERT INTO FOUR_TYPES 
+         VALUES (1,'X',11112222.00,.000003E-25);
+1 row inserted/updated/deleted
+ij> SELECT T_DECIMAL / .000000001
+         FROM FOUR_TYPES 
+         WHERE T_CHAR = 'X';
+1                                 
+----------------------------------
+11112222000000000.00000000000000  
+ij> -- PASS:0497 If 1 row is selected and T_DECIMAL = 1.1112222E+16 ?
+-- PASS:0497 OR ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows selected OR SQLSTATE = 22003 OR SQLCODE < 0?
+-- NOTE:0497 If the following values are too large (not supported),
+-- NOTE:0497  use TEd to decrease them to maximum allowed.
+   INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> INSERT INTO FOUR_TYPES (T_REAL) VALUES (-1.555222E+38);
+1 row inserted/updated/deleted
+ij> -- NOTE:0497 If we have not inserted enough big values into FOUR_TYPES,
+-- NOTE:0497 to cause an ERROR on the SELECT SUM(T_REAL) below, then
+-- NOTE:0497 use TEd to enlarge the above values for T_REAL to the
+-- NOTE:0497 maximum allowed by your implementation.
+-- NOTE:0497 If that is not enough, add more INSERTs.
+   SELECT SUM(T_REAL) FROM FOUR_TYPES;
+1            
+-------------
+ERROR 22003: The resulting value is outside the range for the data type REAL.
+ij> -- PASS:0497 If ERROR, data exception/numeric value out of range?
+-- PASS:0497 OR 0 rows selected OR SQLSTATE = 22003 OR SQLCODE < 0?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0497 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml099.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml099.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml099.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,63 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML099  
+-- SQL Test Suite, V6.0, Interactive SQL, dml099.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- NO_TEST:0581 Implicit numeric casting (feature 9) dynamic!
+-- Testing dynamic SQL
+-- *********************************************
+-- TEST:0582 Implicit numeric casting (feature 9) static!
+   CREATE TABLE ICAST2 (C1 INT, C2 DOUBLE PRECISION, C3 NUMERIC(5,3));
+0 rows inserted/updated/deleted
+ij> -- PASS:0582 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO ICAST2 VALUES (.31416E+1, 3, .3142293E+1);
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is inserted?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+3          |3.0                   |3.142   
+ij> -- PASS:0582 If 1 row is selected with C1 = 3 and C3 = 3.142?
+   UPDATE ICAST2 SET C1 = 5.2413E+0, C2 = 5, C3 = 5.2413E+0;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+5          |5.0                   |5.241   
+ij> -- PASS:0582 If 1 row is selected with C1 = 5 and C3 = 5.241?
+   UPDATE ICAST2 SET C1 = 6.28E+0, C2 = 2.1E+0, C3 = .07E+2;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   UPDATE ICAST2 SET C1 = C2, C3 = C3 + C2;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+2          |2.1                   |9.099   
+ij> -- PASS:0582 If 1 row is selected with C1 = 2 and C3 = 9.100?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE ICAST2 CASCADE;
+   DROP TABLE ICAST2 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0582 <<< END TEST
+-- *********************************************
+-- NO_TEST:0583 FIPS sizing, Dynamic SQL character strings!
+-- Testing dynamic SQL
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml104.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml104.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml104.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,478 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML104  
+-- SQL Test Suite, V6.0, Interactive SQL, dml104.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER            
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0591 NATURAL JOIN (feature 4) (static)!
+   CREATE TABLE GROUPS1
+  (EMPNUM INT, GRP INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0591 If table is created?
+   CREATE TABLE NAMES1
+  (EMPNUM INT, NAME CHAR(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:0591 If table is created?
+  SELECT * FROM NAMES1 JOIN GROUPS1 ON (NAMES1.EMPNUM=GROUPS1.EMPNUM);
+EMPNUM     |NAME |EMPNUM     |GRP        
+-----------------------------------------
+ij> CREATE VIEW NAMGRP1 (EMPNUM, NAME, NEMPNUM, GRP) AS
+--O  SELECT * FROM NAMES1 NATURAL JOIN GROUPS1;
+  SELECT * FROM NAMES1 JOIN GROUPS1 ON (NAMES1.EMPNUM=GROUPS1.EMPNUM);
+0 rows inserted/updated/deleted
+ij> -- PASS:0591 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO GROUPS1 VALUES (0, 10);
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO GROUPS1 VALUES (1, 20);
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO GROUPS1 VALUES (2, 30);
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO GROUPS1 VALUES (3, 40);
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO NAMES1 VALUES (5, 'HARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO NAMES1 VALUES (1, 'MARY');
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO NAMES1 VALUES (7, 'LARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO NAMES1 VALUES (0, 'KERI');
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   INSERT INTO NAMES1 VALUES (9, 'BARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0591 If 1 row is inserted?
+   SELECT EMPNUM
+  FROM NAMGRP1
+  WHERE NAME = 'KERI'
+  AND GRP = 10;
+EMPNUM     
+-----------
+0          
+ij> -- PASS:0591 If 1 row is selected and EMPNUM = 0?
+   SELECT EMPNUM
+  FROM NAMGRP1
+  WHERE NAME = 'MARY'
+  AND GRP = 20;
+EMPNUM     
+-----------
+1          
+ij> -- PASS:0591 If 1 row is selected and EMPNUM = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP1
+  WHERE (NAME <> 'MARY'
+  AND NAME <> 'KERI')
+  OR GRP <> 20
+  AND GRP <> 10
+  OR EMPNUM <> 0
+  AND EMPNUM <> 1
+  OR NAME IS NULL
+  OR GRP IS NULL
+  OR EMPNUM IS NULL;
+1          
+-----------
+0          
+ij> -- PASS:0591 If count = 0?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NAMES1 CASCADE;
+   DROP VIEW NAMGRP1 ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE NAMES1 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0591 If table and view are dropped?
+--O   DROP TABLE GROUPS1 CASCADE;
+   DROP TABLE GROUPS1 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0591 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0591 <<< END TEST
+-- *********************************************
+-- TEST:0592 INNER JOIN (feature 4) (static)!
+   CREATE TABLE GROUPS2
+  (EMPNUM SMALLINT, GRP INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If table is created?
+   CREATE TABLE NAMES2
+  (EMPNUM INT, NAME CHAR(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If table is created?
+   CREATE VIEW NAMGRP2 (EMPNUM, NAME, NEMPNUM, GRP) AS
+  SELECT * FROM NAMES2 INNER JOIN GROUPS2 ON (NAMES2.EMPNUM=GROUPS2.EMPNUM);
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If view is created?
+   CREATE VIEW NMGRP2 (EMPNUM, NAME, NEMPNUM, GRP) AS
+  SELECT * FROM NAMES2 JOIN GROUPS2 
+    ON (NAMES2.EMPNUM=GROUPS2.EMPNUM) WHERE NAMES2.EMPNUM > 0;
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO GROUPS2 VALUES (0, 10);
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO GROUPS2 VALUES (1, 20);
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO GROUPS2 VALUES (2, 30);
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO GROUPS2 VALUES (3, 40);
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO NAMES2 VALUES (5, 'HARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO NAMES2 VALUES (1, 'MARY');
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO NAMES2 VALUES (7, 'LARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO NAMES2 VALUES (0, 'KERI');
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   INSERT INTO NAMES2 VALUES (9, 'BARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0592 If 1 row is inserted?
+   SELECT EMPNUM
+  FROM NAMGRP2
+  WHERE NAME = 'KERI'
+  AND GRP = 10;
+EMPNUM     
+-----------
+0          
+ij> -- PASS:0592 If 1 row is selected and EMPNUM = 0?
+   SELECT EMPNUM
+  FROM NAMGRP2
+  WHERE NAME = 'MARY'
+  AND GRP = 20;
+EMPNUM     
+-----------
+1          
+ij> -- PASS:0592 If 1 row is selected and EMPNUM = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP2
+  WHERE NAME <> 'MARY'
+  AND NAME <> 'KERI'
+  OR GRP <> 20
+  AND GRP <> 10
+  OR EMPNUM <> 0
+  AND EMPNUM <> 1
+  OR NAME IS NULL
+  OR GRP IS NULL
+  OR EMPNUM IS NULL;
+1          
+-----------
+0          
+ij> -- PASS:0592 If count = 0?
+   SELECT EMPNUM
+  FROM NMGRP2
+  WHERE NAME = 'MARY'
+  AND GRP = 20;
+EMPNUM     
+-----------
+1          
+ij> -- PASS:0592 If 1 row is selected and EMPNUM = 1?
+   SELECT COUNT(*)
+  FROM NMGRP2
+  WHERE NAME <> 'MARY'
+  OR GRP <> 20
+  OR EMPNUM <> 1
+  OR NAME IS NULL
+  OR GRP IS NULL
+  OR EMPNUM IS NULL;
+1          
+-----------
+0          
+ij> -- PASS:0592 If count = 0?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NAMES2 CASCADE;
+   DROP VIEW NMGRP2 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW NAMGRP2 ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE NAMES2 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If table and 2 views are dropped?
+--O   DROP TABLE GROUPS2 CASCADE;
+   DROP TABLE GROUPS2 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0592 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0592 <<< END TEST
+-- *********************************************
+-- TEST:0593 LEFT OUTER JOIN (feature 4) (static)!
+   CREATE TABLE GROUPS3
+  (EMPNUM INT, GRP INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If table is created?
+   CREATE TABLE NAMES3
+  (EMPNUM INT, NAME CHAR(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If table is created?
+   CREATE VIEW NAMGRP3 (EMPNUM, NAME, NEMPNUM, GRP) AS
+  SELECT * FROM NAMES3 LEFT OUTER JOIN GROUPS3 ON (NAMES3.EMPNUM=GROUPS3.EMPNUM);
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If view is created?
+   CREATE VIEW NMGRP3 (NAME, GRP) AS
+  SELECT NAME, GRP FROM NAMES3 LEFT OUTER JOIN GROUPS3
+  ON NAMES3.EMPNUM < GROUPS3.EMPNUM
+  WHERE NAME <> 'KERI';
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO GROUPS3 VALUES (0, 10);
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO GROUPS3 VALUES (1, 20);
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO GROUPS3 VALUES (2, 30);
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO GROUPS3 VALUES (3, 40);
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO NAMES3 VALUES (5, 'HARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO NAMES3 VALUES (1, 'MARY');
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO NAMES3 VALUES (7, 'LARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO NAMES3 VALUES (0, 'KERI');
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   INSERT INTO NAMES3 VALUES (9, 'BARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0593 If 1 row is inserted?
+   SELECT COUNT(*)
+  FROM NAMGRP3
+  WHERE EMPNUM = 0
+  AND NAME = 'KERI'
+  AND GRP = 10;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP3
+  WHERE EMPNUM = 1
+  AND NAME = 'MARY'
+  AND GRP = 20;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP3
+  WHERE EMPNUM = 5
+  AND NAME = 'HARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP3
+  WHERE EMPNUM = 7
+  AND NAME = 'LARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP3
+  WHERE EMPNUM = 9
+  AND NAME = 'BARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP3;
+1          
+-----------
+5          
+ij> -- PASS:0593 If count = 5?
+   SELECT COUNT(*)
+  FROM NMGRP3
+  WHERE NAME = 'HARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NMGRP3
+  WHERE NAME = 'MARY'
+  AND GRP = 30;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NMGRP3
+  WHERE NAME = 'MARY'
+  AND GRP = 40;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NMGRP3
+  WHERE NAME = 'BARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NMGRP3
+  WHERE NAME = 'LARRY'
+  AND GRP IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0593 If count = 1?
+   SELECT COUNT(*)
+  FROM NMGRP3;
+1          
+-----------
+5          
+ij> -- PASS:0593 If count = 5?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NAMES3 CASCADE;
+   DROP VIEW NMGRP3 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW NAMGRP3 ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE NAMES3 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If table and 2 views are dropped?
+--O   DROP TABLE GROUPS3 CASCADE;
+   DROP TABLE GROUPS3 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0593 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0593 <<< END TEST
+-- *********************************************
+-- TEST:0594 RIGHT OUTER JOIN (feature 4) (static)!
+   CREATE TABLE GROUPS4
+  (EMPNUM INT, GRP INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0594 If table is created?
+   CREATE TABLE NAMES4
+  (EMPNUM DECIMAL (4, 2), NAME CHAR(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:0594 If table is created?
+   CREATE VIEW NAMGRP4 (NEMPNUM, NAME, EMPNUM, GRP) AS
+  SELECT * FROM NAMES4 RIGHT OUTER JOIN GROUPS4 ON (NAMES4.EMPNUM=GROUPS4.EMPNUM);
+0 rows inserted/updated/deleted
+ij> -- PASS:0594 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO GROUPS4 VALUES (0, 10);
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO GROUPS4 VALUES (1, 20);
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO GROUPS4 VALUES (2, 30);
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO GROUPS4 VALUES (3, 40);
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO NAMES4 VALUES (5.0, 'HARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO NAMES4 VALUES (1.0, 'MARY');
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO NAMES4 VALUES (7.0, 'LARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO NAMES4 VALUES (0.0, 'KERI');
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   INSERT INTO NAMES4 VALUES (9.0, 'BARRY');
+1 row inserted/updated/deleted
+ij> -- PASS:0594 If 1 row is inserted?
+   SELECT COUNT(*)
+  FROM NAMGRP4
+  WHERE EMPNUM = 0
+  AND NAME = 'KERI'
+  AND GRP = 10;
+1          
+-----------
+1          
+ij> -- PASS:0594 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP4
+  WHERE EMPNUM = 1
+  AND NAME = 'MARY'
+  AND GRP = 20;
+1          
+-----------
+1          
+ij> -- PASS:0594 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP4
+  WHERE EMPNUM = 2
+  AND NAME IS NULL
+  AND GRP = 30;
+1          
+-----------
+1          
+ij> -- PASS:0594 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP4
+  WHERE EMPNUM = 3
+  AND NAME IS NULL
+  AND GRP = 40;
+1          
+-----------
+1          
+ij> -- PASS:0594 If count = 1?
+   SELECT COUNT(*)
+  FROM NAMGRP4;
+1          
+-----------
+4          
+ij> -- PASS:0594 If count = 4?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NAMES4 CASCADE;
+   DROP VIEW NAMGRP4 ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE NAMES4 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0594 If table and view are dropped?
+--O   DROP TABLE GROUPS4 CASCADE;
+   DROP TABLE GROUPS4 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0594 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0594 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml106.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml106.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml106.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,342 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML106  
+-- SQL Test Suite, V6.0, Interactive SQL, dml106.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --N temporarily changed authorization to HU, to simplify schema name usage until
+--N we have permissions; table USIG requires explicit schema name FLATER until
+--N this is changed back
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0599 UNION in views (feature 8) (static)!
+   CREATE VIEW UUSIG (U1) AS
+  SELECT C1 FROM USIG UNION SELECT C_1 FROM USIG;
+0 rows inserted/updated/deleted
+ij> -- PASS:0599 If view is created?
+   COMMIT WORK;
+ij> SELECT COUNT(*) FROM UUSIG;
+1          
+-----------
+4          
+ij> -- PASS:0599 If count = 4?
+   SELECT COUNT(DISTINCT U1) FROM UUSIG;
+1          
+-----------
+4          
+ij> -- PASS:0599 If count = 4?
+   SELECT COUNT(*) FROM UUSIG WHERE U1 < 0
+  OR U1 > 3 OR U1 IS NULL;
+1          
+-----------
+0          
+ij> -- PASS:0599 If count = 0?
+   COMMIT WORK;
+ij> CREATE VIEW ABOVE_AVERAGE (COLUMN_1, COLUMN_2, COLUMN_3) AS
+      SELECT PNUM, BUDGET, CITY
+        FROM HU.PROJ OUTER_REF
+        WHERE BUDGET >= (SELECT AVG(BUDGET) FROM HU.PROJ INNER_REF
+                          WHERE OUTER_REF.CITY = INNER_REF.CITY)
+     UNION
+      SELECT 'MAX', MAX(BUDGET), MIN(CITY)
+        FROM HU.PROJ 
+        WHERE CITY > 'Deale';
+0 rows inserted/updated/deleted
+ij> -- PASS:0599 If view is created?
+   COMMIT WORK;
+ij> SELECT * FROM ABOVE_AVERAGE ORDER BY COLUMN_1;
+CO&|COLUMN_2  |COLUMN_3       
+------------------------------
+MAX|30000     |Tampa          
+P2 |30000     |Vienna         
+P3 |30000     |Tampa          
+P6 |50000     |Deale          
+ij> -- PASS:0599 If 4 rows selected with ordered rows and column values: ?
+-- PASS:0599    MAX  30000  Tampa  ?
+-- PASS:0599    P2   30000  Vienna ?
+-- PASS:0599    P3   30000  Tampa  ?
+-- PASS:0599    P6   50000  Deale  ?
+   COMMIT WORK;
+ij> CREATE VIEW STAFF_DUP AS
+      SELECT EMPNUM, EMPNAME, GRADE, CITY
+        FROM HU.STAFF
+     UNION ALL
+      SELECT * FROM HU.STAFF3;
+0 rows inserted/updated/deleted
+ij> -- PASS:0599 If view is created?
+   COMMIT WORK;
+ij> SELECT * FROM STAFF_DUP ORDER BY CITY;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+E5 |Ed                  |13   |Akron          
+E5 |Ed                  |13   |Akron          
+E4 |Don                 |12   |Deale          
+E1 |Alice               |12   |Deale          
+E4 |Don                 |12   |Deale          
+E1 |Alice               |12   |Deale          
+E3 |Carmen              |13   |Vienna         
+E2 |Betty               |10   |Vienna         
+E3 |Carmen              |13   |Vienna         
+E2 |Betty               |10   |Vienna         
+ij> -- PASS:0599 If 10 rows selected ?
+-- PASS:0599 If first row contains EMPNUM/CITY values E5 / Akron ?
+-- PASS:0599 If second row contains EMPNUM/CITY values E5 / Akron ?
+   SELECT COUNT(*) FROM STAFF_DUP;
+1          
+-----------
+10         
+ij> -- PASS:0599 If count = 10 ?
+   COMMIT WORK;
+ij> CREATE VIEW FOUR_CITIES (C1, C2, C3) AS
+      SELECT 'P', CITY, 666
+        FROM HU.PROJ
+        WHERE BUDGET <> 30000
+     UNION
+      SELECT 'S', CITY, 777
+        FROM HU.STAFF
+        WHERE EMPNAME <> 'Ed'
+     UNION
+      SELECT 'T', CITY, -999
+        FROM HU.STAFF3
+        WHERE CITY NOT LIKE 'V%'
+     UNION
+      SELECT 'X', CITY, -1
+        FROM HU.STAFF3
+        WHERE CITY = 'Vienna';
+0 rows inserted/updated/deleted
+ij> -- PASS:0599 If view is created?
+   COMMIT WORK;
+ij> SELECT C2, C1, C3 FROM FOUR_CITIES ORDER BY C3, C2;
+C2             |&|C3         
+-----------------------------
+Akron          |T|-999       
+Deale          |T|-999       
+Vienna         |X|-1         
+Deale          |P|666        
+Vienna         |P|666        
+Deale          |S|777        
+Vienna         |S|777        
+ij> -- PASS:0599 If 7 rows selected with ordered rows and column values ?
+-- PASS:0599    Akron   T     -999  ?
+-- PASS:0599    Deale   T     -999  ?
+-- PASS:0599    Vienna  X       -1  ?
+-- PASS:0599    Deale   P      666  ?
+-- PASS:0599    Vienna  P      666  ?
+-- PASS:0599    Deale   S      777  ?
+-- PASS:0599    Vienna  S      777  ?
+   SELECT COUNT (*) FROM FOUR_CITIES;
+1          
+-----------
+7          
+ij> -- PASS:0599 If count = 7 ?
+   SELECT COUNT(*) FROM FOUR_CITIES WHERE C3 > 0;
+1          
+-----------
+4          
+ij> -- PASS:0599 If count = 4 ?
+   SELECT COUNT(*) FROM FOUR_CITIES WHERE C2 = 'Vienna';
+1          
+-----------
+3          
+ij> -- PASS:0599 If count = 3 ?
+   COMMIT WORK;
+ij> --0   DROP VIEW ABOVE_AVERAGE CASCADE;
+   DROP VIEW ABOVE_AVERAGE ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --0   DROP VIEW STAFF_DUP CASCADE;
+   DROP VIEW STAFF_DUP ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --0   DROP VIEW FOUR_CITIES CASCADE;
+   DROP VIEW FOUR_CITIES ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --0   DROP VIEW UUSIG CASCADE;
+   DROP VIEW UUSIG ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0599 <<< END TEST
+-- *********************************************
+-- TEST:0601 DATETIME data types (feature 5) (static)!
+   CREATE TABLE TEMPUS (TDATE DATE, TTIME TIME,
+--0  TTIMESTAMP TIMESTAMP, TINT1 INTERVAL YEAR TO MONTH,
+  TTIMESTAMP TIMESTAMP);
+0 rows inserted/updated/deleted
+ij> --0  TINT2 INTERVAL DAY TO SECOND);
+-- PASS:0601 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO TEMPUS VALUES (
+  DATE( '1993-08-24'),
+  TIME( '16:03:00'),
+  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx)
+--0  , INTERVAL -'1-6' YEAR TO MONTH,
+--0  INTERVAL '13 0:10' DAY TO SECOND);
+  );
+1 row inserted/updated/deleted
+ij> -- PASS:0601 If 1 row is inserted?
+   SELECT DAY( TDATE)
+  FROM TEMPUS;
+1          
+-----------
+24         
+ij> -- PASS:0601 If 1 row selected and value is 24?
+--0   SELECT COUNT(*) FROM TEMPUS
+--0  WHERE (TTIMESTAMP - TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx))
+--0  YEAR TO MONTH = TINT1;
+-- PASS:0601 If count = 1?
+--0   SELECT COUNT(*) FROM TEMPUS
+--0  WHERE (TTIMESTAMP, TINT1) OVERLAPS
+--0  (TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx), INTERVAL '1-6' YEAR TO MONTH);
+-- PASS:0601 If count = 0?
+   ROLLBACK WORK;
+ij> --0   DROP TABLE TEMPUS CASCADE;
+   DROP TABLE TEMPUS ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0601 <<< END TEST
+-- *********************************************
+-- TEST:0611 FIPS sizing, DATETIME data types (static)!
+   CREATE TABLE TSFIPS (
+  FIPS1 TIME,
+  FIPS2 TIMESTAMP
+--0  , FIPS3 INTERVAL YEAR (2) TO MONTH,
+--0  FIPS4 INTERVAL DAY (2) TO SECOND (6));
+  );
+0 rows inserted/updated/deleted
+ij> -- PASS:0611 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO TSFIPS VALUES (
+  TIME( '16:03:00'),
+  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx')
+--0  ,INTERVAL -'99-6' YEAR (2) TO MONTH,
+--0  INTERVAL '99 0:10:00.999999' DAY (2) TO SECOND (6));
+  );
+1 row inserted/updated/deleted
+ij> -- PASS:0611 If 1 row is inserted?
+   SELECT SECOND( FIPS2)
+  * 1000000 - 999990 FROM TSFIPS;
+1                     
+----------------------
+9.0                   
+ij> -- PASS:0611 If 1 row selected and value is 9?
+--0   SELECT YEAR( FIPS3),
+--0  MONTH( FIPS3)
+--0  FROM TSFIPS;
+-- PASS:0611 If 1 row selected and values are -99 and -6?
+--0   SELECT DAY( FIPS4),
+--0  SECOND( FIPS4) * 1000000 - 999990
+--0  FROM TSFIPS;
+-- PASS:0611 If 1 row selected and values are 99 and 9?
+   ROLLBACK WORK;
+ij> --0   DROP TABLE TSFIPS CASCADE;
+   DROP TABLE TSFIPS ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0611 <<< END TEST
+-- *********************************************
+-- TEST:0613 <datetime value function> (static)!
+   CREATE TABLE TSSMALL (
+  SMALLD DATE,
+  SMALLT TIME,
+  SMALLTS TIMESTAMP);
+0 rows inserted/updated/deleted
+ij> -- PASS:0613 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO TSSMALL VALUES (
+  CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP);
+1 row inserted/updated/deleted
+ij> -- PASS:0613 If 1 row is inserted?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+YEAR( SMALLD) = YEAR( SMALLTS);
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+MONTH( SMALLD) = MONTH( SMALLTS);
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+DAY( SMALLD) = DAY( SMALLTS);
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+HOUR( SMALLT) = HOUR( SMALLTS);
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+MINUTE( SMALLT) = MINUTE( SMALLTS);
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   SELECT COUNT(*)
+FROM TSSMALL WHERE
+SECOND( SMALLT) -
+SECOND( SMALLTS) > -1
+AND SECOND( SMALLT) -
+SECOND( SMALLTS) < 1;
+1          
+-----------
+1          
+ij> -- PASS:0613 If count = 1?
+   ROLLBACK WORK;
+ij> --0   DROP TABLE TSSMALL CASCADE;
+   DROP TABLE TSSMALL ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0613 <<< END TEST
+-- *********************************************
+-- TEST:0615 DATETIME-related SQLSTATE codes (static)!
+   CREATE TABLE TSERR (
+--0  BADINT INTERVAL YEAR (2) TO MONTH,
+  BADDATE DATE);
+0 rows inserted/updated/deleted
+ij> -- PASS:0615 If table is created?
+   COMMIT WORK;
+ij> --0   INSERT INTO TSERR VALUES (
+--0  INTERVAL '0-11' YEAR TO MONTH,
+--0  DATE( '9999-01-01') + INTERVAL '1-00' YEAR TO MONTH);
+-- PASS:0615 If ERROR, datetime field overflow, 0 rows inserted?
+   INSERT INTO TSERR VALUES (
+--0  INTERVAL '9999-11' YEAR TO MONTH,
+  DATE( '1984-01-01'));
+1 row inserted/updated/deleted
+ij> -- PASS:0615 If ERROR, interval field overflow, 0 rows inserted?
+--0   INSERT INTO TSERR VALUES (
+--0  INTERVAL '1-11' YEAR TO MONTH,
+--0  CAST ('DATE ''1993-02-30''' AS DATE));
+-- PASS:0615 If ERROR, invalid datetime format, 0 rows inserted?
+--0   INSERT INTO TSERR VALUES (
+--0  INTERVAL '1-11' YEAR TO MONTH,
+--0  CAST ('1993-02-30' AS DATE));
+-- PASS:0615 If ERROR, invalid datetime format, 0 rows inserted?
+   ROLLBACK WORK;
+ij> --0   DROP TABLE TSERR CASCADE;
+   DROP TABLE TSERR ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0615 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml108.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml108.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml108.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,188 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML108  
+-- SQL Test Suite, V6.0, Interactive SQL, dml108.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0617 DATETIME with predicates, set fns (static)!
+   CREATE TABLE TEMPS (
+  ENTERED  TIMESTAMP,
+  START    DATE,
+--0  APPT     INTERVAL DAY,
+  HOUR_IN  TIME,
+  HOUR_OUT TIME
+--0  , LUNCH    INTERVAL HOUR TO MINUTE);
+	);
+0 rows inserted/updated/deleted
+ij> -- PASS:0617 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW SUBQ1 AS
+  SELECT MIN (HOUR_IN) AS TOO_EARLY,
+  MAX (ALL START) AS LATEST
+--0  , AVG (LUNCH) AS AVGLUNCH,
+--0  AVG (DISTINCT LUNCH) AS D_AVGLUNCH,
+--0  SUM (APPT) AS SUMAPPT
+  FROM TEMPS;
+0 rows inserted/updated/deleted
+ij> -- PASS:0617 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO TEMPS VALUES (
+  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx),
+  DATE( '1993-11-12'),
+--0  INTERVAL '4' DAY,
+  TIME( '08:30:00'),
+  TIME( '16:30:00')
+--0  , INTERVAL '1:00' HOUR TO MINUTE);
+  );
+1 row inserted/updated/deleted
+ij> -- PASS:0617 If 1 row is inserted?
+   INSERT INTO TEMPS VALUES (
+  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx),
+  DATE( '1993-11-15'),
+--0  INTERVAL '5' DAY,
+  TIME( '08:30:00'),
+  TIME( '17:30:00')
+--0  ,INTERVAL '0:30' HOUR TO MINUTE);
+  );
+1 row inserted/updated/deleted
+ij> -- PASS:0617 If 1 row is inserted?
+   INSERT INTO TEMPS VALUES (
+  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx),
+  DATE( '1994-11-18'),
+--0  INTERVAL '3' DAY,
+  TIME( '09:00:00'),
+  TIME( '17:00:00')
+--0  ,INTERVAL '1:00' HOUR TO MINUTE);
+  );
+1 row inserted/updated/deleted
+ij> -- PASS:0617 If 1 row is inserted?
+--0   SELECT COUNT(*)
+--0  FROM TEMPS WHERE
+--0  LUNCH < INTERVAL '1:00' HOUR TO MINUTE;
+-- PASS:0617 If count = 1?
+--0   SELECT COUNT(*)
+--0  FROM TEMPS WHERE
+--0  LUNCH <= INTERVAL '1:00' HOUR TO MINUTE;
+-- PASS:0617 If count = 3?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  START <> DATE( '1993-11-15') AND
+  START <> DATE( '1993-11-12');
+1          
+-----------
+1          
+ij> -- PASS:0617 If count = 1?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  START = DATE( '1993-11-15') OR
+  START = DATE( '1993-11-12');
+1          
+-----------
+2          
+ij> -- PASS:0617 If count = 2?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  HOUR_OUT > TIME( '17:00:00');
+1          
+-----------
+1          
+ij> -- PASS:0617 If count = 1?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  HOUR_OUT >= TIME( '17:00:00');
+1          
+-----------
+2          
+ij> -- PASS:0617 If count = 2?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  ENTERED BETWEEN TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx)AND
+                  TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx);
+1          
+-----------
+2          
+ij> -- PASS:0617 If count = 2?
+--0   SELECT COUNT(*)
+--0  FROM TEMPS WHERE
+--0  HOUR_OUT IN
+--0  (SELECT HOUR_IN + INTERVAL '8' HOUR FROM TEMPS);
+-- PASS:0617 If count = 2?
+--0   SELECT COUNT(*)
+--0  FROM TEMPS WHERE
+--0  (START, APPT) OVERLAPS
+--0  (DATE( '1993-11-14'), INTERVAL '2' DAY);
+-- PASS:0617 If count = 2?
+--0   SELECT COUNT(*)
+--0  FROM TEMPS WHERE
+--0  HOUR_OUT = ANY
+--0  (SELECT HOUR_IN + INTERVAL '8' HOUR FROM TEMPS);
+-- PASS:0617 If count = 2?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  YEAR( ENTERED) <> SOME
+  (SELECT YEAR( START)
+  FROM TEMPS);
+1          
+-----------
+3          
+ij> -- PASS:0617 If count = 3?
+   SELECT COUNT(*)
+  FROM TEMPS WHERE
+  YEAR( START) <> ALL
+  (SELECT YEAR( ENTERED)
+   FROM TEMPS);
+1          
+-----------
+1          
+ij> -- PASS:0617 If count = 1?
+   SELECT HOUR( TOO_EARLY)
+  * 100 + MINUTE( TOO_EARLY)
+  FROM SUBQ1;
+1          
+-----------
+830        
+ij> -- PASS:0617 If 1 row selected and value is 830?
+   SELECT YEAR( LATEST),
+  MONTH( LATEST) * 100 +
+  DAY( LATEST)
+  FROM SUBQ1;
+1          |2          
+-----------------------
+1994       |1118       
+ij> -- PASS:0617 If 1 row selected and values are 1994, 1118?
+--0   SELECT HOUR( AVGLUNCH)
+--0  * 100 + MINUTE( AVGLUNCH)
+--0  FROM SUBQ1;
+-- PASS:0617 If 1 row selected and value is 49 or 50?
+-- NOTE:0617 50 is better but 49 is acceptable.
+--0   SELECT HOUR( D_AVGLUNCH)
+--0  * 100 + MINUTE( D_AVGLUNCH)
+--0  FROM SUBQ1;
+-- PASS:0617 If 1 row selected and value is 45?
+--0   SELECT DAY( SUMAPPT)
+--0  FROM SUBQ1;
+-- PASS:0617 If 1 row selected and value is 12?
+--0   SELECT COUNT (DISTINCT LUNCH) FROM TEMPS;
+-- PASS:0617 If count = 2?
+   ROLLBACK WORK;
+ij> --0   DROP TABLE TEMPS CASCADE;
+   DROP TABLE SUBQ1 ;
+ERROR 42Y62: 'DROP TABLE' is not allowed on 'FLATER.SUBQ1' because it is a view.
+ij> DROP TABLE TEMPS ;
+ERROR X0Y23: Operation 'DROP TABLE' cannot be performed on object 'TEMPS' because VIEW 'SUBQ1' is dependent on that object.
+ij> -- PASS:0617 If table and view are dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0617 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml112.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml112.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml112.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,572 @@
+ij> -- LTRIM(string, trimSet)/RTRIM(string, trimSet) is not supported anymore. Mastering the
+-- output with errors for now. We may implement our own LTRIM_TRIMSET()/RTRIM_TRIMSET()
+-- functions for testing only in the future and replace usages of LTRIM/RTRIM here.
+AUTOCOMMIT OFF;
+ij> -- MODULE  DML112  
+-- SQL Test Suite, V6.0, Interactive SQL, dml112.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0621 DATETIME NULLs!
+   CREATE TABLE MERCH (
+     ITEMKEY INT,
+     ORDERED DATE,
+     RDATE DATE,
+     RTIME TIME,
+     SOLD TIMESTAMP);
+0 rows inserted/updated/deleted
+ij> -- PASS:0621 If table is created?
+   COMMIT WORK;
+ij> --O   CREATE TABLE TURNAROUND (
+--O     ITEMKEY INT,
+--O     MWAIT INTERVAL MONTH,
+--O     DWAIT INTERVAL DAY TO HOUR);
+-- PASS:0621 If table is created?
+--O   COMMIT WORK;
+--O   CREATE VIEW INVENTORY AS
+--O     SELECT MERCH.ITEMKEY AS ITEMKEY, ORDERED,
+--O     MWAIT, DWAIT FROM MERCH, TURNAROUND COR1 WHERE RDATE
+--O     IS NOT NULL AND SOLD IS NULL AND
+--O     MERCH.ITEMKEY = COR1.ITEMKEY
+--O            UNION
+--O     SELECT ITEMKEY, ORDERED,
+--O     CAST (NULL AS INTERVAL MONTH),
+--O     CAST (NULL AS INTERVAL DAY TO HOUR) FROM
+--O     MERCH WHERE RDATE IS NOT NULL AND SOLD IS NULL
+--O     AND MERCH.ITEMKEY NOT IN (SELECT ITEMKEY
+--O     FROM TURNAROUND);
+-- PASS:0621 If view is created?
+--O   COMMIT WORK;
+   INSERT INTO MERCH VALUES (0, DATE( '1993-11-23'), NULL, NULL, NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0621 If 1 row is inserted?
+   INSERT INTO MERCH VALUES (1, DATE( '1993-12-10'), DATE( '1994-01-03'),
+          CAST (NULL AS TIME), NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0621 If 1 row is inserted?
+   INSERT INTO MERCH VALUES (2, DATE( '1993-12-11'), NULL,
+--O          NULL, CAST ('TIMESTAMP ''xxxxxxFILTERED-TIMESTAMPxxxxx'' AS TIMESTAMP));
+          NULL, TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx));
+1 row inserted/updated/deleted
+ij> -- PASS:0621 If 1 row is inserted?
+   INSERT INTO MERCH VALUES (4, DATE( '1993-01-26'), DATE( '1993-01-27'),
+          NULL, NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0621 If 1 row is inserted?
+--O   INSERT INTO TURNAROUND VALUES (2, INTERVAL '1' MONTH, 
+--O          INTERVAL '20:0' DAY TO HOUR);
+-- PASS:0621 If 1 row is inserted?
+--O   INSERT INTO TURNAROUND VALUES (5, INTERVAL '5' MONTH,
+--O          CAST (NULL AS INTERVAL DAY TO HOUR));
+-- PASS:0621 If 1 row is inserted?
+--O   INSERT INTO TURNAROUND VALUES (6, INTERVAL '2' MONTH, NULL);
+-- PASS:0621 If 1 row is inserted?
+--O   SELECT COUNT(*) FROM
+--O     MERCH A, MERCH B WHERE A.SOLD = B.SOLD;
+-- PASS:0621 If count = 1?
+--O   SELECT COUNT(*) FROM
+--O     MERCH A, MERCH B WHERE A.RTIME = B.RTIME;
+-- PASS:0621 If count = 0?
+--O   SELECT COUNT(*) FROM
+--O     MERCH WHERE RDATE IS NULL;
+-- PASS:0621 If count = 2?
+--O   SELECT COUNT(*) FROM
+--O     TURNAROUND WHERE DWAIT IS NOT NULL;
+-- PASS:0621 If count = 1?
+--O   SELECT DAY( RDATE)
+--O     FROM MERCH, TURNAROUND WHERE MERCH.ITEMKEY =
+--O     TURNAROUND.ITEMKEY;
+-- PASS:0621 If 1 row selected and value is NULL?
+   SELECT ITEMKEY FROM MERCH WHERE SOLD IS NOT NULL;
+ITEMKEY    
+-----------
+2          
+ij> -- PASS:0621 If 1 row selected and ITEMKEY is 2?
+--O   SELECT HOUR( AVG (DWAIT))
+--O      FROM MERCH, TURNAROUND WHERE
+--O      MERCH.ITEMKEY = TURNAROUND.ITEMKEY OR
+--O      TURNAROUND.ITEMKEY NOT IN
+--O        (SELECT ITEMKEY FROM MERCH);
+-- PASS:0621 If 1 row selected and value is 0?
+--O   SELECT COUNT(*)
+--O     FROM INVENTORY WHERE MWAIT IS NULL
+--O     AND DWAIT IS NULL;
+-- PASS:0621 If count = 2?
+   COMMIT WORK;
+ij> --O   DROP TABLE MERCH CASCADE;
+   DROP TABLE MERCH ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0621 If table is dropped?
+   COMMIT WORK;
+ij> --O   DROP TABLE TURNAROUND CASCADE;
+-- PASS:0621 If table is dropped?
+--O   COMMIT WORK;
+-- END TEST >>> 0621 <<< END TEST
+-- *********************************************
+-- TEST:0623 OUTER JOINs with NULLs and empty tables!
+   CREATE TABLE JNULL1 (C1 INT, C2 INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If table is created?
+   COMMIT WORK;
+ij> CREATE TABLE JNULL2 (D1 INT, D2 INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW JNULL3 AS
+     SELECT C1, D1, D2 FROM JNULL1 LEFT OUTER JOIN JNULL2
+     ON C2 = D2;
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW JNULL4 AS
+     SELECT D1, D2 AS C2 FROM JNULL2;
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW JNULL5 AS
+     SELECT C1, D1, JNULL1.C2 FROM JNULL1 RIGHT OUTER JOIN JNULL4
+     ON (JNULL1.C2 = JNULL4.C2);
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW JNULL6 (C1, C2, D1, D2) AS
+     SELECT * FROM JNULL1 LEFT OUTER JOIN JNULL4
+     ON (JNULL1.C2 = JNULL4.C2);
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO JNULL1 VALUES (NULL, NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is inserted?
+   INSERT INTO JNULL1 VALUES (1, NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is inserted?
+   INSERT INTO JNULL1 VALUES (NULL, 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is inserted?
+   INSERT INTO JNULL1 VALUES (1, 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is inserted?
+   INSERT INTO JNULL1 VALUES (2, 2);
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is inserted?
+   SELECT COUNT(*) FROM JNULL3;
+1          
+-----------
+5          
+ij> -- PASS:0623 If count = 5?
+   SELECT COUNT(*) FROM JNULL3
+     WHERE D2 IS NOT NULL OR D1 IS NOT NULL;
+1          
+-----------
+0          
+ij> -- PASS:0623 If count = 0?
+   SELECT COUNT(*) FROM JNULL5;
+1          
+-----------
+0          
+ij> ----     ON (C2);
+----     SELECT D1, D2 AS C2 FROM JNULL2;
+-- PASS:0623 If count = 0?
+   SELECT COUNT(*) FROM JNULL6
+     WHERE C2 IS NOT NULL;
+1          
+-----------
+3          
+ij> -- PASS:0623 If count = 3?
+   INSERT INTO JNULL2
+     SELECT * FROM JNULL1;
+5 rows inserted/updated/deleted
+ij> -- PASS:0623 If 5 rows are inserted?
+   UPDATE JNULL2
+     SET D2 = 1 WHERE D2 = 2;
+1 row inserted/updated/deleted
+ij> -- PASS:0623 If 1 row is updated?
+   SELECT COUNT(*) FROM JNULL3;
+1          
+-----------
+9          
+ij> -- PASS:0623 If count = 9?
+   SELECT COUNT(*) 
+     FROM JNULL3 WHERE C1 IS NULL;
+1          
+-----------
+4          
+ij> -- PASS:0623 If count = 4?
+   SELECT COUNT(*) 
+     FROM JNULL3 WHERE D1 IS NULL;
+1          
+-----------
+5          
+ij> -- PASS:0623 If count = 5?
+   SELECT COUNT(*) 
+     FROM JNULL3 WHERE D2 IS NULL;
+1          
+-----------
+3          
+ij> -- PASS:0623 If count = 3?
+   SELECT AVG(D1) * 10 
+     FROM JNULL3;
+1          
+-----------
+10         
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:0623 If value is 15 (approximately)?
+   SELECT COUNT(*) 
+     FROM JNULL6
+      WHERE C2 = 1;
+1          
+-----------
+6          
+ij> -- PASS:0623 If count = 6?
+   SELECT COUNT(*) 
+     FROM JNULL6
+      WHERE C2 IS NULL;
+1          
+-----------
+2          
+ij> -- PASS:0623 If count = 2?
+   SELECT COUNT(*) 
+     FROM JNULL6
+      WHERE C2 = C1
+        AND D1 IS NULL;
+1          
+-----------
+2          
+ij> -- PASS:0623 If count = 2?
+   COMMIT WORK;
+ij> --O   DROP TABLE JNULL1 CASCADE;
+   DROP VIEW JNULL3 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW JNULL5 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW JNULL6 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW JNULL4 ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE JNULL1 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If table is dropped?
+   COMMIT WORK;
+ij> --O   DROP TABLE JNULL2 CASCADE;
+   DROP TABLE JNULL2 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0623 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0623 <<< END TEST
+-- *********************************************
+-- TEST:0625 ADD COLUMN and DROP COLUMN!
+   CREATE TABLE CHANGG
+     (NAAM CHAR (14) NOT NULL PRIMARY KEY, AGE INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0625 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW CHANGGVIEW AS
+     SELECT * FROM CHANGG;
+0 rows inserted/updated/deleted
+ij> -- PASS:0625 If view is created?
+   COMMIT WORK;
+ij> --O   ALTER TABLE CHANGG
+--O     DROP NAAM RESTRICT;
+-- PASS:0625 If ERROR, view references NAAM?
+--O   COMMIT WORK;
+   INSERT INTO CHANGG VALUES ('RALPH', 22);
+1 row inserted/updated/deleted
+ij> -- PASS:0625 If 1 row is inserted?
+   INSERT INTO CHANGG VALUES ('RUDOLPH', 54);
+1 row inserted/updated/deleted
+ij> -- PASS:0625 If 1 row is inserted?
+   INSERT INTO CHANGG VALUES ('QUEEG', 33);
+1 row inserted/updated/deleted
+ij> -- PASS:0625 If 1 row is inserted?
+   INSERT INTO CHANGG VALUES ('BESSIE', 106);
+1 row inserted/updated/deleted
+ij> -- PASS:0625 If 1 row is inserted?
+   SELECT COUNT(*) 
+     FROM CHANGG WHERE DIVORCES IS NULL;
+ERROR 42X04: Column 'DIVORCES' is not in any table in the FROM list or it appears within a join specification and is outside the scope of the join specification or it appears in a HAVING clause and is not in the GROUP BY list.  If this is a CREATE or ALTER TABLE statement then 'DIVORCES' is not a column in the target table.
+ij> -- PASS:0625 If ERROR, column does not exist?
+   COMMIT WORK;
+ij> ALTER TABLE CHANGG ADD NUMBRR CHAR(11);
+0 rows inserted/updated/deleted
+ij> -- PASS:0625 If column is added?
+   COMMIT WORK;
+ij> SELECT MAX(AGE) FROM CHANGGVIEW;
+1          
+-----------
+106        
+ij> -- PASS:0625 If value is 106?
+   SELECT MAX(NUMBRR) FROM CHANGGVIEW;
+ERROR 42X04: Column 'NUMBRR' is not in any table in the FROM list or it appears within a join specification and is outside the scope of the join specification or it appears in a HAVING clause and is not in the GROUP BY list.  If this is a CREATE or ALTER TABLE statement then 'NUMBRR' is not a column in the target table.
+ij> -- PASS:0625 If ERROR, column does not exist ?
+   COMMIT WORK;
+ij> --O   DROP VIEW CHANGGVIEW CASCADE;
+   DROP VIEW CHANGGVIEW ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0625 If view is dropped?
+   COMMIT WORK;
+ij> --O   ALTER TABLE CHANGG
+--O     ADD COLUMN DIVORCES INT DEFAULT 0;
+-- PASS:0625 If column is added?
+--O   COMMIT WORK;
+--O   SELECT COUNT(*) 
+--O     FROM CHANGG WHERE NUMBRR IS NOT NULL
+--O     OR DIVORCES <> 0;
+-- PASS:0625 If count = 0?
+--O   UPDATE CHANGG
+--O     SET NUMBRR = '837-47-1847', DIVORCES = 3
+--O     WHERE NAAM = 'RUDOLPH';
+-- PASS:0625 If 1 row is updated?
+--O   UPDATE CHANGG
+--O     SET NUMBRR = '738-47-1847', DIVORCES = NULL
+--O     WHERE NAAM = 'QUEEG';
+-- PASS:0625 If 1 row is updated?
+   DELETE FROM CHANGG
+     WHERE NUMBRR IS NULL;
+4 rows inserted/updated/deleted
+ij> -- PASS:0625 If 2 rows are deleted?
+--O   INSERT INTO CHANGG (NAAM, AGE, NUMBRR)
+--O     VALUES ('GOOBER', 16, '000-10-0001');
+-- PASS:0625 If 1 row is inserted?
+--O   INSERT INTO CHANGG
+--O     VALUES ('OLIVIA', 20, '111-11-1111', 0);
+-- PASS:0625 If 1 row is inserted?
+--O   SELECT AGE, NUMBRR, DIVORCES
+--O     FROM CHANGG
+--O     WHERE NAAM = 'RUDOLPH';
+-- PASS:0625 If 1 row selected with values 54, 837-47-1847, 3 ?
+--O   SELECT AGE, NUMBRR, DIVORCES
+--O     FROM CHANGG
+--O     WHERE NAAM = 'QUEEG';
+-- PASS:0625 If 1 row selected with values 33, 738-47-1847, NULL ?
+--O   SELECT AGE, NUMBRR, DIVORCES
+--O     FROM CHANGG
+--O     WHERE NAAM = 'GOOBER';
+-- PASS:0625 If 1 row selected with values 16, 000-10-0001, 0 ?
+--O   SELECT AGE, NUMBRR, DIVORCES
+--O     FROM CHANGG
+--O     WHERE NAAM = 'OLIVIA';
+-- PASS:0625 If 1 row selected with values 20, 111-11-1111, 0 ?
+   SELECT COUNT(*) FROM CHANGG;
+1          
+-----------
+0          
+ij> -- PASS:0625 If count = 4?
+   COMMIT WORK;
+ij> --O   ALTER TABLE CHANGG DROP AGE CASCADE;
+-- PASS:0625 If column is dropped?
+--O   COMMIT WORK;
+--O   ALTER TABLE CHANGG DROP COLUMN DIVORCES RESTRICT;
+-- PASS:0625 If column is dropped?
+--O   COMMIT WORK;
+--O   SELECT COUNT(*) 
+--O     FROM CHANGG WHERE AGE > 30;
+-- PASS:0625 If ERROR, column does not exist?
+--O   SELECT COUNT(*) 
+--O     FROM CHANGG WHERE DIVORCES IS NULL;
+-- PASS:0625 If ERROR, column does not exist?
+--O   SELECT NAAM 
+--O     FROM CHANGG
+--O     WHERE NUMBRR LIKE '%000%';
+-- PASS:0625 If 1 row selected with value GOOBER ?
+--O   COMMIT WORK;
+--O   CREATE TABLE REFERENCE_CHANGG (
+--O    NAAM CHAR (14) NOT NULL PRIMARY KEY
+--O    REFERENCES CHANGG);
+-- PASS:0625 If table is created?
+--O   COMMIT WORK;
+--O   INSERT INTO REFERENCE_CHANGG VALUES ('NO SUCH NAAM');
+-- PASS:0625 If RI ERROR, parent missing, 0 rows inserted?
+--O   COMMIT WORK;
+--O   ALTER TABLE CHANGG DROP NAAM RESTRICT;
+-- PASS:0625 If ERROR, referential constraint exists?
+--O   COMMIT WORK;
+--O   ALTER TABLE CHANGG DROP NAAM CASCADE;
+-- PASS:0625 If column is dropped?
+--O   COMMIT WORK;
+--O   INSERT INTO REFERENCE_CHANGG VALUES ('NO SUCH NAAM');
+-- PASS:0625 If 1 row is inserted?
+--O   COMMIT WORK;
+--O   ALTER TABLE CHANGG DROP NUMBRR RESTRICT;
+-- PASS:0625 If ERROR, last column may not be dropped?
+--O   COMMIT WORK;
+--O   DROP TABLE CHANGG CASCADE;
+   DROP TABLE CHANGG ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0625 If table is dropped?
+   COMMIT WORK;
+ij> --O   DROP TABLE REFERENCE_CHANGG CASCADE;
+-- PASS:0625 If table is dropped?
+--O   COMMIT WORK;
+-- END TEST >>> 0625 <<< END TEST
+-- *********************************************
+-- TEST:0631 Datetimes in a <default clause>!
+--O   CREATE TABLE OBITUARIES (
+--O    NAAM CHAR (14) NOT NULL PRIMARY KEY,
+--O    BORN DATE DEFAULT DATE( '1880-01-01'),
+--O    DIED DATE DEFAULT CURRENT_DATE,
+--O    ENTERED TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
+--O    TESTING1 DATE,
+--O    TESTING2 TIMESTAMP);
+-- PASS:0631 If table is created?
+--O   COMMIT WORK;
+--O   CREATE TABLE BIRTHS (
+--O   NAAM CHAR (14) NOT NULL PRIMARY KEY,
+--O    CHECKIN TIME (0)
+--O        DEFAULT TIME( '00:00:00'),
+--O    LABOR INTERVAL HOUR
+--O        DEFAULT INTERVAL '4' HOUR,
+--O    CHECKOUT TIME
+--O        DEFAULT CURRENT_TIME,
+--O    TESTING TIME);
+-- PASS:0631 If table is created?
+--O   COMMIT WORK;
+--O   INSERT INTO OBITUARIES (NAAM, TESTING1, TESTING2)
+--O     VALUES ('KEITH', CURRENT_DATE, CURRENT_TIMESTAMP);
+-- PASS:0631 If 1 row is inserted?
+--O   INSERT INTO BIRTHS (NAAM, TESTING)
+--O     VALUES ('BJORN', CURRENT_TIME);
+-- PASS:0631 If 1 row is inserted?
+--O   SELECT HOUR( CHECKIN) +
+--O                MINUTE( CHECKIN) +
+--O                SECOND( CHECKIN)
+--O   FROM BIRTHS;
+-- PASS:0631 If 1 row selected with value 0?
+--O   SELECT HOUR( LABOR) FROM BIRTHS;
+-- PASS:0631 If 1 row selected with value 4?
+--O   SELECT COUNT (*) FROM BIRTHS
+--O     WHERE TESTING <> CHECKOUT OR CHECKOUT IS NULL;
+-- PASS:0631 If count = 0?
+--O   SELECT COUNT (*) FROM OBITUARIES
+--O     WHERE BORN <> DATE( '1880-01-01')
+--O     OR BORN IS NULL
+--O     OR DIED <> TESTING1
+--O     OR DIED IS NULL
+--O     OR ENTERED <> TESTING2
+--O     OR ENTERED IS NULL;
+-- PASS:0631 If count = 0?
+--O   COMMIT WORK;
+--O   DROP TABLE BIRTHS CASCADE;
+-- PASS:0631 If table is dropped?
+--O   COMMIT WORK;
+--O   DROP TABLE OBITUARIES CASCADE;
+-- PASS:0631 If table is dropped?
+--O   COMMIT WORK;
+-- END TEST >>> 0631 <<< END TEST
+-- *********************************************
+-- TEST:0633 TRIM function!
+   CREATE TABLE WEIRDPAD (
+    NAAM CHAR (14),
+    SPONSOR CHAR (14),
+    PADCHAR CHAR (1));
+0 rows inserted/updated/deleted
+ij> -- PASS:0633 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO WEIRDPAD (NAAM, SPONSOR) VALUES
+     ('KATEBBBBBBBBBB', '000000000KEITH');
+1 row inserted/updated/deleted
+ij> -- PASS:0633 If 1 row is inserted?
+   INSERT INTO WEIRDPAD (NAAM, SPONSOR) VALUES
+     ('    KEITH     ', 'XXXXKATEXXXXXX');
+1 row inserted/updated/deleted
+ij> -- PASS:0633 If 1 row is inserted?
+   SELECT LTRIM (RTRIM (SPONSOR,'X'),'X')
+     FROM WEIRDPAD
+     WHERE LTRIM (RTRIM (NAAM)) = 'KEITH';
+ERROR 42X01: Syntax error: Encountered "," at line 3, column 32.
+ij> -- PASS:0633 If 1 row selected with value KATE ? 
+   SELECT LTRIM (SPONSOR, 'X') 
+     FROM WEIRDPAD
+     WHERE RTRIM (NAAM) = '    KEITH';
+ERROR 42X01: Syntax error: Encountered "," at line 3, column 25.
+ij> -- PASS:0633 If 1 row selected with value KATEXXXXXX ?
+   SELECT LTRIM (SPONSOR, 'X') 
+     FROM WEIRDPAD
+     WHERE RTRIM (SPONSOR, 'X') = 'XXXXKATE';
+ERROR 42X01: Syntax error: Encountered "," at line 3, column 25.
+ij> -- PASS:0633 If 1 row selected with value KATEXXXXXX ?
+   SELECT LTRIM (B.NAAM)  FROM WEIRDPAD A,
+     WEIRDPAD B WHERE RTRIM (LTRIM (A.NAAM, 'B'),'B')
+                    = RTRIM (LTRIM (B.SPONSOR, 'X'),'X');
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 43.
+ij> -- PASS:0633 If 1 row selected with value KEITH ?
+   SELECT COUNT(*) FROM WEIRDPAD A,
+     WEIRDPAD B WHERE LTRIM (A.SPONSOR, '0')
+                    = RTRIM (LTRIM (B.NAAM, ' '), ' ');
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 39.
+ij> -- PASS:0633 If count = 1?
+   SELECT RTRIM (NAAM, 'BB')
+     FROM WEIRDPAD WHERE NAAM LIKE 'KATE%';
+ERROR 42X01: Syntax error: Encountered "," at line 3, column 22.
+ij> -- PASS:0633 If ERROR, length of trim character must be 1 ?
+   INSERT INTO WEIRDPAD (NAAM, SPONSOR)
+     SELECT DISTINCT LTRIM (HU.STAFF.CITY, 'D'), 
+                     RTRIM (PTYPE, 'n')
+     FROM HU.STAFF, HU.PROJ 
+     WHERE EMPNAME = 'Alice';
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 42.
+ij> -- PASS:0633 If 3 rows are inserted?
+   SELECT COUNT(*) FROM WEIRDPAD;
+1          
+-----------
+2          
+ij> -- PASS:0633 If count = 5?
+   UPDATE WEIRDPAD
+     SET SPONSOR = LTRIM (RTRIM (SPONSOR, 'X'), 'X'),
+             NAAM = RTRIM (NAAM, 'B');
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 41.
+ij> -- PASS:0633 If 5 rows are updated?
+   SELECT COUNT(*) FROM WEIRDPAD
+     WHERE NAAM = 'KATE' OR SPONSOR = 'KATE';
+1          
+-----------
+0          
+ij> -- PASS:0633 If count = 2?
+   DELETE FROM WEIRDPAD WHERE
+     LTRIM('Kest', 'K') = LTRIM(SPONSOR, 'T');
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 18.
+ij> -- PASS:0633 If 1 row is deleted?
+   SELECT COUNT(*) FROM WEIRDPAD;
+1          
+-----------
+2          
+ij> -- PASS:0633 If count = 4?
+   UPDATE WEIRDPAD
+      SET PADCHAR = '0'
+     WHERE SPONSOR = '000000000KEITH'
+        OR NAAM    = 'eale';
+1 row inserted/updated/deleted
+ij> -- PASS:0633 If 3 rows are updated?
+   UPDATE WEIRDPAD
+      SET SPONSOR = NULL
+     WHERE SPONSOR = 'Desig';
+0 rows inserted/updated/deleted
+ij> -- PASS:0633 If 1 row is updated?
+   SELECT COUNT(*) FROM WEIRDPAD
+     WHERE RTRIM (SPONSOR, PADCHAR) IS NULL;
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 26.
+ij> -- PASS:0633 If count = 2?
+   SELECT COUNT(*) FROM WEIRDPAD
+     WHERE LTRIM (SPONSOR, PADCHAR) = 'KEITH';
+ERROR 42X01: Syntax error: Encountered "," at line 4, column 26.
+ij> -- PASS:0633 If count = 1?
+   COMMIT WORK;
+ij> --0   DROP TABLE WEIRDPAD CASCADE;
+   DROP TABLE WEIRDPAD;
+0 rows inserted/updated/deleted
+ij> -- PASS:0633 If table is dropped?
+   COMMIT WORK;
+ij> -- END TEST >>> 0633 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml114.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml114.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml114.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,262 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML114  
+-- SQL Test Suite, V6.0, Interactive SQL, dml114.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0635 Feature 13, grouped operations (static)!
+  CREATE VIEW WORKWEEK AS
+  SELECT EMPNUM, HOURS FROM HU.WORKS
+  GROUP BY HOURS, EMPNUM;
+0 rows inserted/updated/deleted
+ij> -- PASS:0635 If table is created?
+   COMMIT WORK;
+ij> SELECT EMPNUM, SUM (HOURS)
+  FROM WORKWEEK
+  WHERE HOURS > 20
+  GROUP BY EMPNUM
+  HAVING EMPNUM = 'E1';
+EM&|2          
+---------------
+E1 |120        
+ij> -- PASS:0635 If 1 row selected and EMPNUM = 'E1' and SUM(HOURS) = 120?
+   SELECT COUNT(*)
+  FROM WORKWEEK WHERE HOURS > 40;
+1          
+-----------
+3          
+ij> -- PASS:0635 If count = 3?
+   SELECT EMPNAME
+  FROM HU.STAFF, WORKWEEK
+  WHERE HU.STAFF.EMPNUM = WORKWEEK.EMPNUM
+  AND HOURS = 12;
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0635 If 1 row selected and EMPNAME = 'Alice'?
+   SELECT COUNT(*), MAX(EMPNUM), MIN(EMPNUM), AVG(HOURS)
+  FROM WORKWEEK;
+1          |2   |3   |4            
+-----------------------------------
+10         |E4  |E1  |43.2000      
+ij> -- PASS:0635 If 1 row selected and count = 10 and MAX(EMPNUM) = 'E4'?
+-- PASS:0635 AND MIN(EMPNUM) = 'E1' and AVG(HOURS) = 43 (approximately)?
+   SELECT EMPNAME
+  FROM HU.STAFF WHERE EMPNUM =
+  (SELECT EMPNUM FROM WORKWEEK
+    WHERE HOURS = 12);
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0635 If 1 row selected and EMPNAME = 'Alice'?
+   SELECT EMPNAME
+  FROM HU.STAFF WHERE EMPNUM =
+  (SELECT EMPNUM FROM HU.WORKS
+    GROUP BY EMPNUM, HOURS
+    HAVING HOURS = 12);
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:0635 If 1 row selected and EMPNAME = 'Alice'?
+-- NOTE:0635 Cursor subtest deleted.
+   COMMIT WORK;
+ij> --0   DROP VIEW WORKWEEK CASCADE;
+   DROP VIEW WORKWEEK ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0635 <<< END TEST
+-- *********************************************
+-- TEST:0637 Feature 14, Qualified * in select list (static)!
+   CREATE VIEW QUALSTAR AS
+  SELECT HU.STAFF.*, HOURS FROM HU.STAFF, HU.WORKS
+  WHERE HU.STAFF.EMPNUM = HU.WORKS.EMPNUM;
+0 rows inserted/updated/deleted
+ij> -- PASS:0637 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW CORRQUALSTAR AS
+  SELECT BLAH.*, HOURS FROM HU.STAFF BLAH, HU.WORKS
+  WHERE BLAH.EMPNUM = HU.WORKS.EMPNUM;
+0 rows inserted/updated/deleted
+ij> -- PASS:0637 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW SUBQ2 AS
+  SELECT DISTINCT * FROM QUALSTAR;
+0 rows inserted/updated/deleted
+ij> -- PASS:0637 If view is created?
+   COMMIT WORK;
+ij> CREATE VIEW CORRSUBQ2 AS
+  SELECT DISTINCT * FROM CORRQUALSTAR;
+0 rows inserted/updated/deleted
+ij> -- PASS:0637 If view is created?
+   COMMIT WORK;
+ij> SELECT COUNT(*) FROM QUALSTAR;
+1          
+-----------
+12         
+ij> -- PASS:0637 If count = 12?
+   SELECT COUNT(*) FROM SUBQ2;
+1          
+-----------
+10         
+ij> -- PASS:0637 If count = 10?
+   SELECT EMPNUM, GRADE, CITY, HOURS
+  FROM QUALSTAR WHERE EMPNAME = 'Carmen';
+EM&|GRADE|CITY           |HOURS 
+--------------------------------
+E3 |13   |Vienna         |20    
+ij> -- PASS:0637 If 1 row selected and EMPNUM = 'E3' and GRADE = 13?
+-- PASS:0637 AND CITY = 'Vienna' and HOURS = 20?
+-- NOTE:0637 Cursor subtest deleted.
+   SELECT HU.STAFF.*, HOURS
+  FROM HU.STAFF, HU.WORKS
+  WHERE HU.STAFF.EMPNUM = HU.WORKS.EMPNUM
+  AND EMPNAME = 'Carmen';
+EM&|EMPNAME             |GRADE|CITY           |HOURS 
+-----------------------------------------------------
+E3 |Carmen              |13   |Vienna         |20    
+ij> -- PASS:0637 If 1 row selected and EMPNUM = 'E3' and EMPNAME = 'Carmen'?
+-- PASS:0637 AND GRADE = 13 and CITY = 'Vienna' and HOURS = 20?
+   SELECT COUNT(*) FROM CORRQUALSTAR;
+1          
+-----------
+12         
+ij> -- PASS:0637 If count = 12?
+   SELECT COUNT(*) FROM CORRSUBQ2;
+1          
+-----------
+10         
+ij> -- PASS:0637 If count = 10?
+   SELECT EMPNUM, GRADE, CITY, HOURS
+  FROM CORRQUALSTAR WHERE EMPNAME = 'Carmen';
+EM&|GRADE|CITY           |HOURS 
+--------------------------------
+E3 |13   |Vienna         |20    
+ij> -- PASS:0637 If 1 row selected and EMPNUM = 'E3'?
+-- PASS:0637 AND GRADE = 13 and CITY = 'Vienna' and HOURS = 20?
+   COMMIT WORK;
+ij> --0   DROP VIEW QUALSTAR CASCADE;
+   DROP VIEW SUBQ2 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW QUALSTAR ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --0   DROP VIEW CORRQUALSTAR CASCADE;
+   DROP VIEW CORRSUBQ2 ;
+0 rows inserted/updated/deleted
+ij> DROP VIEW CORRQUALSTAR ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0637 <<< END TEST
+-- *********************************************
+-- TEST:0639 Feature 15, Lowercase Identifiers (static)!
+  create view Staff (Empnum, empname, Grade, City) as
+  select empnum, EMPNAME, Grade, cItY from Hu.Staff;
+0 rows inserted/updated/deleted
+ij> -- PASS:0639 If view is created?
+  commit work;
+ij> SELECT EMPNUM as WhatsHisNumber, GRADE, CITY
+  FROM Flater.staff FLaterStaff_Flater
+  WHERE EMPNAME = 'Carmen'
+--0 SQL92 does not scope renames into the query, just outside it -- ALC
+--0  AND FLATERstaff_fLATER.whatshisnumber = 'E3';
+  AND FLATERstaff_fLATER.empnum = 'E3';
+WH&|GRADE|CITY           
+-------------------------
+E3 |13   |Vienna         
+ij> -- PASS:0639 If 1 row selected and EMPNUM = 'E3'?
+-- PASS:0639 AND GRADE = 13 and CITY = 'Vienna'?
+-- NOTE:0639 Cursor subtest deleted.
+   COMMIT WORK;
+ij> --0   DROP VIEW STAFF CASCADE;
+   DROP VIEW STAFF ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0639 <<< END TEST
+-- *********************************************
+-- TEST:0641 Feature 16, PRIMARY KEY enhancement (static)!
+   CREATE TABLE FEAT16 (
+  EMPNUM INT NOT NULL PRIMARY KEY,
+  PNUM   INT  NOT NULL UNIQUE);
+0 rows inserted/updated/deleted
+ij> -- PASS:0641 If view is created?
+   COMMIT WORK;
+ij> CREATE TABLE BARNO (
+  P1 INT NOT NULL, P2 CHAR NOT NULL, X1 INT NOT NULL, X2 CHAR NOT NULL,
+  UNIQUE (X2, X1),
+  PRIMARY KEY (P1, P2));
+0 rows inserted/updated/deleted
+ij> -- PASS:0641 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO FEAT16 VALUES (1, 10);
+1 row inserted/updated/deleted
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO FEAT16 VALUES (2, 20);
+1 row inserted/updated/deleted
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO FEAT16 VALUES (1, 30);
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'FEAT16'.
+ij> -- PASS:0641 If ERROR, unique constraint, 0 rows inserted?
+   INSERT INTO FEAT16 VALUES (3, 20);
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'FEAT16'.
+ij> -- PASS:0641 If ERROR, unique constraint, 0 rows inserted?
+   INSERT INTO FEAT16 VALUES (3, NULL);
+ERROR 23502: Column 'PNUM'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO FEAT16 VALUES (4, NULL);
+ERROR 23502: Column 'PNUM'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO FEAT16 VALUES (5, NULL);
+ERROR 23502: Column 'PNUM'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO BARNO VALUES (1, 'A', 10, 'a');
+1 row inserted/updated/deleted
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO BARNO VALUES (2, 'A', 20, 'a');
+1 row inserted/updated/deleted
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO BARNO VALUES (1, 'A', 30, 'a');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'BARNO'.
+ij> -- PASS:0641 If ERROR, unique constraint, 0 rows inserted?
+   INSERT INTO BARNO VALUES (3, 'A', 20, 'a');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'BARNO'.
+ij> -- PASS:0641 If ERROR, unique constraint, 0 rows inserted?
+   INSERT INTO BARNO VALUES (3, NULL, 30, 'a');
+ERROR 23502: Column 'P2'  cannot accept a NULL value.
+ij> -- PASS:0641 If ERROR, PRIMARY KEY constraint, 0 rows inserted?
+-- PASS:0641 OR ERROR, NOT NULL constraint, 0 rows inserted?
+   INSERT INTO BARNO VALUES (3, NULL, 30, 'b');
+ERROR 23502: Column 'P2'  cannot accept a NULL value.
+ij> -- PASS:0641 If ERROR, PRIMARY KEY constraint, 0 rows inserted?
+-- PASS:0641 OR ERROR, NOT NULL constraint, 0 rows inserted?
+   INSERT INTO BARNO VALUES (3, 'A', 30, NULL);
+ERROR 23502: Column 'X2'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO BARNO VALUES (3, 'B', 30, NULL);
+ERROR 23502: Column 'X2'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   INSERT INTO BARNO VALUES (4, 'B', NULL, NULL);
+ERROR 23502: Column 'X1'  cannot accept a NULL value.
+ij> -- PASS:0641 If 1 row is inserted?
+   COMMIT WORK;
+ij> --0   DROP TABLE FEAT16 CASCADE;
+   DROP TABLE FEAT16 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --0   DROP TABLE BARNO CASCADE;
+   DROP TABLE BARNO ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0641 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml119.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml119.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml119.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,104 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML119  
+-- SQL Test Suite, V6.0, Interactive SQL, dml119.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0647 Feature 20, CAST functions (static)!
+   CREATE TABLE USER_INPUT (
+   USER_ID INT, USER_TYPED CHAR (10),
+   CASH_BALANCE NUMERIC (5, 2));
+0 rows inserted/updated/deleted
+ij> -- PASS:0647 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW STANDARD_INPUT AS
+  SELECT CAST (USER_ID AS CHAR (10)) AS USER_NAME,
+         CAST (USER_TYPED AS NUMERIC (5, 2)) AS USER_INPUT,
+         CAST (CASH_BALANCE AS REAL) AS RECEIVABLE
+    FROM USER_INPUT;
+0 rows inserted/updated/deleted
+ij> -- PASS:0647 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO USER_INPUT VALUES
+  (0, '999.99', 999.99);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (1, '-999.99', -999.99);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (2, '  54.', 54);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS INT), CAST (-7.02 AS CHAR (10)),
+  CAST (' -.702E+1' AS NUMERIC (5, 2)));
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   SELECT CAST (AVG (CAST (USER_TYPED AS INT)) AS INT)
+  FROM USER_INPUT;
+1          
+-----------
+ERROR 22018: Invalid character string format for type INTEGER.
+ij> -- PASS:0647 If 1 row selected and value is 11 or 12?
+   SELECT AVG (USER_INPUT)
+  FROM STANDARD_INPUT;
+1          
+-----------
+11.7450    
+ij> -- PASS:0647 If 1 row selected and value is 11.745 +- 0.01?
+   UPDATE USER_INPUT
+  SET USER_TYPED = CAST (0 AS CHAR (10)),
+  CASH_BALANCE = CASH_BALANCE - CAST ('500' AS NUMERIC (5, 2))
+  WHERE USER_ID = CAST ('-0' AS INT);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is updated?
+   SELECT SUM (USER_INPUT) * 100, SUM (RECEIVABLE)
+  FROM STANDARD_INPUT;
+1                    |2            
+-----------------------------------
+-95301.00            |-453.02      
+ij> -- PASS:0647 If 1 row selected and first value is -95301 +- 4?
+-- PASS:0647 AND second value is -453.02 +- 0.04?
+   DELETE FROM USER_INPUT;
+4 rows inserted/updated/deleted
+ij> INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS INT), CAST (-7.02 AS CHAR (10)),
+  CAST (' -.702E+1' AS NUMERIC (5, 2)));
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS SMALLINT), CAST (-7.02 AS CHAR (5)),
+  CAST (' -.702E+1' AS DECIMAL (3, 2)));
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   SELECT USER_ID
+  FROM USER_INPUT
+  GROUP BY USER_ID, USER_TYPED, CASH_BALANCE
+  HAVING COUNT(*) = 2;
+USER_ID    
+-----------
+3          
+ij> -- PASS:0647 If 1 row selected and USER_ID = 3?
+   COMMIT WORK;
+ij> --O   DROP TABLE USER_INPUT CASCADE;
+   drop view standard_input;
+0 rows inserted/updated/deleted
+ij> DROP TABLE USER_INPUT ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0647 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml130.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml130.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml130.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,581 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML130  
+-- SQL Test Suite, V6.0, Interactive SQL, dml130.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0678 Data type semantics with NULL / NOT NULL!
+   CREATE TABLE CH1 (
+  CH1A CHARACTER (10) NOT NULL,
+  CH1B CHARACTER NOT NULL,
+  CH1C CHAR (10) NOT NULL);
+0 rows inserted/updated/deleted
+ij> -- PASS:0678 If table is created?
+   COMMIT WORK;
+ij> CREATE TABLE NUM1 (
+  NUM1C1 NUMERIC (3, 2) NOT NULL,
+  NUM1C2 NUMERIC (2) NOT NULL,
+  NUM1C3 NUMERIC NOT NULL);
+0 rows inserted/updated/deleted
+ij> -- PASS:0678 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO CH1 VALUES ('FOO', '', '0123456789');
+1 row inserted/updated/deleted
+ij> -- PASS:0678 If 1 row is inserted?
+   SELECT CH1A, CH1B, CH1C
+  FROM CH1;
+CH1A      |&|CH1C      
+-----------------------
+FOO       | |0123456789
+ij> -- PASS:0678 If 1 row selected and CH1A = 'FOO       '?
+-- PASS:0678 AND CH1B = ' ' and CH1C = '0123456789'?
+-- NOTE:0678 One subtest deleted.
+   INSERT INTO CH1 VALUES ('FOO',
+  'F', 'LITTLETOOLONG');
+ERROR 22001: A truncation error was encountered trying to shrink CHAR 'LITTLETOOLONG' to length 10.
+ij> -- PASS:0678 If ERROR, string data, right truncation, 0 rows selected?
+   DELETE FROM CH1;
+1 row inserted/updated/deleted
+ij> INSERT INTO CH1 VALUES ('FOO',
+  'F', 'BLANKS       ');
+1 row inserted/updated/deleted
+ij> -- PASS:0678 If 1 row is inserted?
+   SELECT CH1A, CH1B, CH1C
+  FROM CH1;
+CH1A      |&|CH1C      
+-----------------------
+FOO       |F|BLANKS    
+ij> -- PASS:0678 If 1 row selected and CH1A = 'FOO       '?
+-- PASS:0678 AND CH1B = 'F' and CH1C = 'BLANKS    '?
+   INSERT INTO NUM1 VALUES (9.99, -99, 9);
+1 row inserted/updated/deleted
+ij> -- PASS:0678 If 1 row is inserted?
+   SELECT NUM1C1 * 100, NUM1C2, NUM1C3
+  FROM NUM1;
+1               |NU&|NUM1C3
+---------------------------
+999.00          |-99|9     
+ij> -- PASS:0678 If 1 row selected and values are 999, -99, 9?
+   DELETE FROM NUM1;
+1 row inserted/updated/deleted
+ij> INSERT INTO NUM1 VALUES (-10, 0, 0);
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(3,2).
+ij> -- PASS:0678 If ERROR, string data, numeric value out of range?
+-- PASS:0678 AND 0 rows inserted?
+   INSERT INTO NUM1 VALUES (0, 100, 0);
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(2,0).
+ij> -- PASS:0678 If ERROR, string data, numeric value out of range?
+-- PASS:0678 AND 0 rows inserted?
+   INSERT INTO NUM1 VALUES (0, 0, 0.1);
+1 row inserted/updated/deleted
+ij> -- PASS:0678 If 1 row is inserted?
+   SELECT NUM1C1 * 100, NUM1C2, NUM1C3
+  FROM NUM1;
+1               |NU&|NUM1C3
+---------------------------
+0.00            |0  |0     
+ij> -- PASS:0678 If 1 row selected and values are 0, 0, 0?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NUM1 CASCADE;
+   DROP TABLE NUM1 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --O   DROP TABLE CH1 CASCADE;
+   DROP TABLE CH1 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0678 <<< END TEST
+-- *********************************************
+--O-- TEST:0679 INFO_SCHEM:  Table data types!
+--O
+--O   CREATE TABLE LOTSA_TYPES (
+--O  FLAAG CHAR DEFAULT 'Y', KODE CHAR (5) NOT NULL,
+--O  AMPL REAL DEFAULT 3,
+--O  COORD DOUBLE PRECISION, SWAY FLOAT, REVS INTEGER,
+--O  PITCH SMALLINT, DEGREE NUMERIC (3, 2), RUDDER DECIMAL (2));
+--O-- PASS:0679 If table is created?
+--O
+--O   COMMIT WORK;
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.TABLES
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND TABLE_TYPE = 'BASE TABLE';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.VIEWS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES';
+--O-- PASS:0679 If count = 0?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'FLAAG' AND ORDINAL_POSITION = 1
+--O  AND COLUMN_DEF = '''Y''' AND DATA_TYPE = 'CHARACTER'
+--O  AND CHAR_MAX_LENGTH = 1 AND CHAR_OCTET_LENGTH
+--O  > 0 AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'KODE' AND ORDINAL_POSITION = 2
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'CHARACTER'
+--O  AND CHAR_MAX_LENGTH = 5 AND CHAR_OCTET_LENGTH
+--O  > 3 AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'NO';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'AMPL' AND ORDINAL_POSITION = 3
+--O  AND COLUMN_DEF IS NOT NULL AND DATA_TYPE = 'REAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'COORD' AND ORDINAL_POSITION = 4
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'DOUBLE PRECISION'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'SWAY' AND ORDINAL_POSITION = 5
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'FLOAT'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'REVS' AND ORDINAL_POSITION = 6
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTEGER'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 0 AND NUM_SCALE = 0 AND
+--O  (NUM_PREC_RADIX = 2 OR NUM_PREC_RADIX = 10)
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'PITCH' AND ORDINAL_POSITION = 7
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'SMALLINT'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 0 AND NUM_SCALE = 0 AND
+--O  (NUM_PREC_RADIX = 2 OR NUM_PREC_RADIX = 10)
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'DEGREE' AND ORDINAL_POSITION = 8
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'NUMERIC'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC = 3 AND NUM_SCALE = 2
+--O  AND NUM_PREC_RADIX = 10
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'RUDDER' AND ORDINAL_POSITION = 9
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'DECIMAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 2 AND NUM_SCALE = 0
+--O  AND NUM_PREC_RADIX = 10
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0679 If count = 1?
+--O
+--O   ROLLBACK WORK;
+--O
+--O   DROP TABLE LOTSA_TYPES CASCADE;
+--O
+--O   COMMIT WORK;
+--O
+--O-- END TEST >>> 0679 <<< END TEST
+--O
+--O-- *********************************************
+--O
+--O-- TEST:0680 INFO_SCHEM:  View data types!
+--O
+--O   CREATE TABLE LT1 (
+--O  FLAAG CHAR DEFAULT 'Y', KODE CHAR (5) NOT NULL,
+--O  AMPL REAL DEFAULT 3,
+--O  COORD DOUBLE PRECISION, SWAY FLOAT, REVS INTEGER);
+--O-- PASS:0680 If table is created?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE TABLE LT2 (
+--O  PITCH SMALLINT, DEGREE NUMERIC (3, 2), RUDDER DECIMAL (2));
+--O-- PASS:0680 If table is created?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE VIEW LOTSA_TYPES AS
+--O  SELECT * FROM LT1, LT2;
+--O-- PASS:0680 If view is created?
+--O
+--O   COMMIT WORK;
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.TABLES
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND TABLE_TYPE = 'VIEW';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.VIEWS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'FLAAG' AND ORDINAL_POSITION = 1
+--O  AND COLUMN_DEF = '''Y''' AND DATA_TYPE = 'CHARACTER'
+--O  AND CHAR_MAX_LENGTH = 1 AND CHAR_OCTET_LENGTH
+--O  > 0 AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'KODE' AND ORDINAL_POSITION = 2
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'CHARACTER'
+--O  AND CHAR_MAX_LENGTH = 5 AND CHAR_OCTET_LENGTH
+--O  > 0 AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'NO';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'AMPL' AND ORDINAL_POSITION = 3
+--O  AND COLUMN_DEF IS NOT NULL AND DATA_TYPE = 'REAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'COORD' AND ORDINAL_POSITION = 4
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'DOUBLE PRECISION'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'SWAY' AND ORDINAL_POSITION = 5
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'FLOAT'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 8 AND NUM_PREC_RADIX
+--O  = 2 AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'REVS' AND ORDINAL_POSITION = 6
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTEGER'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 0 AND NUM_SCALE = 0 AND
+--O  (NUM_PREC_RADIX = 2 OR NUM_PREC_RADIX = 10)
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'PITCH' AND ORDINAL_POSITION = 7
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'SMALLINT'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC > 0 AND NUM_SCALE = 0 AND
+--O  (NUM_PREC_RADIX = 2 OR NUM_PREC_RADIX = 10)
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'DEGREE' AND ORDINAL_POSITION = 8
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'NUMERIC'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC = 3 AND NUM_SCALE = 2
+--O  AND NUM_PREC_RADIX = 10
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_TYPES'
+--O  AND COLUMN_NAME = 'RUDDER' AND ORDINAL_POSITION = 9
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'DECIMAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC >= 2 AND NUM_SCALE = 0
+--O  AND NUM_PREC_RADIX = 10
+--O  AND DATETIME_PREC IS NULL AND INTERVAL_TYPE IS NULL AND
+--O  INTERVAL_PREC IS NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0680 If count = 1?
+--O
+--O   ROLLBACK WORK;
+--O
+--O   DROP TABLE LT1 CASCADE;
+--O
+--O   COMMIT WORK;
+--O
+--O   DROP TABLE LT2 CASCADE;
+--O
+--O   COMMIT WORK;
+--O
+--O-- END TEST >>> 0680 <<< END TEST
+--O
+--O-- *********************************************
+--O
+--O-- TEST:0682 INFO_SCHEM:  Datetime data types!
+--O
+--O   CREATE TABLE LOTSA_DATETIMES (
+--O  C1 DATE, C2 TIME, C3 TIMESTAMP,
+--O  C4 INTERVAL YEAR, C5 INTERVAL MONTH, C6 INTERVAL DAY,
+--O  C7 INTERVAL HOUR, C8 INTERVAL MINUTE, C9 INTERVAL SECOND,
+--O  C10 INTERVAL YEAR TO MONTH,
+--O  C11 INTERVAL DAY TO HOUR,
+--O  C12 INTERVAL DAY TO MINUTE,
+--O  C13 INTERVAL DAY TO SECOND,
+--O  C14 INTERVAL HOUR TO MINUTE,
+--O  C15 INTERVAL HOUR TO SECOND,
+--O  C16 INTERVAL MINUTE TO SECOND);
+--O-- PASS:0682 If table is created?
+--O
+--O   COMMIT WORK;
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.TABLES
+--O  WHERE TABLE_SCHEM = 'FLATER'
+--O  AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND TABLE_TYPE = 'BASE TABLE';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C1' AND ORDINAL_POSITION = 1
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'DATE'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS
+--O  NOT NULL AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C2' AND ORDINAL_POSITION = 2
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'TIME'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 0
+--O  AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C3' AND ORDINAL_POSITION = 3
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'TIMESTAMP'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 6
+--O  AND INTERVAL_TYPE IS NULL AND INTERVAL_PREC IS
+--O  NULL AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C4' AND ORDINAL_POSITION = 4
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'YEAR' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C5' AND ORDINAL_POSITION = 5
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'MONTH' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C6' AND ORDINAL_POSITION = 6
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'DAY' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C7' AND ORDINAL_POSITION = 7
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'HOUR' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C8' AND ORDINAL_POSITION = 8
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'MINUTE' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C9' AND ORDINAL_POSITION = 9
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 6
+--O  AND INTERVAL_TYPE = 'SECOND' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C10' AND ORDINAL_POSITION = 10
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'YEAR TO MONTH' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C11' AND ORDINAL_POSITION = 11
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'DAY TO HOUR' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C12' AND ORDINAL_POSITION = 12
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'DAY TO MINUTE' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C13' AND ORDINAL_POSITION = 13
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 6
+--O  AND INTERVAL_TYPE = 'DAY TO SECOND' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C14' AND ORDINAL_POSITION = 14
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC IS NOT NULL
+--O  AND INTERVAL_TYPE = 'HOUR TO MINUTE' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C15' AND ORDINAL_POSITION = 15
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 6
+--O  AND INTERVAL_TYPE = 'HOUR TO SECOND' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   SELECT COUNT(*) FROM INFO_SCHEM.COLUMNS
+--O  WHERE TABLE_SCHEM = 'FLATER' AND TABLE_NAME = 'LOTSA_DATETIMES'
+--O  AND COLUMN_NAME = 'C16' AND ORDINAL_POSITION = 16
+--O  AND COLUMN_DEF IS NULL AND DATA_TYPE = 'INTERVAL'
+--O  AND CHAR_MAX_LENGTH IS NULL AND CHAR_OCTET_LENGTH
+--O  IS NULL AND NUM_PREC IS NULL AND NUM_PREC_RADIX
+--O  IS NULL AND NUM_SCALE IS NULL AND DATETIME_PREC = 6
+--O  AND INTERVAL_TYPE = 'MINUTE TO SECOND' AND INTERVAL_PREC = 2
+--O  AND IS_NULLABLE = 'YES';
+--O-- PASS:0682 If count = 1?
+--O
+--O   ROLLBACK WORK;
+--O
+--O   DROP TABLE LOTSA_DATETIMES CASCADE;
+--O
+--O   COMMIT WORK;
+--O
+--O-- END TEST >>> 0682 <<< END TEST
+--O
+--O-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml132.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml132.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml132.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,132 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML132  
+-- SQL Test Suite, V6.0, Interactive SQL, dml132.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER            
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0515 FIPS sizing:  NUMERIC (15) decimal precision!
+   INSERT INTO HU.P15 VALUES (999999999999999);
+1 row inserted/updated/deleted
+ij> -- PASS:0515 If 1 row is inserted?
+   INSERT INTO HU.P15 VALUES (-999999999999999);
+1 row inserted/updated/deleted
+ij> -- PASS:0515 If 1 row is inserted?
+   SELECT NUMTEST - 999999999999990,
+  NUMTEST / 9999999
+  FROM HU.P15 WHERE NUMTEST > 0;
+1                    |2                                 
+--------------------------------------------------------
+9                    |100000010.0000009000000900        
+ij> -- PASS:0515 If 1 row selected and values are 9 and 100000010 +- 1?
+   SELECT NUMTEST + 999999999999990,
+  NUMTEST / 9999999
+  FROM HU.P15 WHERE NUMTEST < 0;
+1                    |2                                 
+--------------------------------------------------------
+-9                   |-100000010.0000009000000900       
+ij> -- PASS:0515 If 1 row selected and values are -9 and -100000010 +- 1?
+   DELETE FROM HU.P15;
+2 rows inserted/updated/deleted
+ij> -- PASS:0515 If 2 rows are deleted?
+   INSERT INTO HU.P15 VALUES (562949953421313);
+1 row inserted/updated/deleted
+ij> -- PASS:0515 If 1 row is inserted?
+--O   SELECT COUNT(*)
+   SELECT *
+  FROM HU.P15 WHERE NUMTEST = 562949953421312;
+NUMTEST         
+----------------
+ij> -- PASS:0515 If count = 0?
+--O   SELECT COUNT(*)
+   SELECT *
+  FROM HU.P15 WHERE NUMTEST = 562949953421313;
+NUMTEST         
+----------------
+562949953421313 
+ij> -- PASS:0515 If count = 1?
+--O   SELECT COUNT(*)
+   SELECT *
+  FROM HU.P15 WHERE NUMTEST = 562949953421314;
+NUMTEST         
+----------------
+ij> -- PASS:0515 If count = 0?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0515 <<< END TEST
+-- *********************************************
+-- TEST:0524 FIPS sizing:  100 Items in a SELECT list!
+   DELETE FROM HU.T100;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.T100 VALUES ('00', '01', '02',
+  '03', '04', '05', '06', '07', '08', '09', '0a', '0b', '0c',
+  '0d', '0e', '0f', '10', '11', '12', '13', '14', '15', '16',
+  '17', '18', '19', '1a', '1b', '1c', '1d', '1e', '1f', '20',
+  '21', '22', '23', '24', '25', '26', '27', '28', '29', '2a',
+  '2b', '2c', '2d', '2e', '2f', '30', '31', '32', '33', '34',
+  '35', '36', '37', '38', '39', '3a', '3b', '3c', '3d', '3e',
+  '3f', '40', '41', '42', '43', '44', '45', '46', '47', '48',
+  '49', '4a', '4b', '4c', '4d', '4e', '4f', '50', '51', '52',
+  '53', '54', '55', '56', '57', '58', '59', '5a', '5b', '5c',
+  '5d', '5e', '5f', '60', '61', '62', '63');
+1 row inserted/updated/deleted
+ij> -- PASS:0524 If 1 row is inserted?
+   SELECT
+  C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14,
+  C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26,
+  C27, C28, C29, C30, C31, C32, C33, C34, C35, C36, C37, C38,
+  C39, C40, C41, C42, C43, C44, C45, C46, C47, C48, C49, C50,
+  C51, C52, C53, C54, C55, C56, C57, C58, C59, C60, C61, C62,
+  C63, C64, C65, C66, C67, C68, C69, C70, C71, C72, C73, C74,
+  C75, C76, C77, C78, C79, C80, C81, C82, C83, C84, C85, C86,
+  C87, C88, C89, C90, C91, C92, C93, C94, C95, C96, C97, C98,
+  C99, C100
+  FROM HU.T100;
+C1  |C2  |C3  |C4  |C5  |C6  |C7  |C8  |C9  |C10 |C11 |C12 |C13 |C14 |C15 |C16 |C17 |C18 |C19 |C20 |C21 |C22 |C23 |C24 |C25 |C26 |C27 |C28 |C29 |C30 |C31 |C32 |C33 |C34 |C35 |C36 |C37 |C38 |C39 |C40 |C41 |C42 |C43 |C44 |C45 |C46 |C47 |C48 |C49 |C50 |C51 |C52 |C53 |C54 |C55 |C56 |C57 |C58 |C59 |C60 |C61 |C62 |C63 |C64 |C65 |C66 |C67 |C68 |C69 |C70 |C71 |C72 |C73 |C74 |C75 |C76 |C77 |C78 |C79 |C80 |C81 |C82 |C83 |C84 |C85 |C86 |C87 |C88 |C89 |C90 |C91 |C92 |C93 |C94 |C95 |C96 |C97 |C98 |C99 |C100
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+00  |01  |02  |03  |04  |05  |06  |07  |08  |09  |0a  |0b  |0c  |0d  |0e  |0f  |10  |11  |12  |13  |14  |15  |16  |17  |18  |19  |1a  |1b  |1c  |1d  |1e  |1f  |20  |21  |22  |23  |24  |25  |26  |27  |28  |29  |2a  |2b  |2c  |2d  |2e  |2f  |30  |31  |32  |33  |34  |35  |36  |37  |38  |39  |3a  |3b  |3c  |3d  |3e  |3f  |40  |41  |42  |43  |44  |45  |46  |47  |48  |49  |4a  |4b  |4c  |4d  |4e  |4f  |50  |51  |52  |53  |54  |55  |56  |57  |58  |59  |5a  |5b  |5c  |5d  |5e  |5f  |60  |61  |62  |63  
+ij> -- PASS:0524 If 1 row selected?
+-- PASS:0524 AND C1 is '00'?
+-- PASS:0524 AND C50 is '31'?
+-- PASS:0524 AND C67 is '42'?
+-- PASS:0524 AND C100 is '63'?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0524 <<< END TEST
+-- *********************************************
+-- TEST:0525 FIPS sizing:  15 Table references in SQL statement!
+   DELETE FROM BASE_WCOV;
+0 rows inserted/updated/deleted
+ij> INSERT INTO BASE_WCOV VALUES (1);
+1 row inserted/updated/deleted
+ij> -- PASS:0525 If 1 row is inserted?
+   DELETE FROM HU.STAFF WHERE EMPNUM > 'E2';
+3 rows inserted/updated/deleted
+ij> -- PASS:0525 If 3 rows are deleted?
+-- next query restated with a cursor which we get only 1 row from; this is a sufficient demonstation
+-- of 15 table references.
+get cursor x as
+--O  SELECT COUNT(*) FROM
+  'SELECT * FROM
+  HU.WORKS T01, HU.PROJ T02, HU.STAFF T03,
+  USIG T04, U_SIG T05, BASE_VS1 T06, VS1 T07,
+  VS2 T08, HU.VSTAFF3 T09, BASE_WCOV T10
+  WHERE T08.C1 = 1 AND T03.EMPNUM > ''E1'' ';
+ij> next x;
+EM&|PN&|HOURS |PN&|PNAME               |PTYPE |BUDGET    |CITY           |EM&|EMPNAME             |GRADE|CITY           |C1         |C_1        |C1         |C_1        |C1         |C2         |C1         |C2         |C1         |EM&|EMPNAME             |GRADE|CITY           |C1         
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+E1 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          |E2 |Betty               |10   |Vienna         |0          |2          |4          |6          |0          |1          |0          |1          |1          |E1 |Alice               |12   |Deale          |1          
+ij> close x;
+ij> -- PASS:0525 If count = 46080?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0525 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml134.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml134.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml134.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,437 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML134  
+-- SQL Test Suite, V6.0, Interactive SQL, dml134.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- NO_TEST:0688 INFO_SCHEM:  Dynamic changes are visible!
+-- Testing dynamic SQL
+-- *********************************************
+-- TEST:0689 Many Trans SQL features #1:  inventory system!
+   CREATE TABLE COST_CODES (
+  COSTCODE INT NOT NULL UNIQUE,
+  COSTTEXT VARCHAR (50) NOT NULL);
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is created?
+   COMMIT;
+ij> CREATE TABLE CONDITION_CODES (
+  CONDCODE INT NOT NULL UNIQUE,
+  CONDTEXT VARCHAR (50) NOT NULL);
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is created?
+   COMMIT;
+ij> CREATE TABLE ITEM_CODES (
+  ITEMCODE INT NOT NULL PRIMARY KEY,
+  ITEMTEXT VARCHAR (50) NOT NULL);
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is created?
+   COMMIT;
+ij> CREATE TABLE INVENTORY (
+--O  COSTCODE INT REFERENCES COST_CODES (COSTCODE),
+--O  CONDCODE INT REFERENCES CONDITION_CODES (CONDCODE),
+--O  ITEMCODE INT REFERENCES ITEM_CODES);
+  COSTCODE INT ,
+  CONDCODE INT ,
+  ITEMCODE INT );
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is created?
+--O   COMMIT;
+--O   CREATE VIEW COMPLETES AS
+--O  SELECT ITEMTEXT, CONDTEXT, COSTTEXT
+--O    FROM INVENTORY NATURAL JOIN COST_CODES
+--O                   NATURAL JOIN CONDITION_CODES
+--O                   NATURAL JOIN ITEM_CODES;
+-- PASS:0689 If view is created?
+--O   COMMIT;
+--O   CREATE VIEW INCOMPLETES AS
+--O  SELECT ITEMTEXT, CONDTEXT, COSTTEXT
+--O    FROM INVENTORY, COST_CODES, CONDITION_CODES, ITEM_CODES
+--O      WHERE INVENTORY.ITEMCODE = ITEM_CODES.ITEMCODE
+--O        AND ((INVENTORY.CONDCODE = CONDITION_CODES.CONDCODE
+--O              AND INVENTORY.COSTCODE IS NULL
+--O              AND COST_CODES.COSTCODE IS NULL)
+--O          OR (INVENTORY.COSTCODE = COST_CODES.COSTCODE
+--O              AND INVENTORY.CONDCODE IS NULL
+--O              AND CONDITION_CODES.CONDCODE IS NULL));
+-- PASS:0689 If view is created?
+--O   COMMIT;
+--O   CREATE VIEW VERBOSE_INV AS
+--O  SELECT * FROM COMPLETES UNION SELECT * FROM INCOMPLETES;
+-- PASS:0689 If view is created?
+--O   COMMIT;
+   INSERT INTO COST_CODES VALUES (
+   NULL,
+   RTRIM ('No cost code assigned                             '));
+ERROR 23502: Column 'COSTCODE'  cannot accept a NULL value.
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO COST_CODES VALUES (
+   0,
+   RTRIM ('Expensive                                         '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO COST_CODES VALUES (
+   1,
+   RTRIM ('Absurdly expensive                                '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO COST_CODES VALUES (
+   2,
+   RTRIM ('Outrageously expensive                            '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO COST_CODES VALUES (
+   3,
+   RTRIM ('Robbery; a complete and total rip-off             '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO CONDITION_CODES VALUES (
+   NULL,
+   RTRIM ('Unknown                                           '));
+ERROR 23502: Column 'CONDCODE'  cannot accept a NULL value.
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO CONDITION_CODES VALUES (
+   1,
+   RTRIM ('Slightly used                                     '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO CONDITION_CODES VALUES (
+   2,
+   RTRIM ('Returned as defective                             '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO CONDITION_CODES VALUES (
+   3,
+   RTRIM ('Visibly damaged (no returns)                      '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO ITEM_CODES VALUES (
+   1,
+   RTRIM ('Lousy excuse for a tape deck                      '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO ITEM_CODES VALUES (
+   3,
+   RTRIM ('World''s worst VCR                                 '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO ITEM_CODES VALUES (
+   4,
+   RTRIM ('Irreparable intermittent CD player                '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO ITEM_CODES VALUES (
+   7,
+   RTRIM ('Self-destruct VGA monitor w/ critical need detect '));
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO INVENTORY VALUES (3, NULL, 4);
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO INVENTORY VALUES (1, 2, 3);
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO INVENTORY VALUES (2, 3, 7);
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO INVENTORY VALUES (0, 3, 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+   INSERT INTO INVENTORY VALUES (3, 1, 7);
+1 row inserted/updated/deleted
+ij> -- PASS:0689 If 1 row is inserted?
+--O   SELECT COUNT(*) FROM VERBOSE_INV;
+-- PASS:0689 If count = 5?
+--O   SELECT COUNT(*) FROM INCOMPLETES;
+-- PASS:0689 If count = 1?
+--O   SELECT COUNT(*) FROM COMPLETES;
+-- PASS:0689 If count = 4?
+--O   SELECT COUNT(*) FROM VERBOSE_INV
+--O  WHERE ITEMTEXT = 'Irreparable intermittent CD player'
+--O  AND CONDTEXT = 'Unknown'
+--O  AND COSTTEXT = 'Robbery; a complete and total rip-off';
+-- PASS:0689 If count = 1?
+--O   SELECT COUNT(*) FROM VERBOSE_INV
+--O  WHERE ITEMTEXT = 'Lousy excuse for a tape deck'
+--O  AND CONDTEXT = 'Visibly damaged (no returns)'
+--O  AND COSTTEXT = 'Expensive';
+-- PASS:0689 If count = 1?
+--O   SELECT COUNT(*) FROM VERBOSE_INV
+--O  WHERE ITEMTEXT =
+--O  'Self-destruct VGA monitor w/ critical need detect'
+--O  AND CONDTEXT = 'Slightly used'
+--O  AND COSTTEXT = 'Robbery; a complete and total rip-off';
+-- PASS:0689 If count = 1?
+--O   SELECT COUNT(*) FROM VERBOSE_INV
+--O  WHERE ITEMTEXT =
+--O  'Self-destruct VGA monitor w/ critical need detect'
+--O  AND CONDTEXT = 'Visibly damaged (no returns)'
+--O  AND COSTTEXT = 'Outrageously expensive';
+-- PASS:0689 If count = 1?
+--O   SELECT COUNT(*) FROM VERBOSE_INV
+--O  WHERE ITEMTEXT = 'World''s worst VCR'
+--O  AND CONDTEXT = 'Returned as defective'
+--O  AND COSTTEXT = 'Absurdly expensive';
+-- PASS:0689 If count = 1?
+   COMMIT;
+ij> --O   DROP TABLE INVENTORY CASCADE;
+   DROP TABLE INVENTORY ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table and 3 views are dropped?
+   COMMIT;
+ij> --O   DROP TABLE COST_CODES CASCADE;
+   DROP TABLE COST_CODES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is dropped?
+   COMMIT;
+ij> --O   DROP TABLE CONDITION_CODES CASCADE;
+   DROP TABLE CONDITION_CODES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is dropped?
+   COMMIT;
+ij> --O   DROP TABLE ITEM_CODES CASCADE;
+   DROP TABLE ITEM_CODES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0689 If table is dropped?
+   COMMIT;
+ij> -- END TEST >>> 0689 <<< END TEST
+-- *********************************************
+-- TEST:0690 Many Trans SQL features #2:  talk show schedule!
+--O   CREATE TABLE PORGRAM (
+--O  SEGNO    INT PRIMARY KEY,
+--O  STARTS   TIME NOT NULL,
+--O  LASTS    INTERVAL MINUTE TO SECOND NOT NULL,
+--O  SEGMENT  VARCHAR (50));
+-- PASS:0690 If table is created?
+--O   COMMIT;
+--O   CREATE VIEW GAPS AS
+--O  SELECT * FROM PORGRAM AS OUTERR WHERE NOT EXISTS
+--O    (SELECT * FROM PORGRAM AS INNERR WHERE OUTERR.STARTS
+--O    + OUTERR.LASTS = INNERR.STARTS);
+-- PASS:0690 If view is created?
+--O   COMMIT;
+--O   INSERT INTO PORGRAM VALUES (
+--O  1, TIME( '12:00:00'),
+--O  CAST ('10:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Monologue');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  2, TIME( '12:10:00'),
+--O  CAST ('04:30' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  3, TIME( '12:14:30'),
+--O  CAST ('12:30' AS INTERVAL MINUTE TO SECOND),
+--O  'Braunschweiger, plug Explosion Man II');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  4, TIME( '12:27:00'),
+--O  CAST ('03:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  5, TIME( '12:30:00'),
+--O  CAST ('00:10' AS INTERVAL MINUTE TO SECOND),
+--O  'Tease');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  6, TIME( '12:30:10'),
+--O  CAST ('03:50' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials, local news');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  7, TIME( '12:34:00'),
+--O  CAST ('11:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Spinal Tap, plug Asexual Harassment');
+--O-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  8, TIME( '12:45:00'),
+--O  CAST ('05:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  9, TIME( '12:50:00'),
+--O  CAST ('05:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Spinal Tap, play Ode du Toilette');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  10, TIME( '12:55:00'),
+--O  CAST ('03:00' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  11, TIME( '12:58:00'),
+--O  CAST ('00:10' AS INTERVAL MINUTE TO SECOND),
+--O  'Credits');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  12, TIME( '12:58:10'),
+--O  CAST ('01:50' AS INTERVAL MINUTE TO SECOND),
+--O  'Stupid commercials');
+-- PASS:0690 If 1 row is inserted?
+--O   INSERT INTO PORGRAM VALUES (
+--O  13, TIME( '13:00:00'),
+--O  CAST ('00:00' AS INTERVAL MINUTE TO SECOND),
+--O  'END');
+-- PASS:0690 If 1 row is inserted?
+--O   SELECT COUNT(*) FROM GAPS;
+-- PASS:0690 If count = 0?
+--O   UPDATE PORGRAM
+--O  SET STARTS = TIME( '12:14:30')
+--O  WHERE SEGNO = 7;
+-- PASS:0690 If 1 row is updated?
+--O   UPDATE PORGRAM SET STARTS = STARTS -
+--O  CAST ('01:30' AS INTERVAL MINUTE TO SECOND)
+--O  WHERE SEGNO >= 4 AND SEGNO <= 6;
+-- PASS:0690 If 3 rows are updated?
+--O   UPDATE PORGRAM SET STARTS = TIME( '12:28:40') +
+--O  CAST ('03:50' AS INTERVAL MINUTE TO SECOND)
+--O  WHERE SEGNO = 3;
+-- PASS:0690 If 1 row is updated?
+--O   SELECT COUNT(*) FROM GAPS;
+-- PASS:0690 If count = 0?
+--O  SELECT SEGNO FROM PORGRAM ORDER BY STARTS;
+-- PASS:0690 If 13 rows selected with SEGNO in the following order?
+-- PASS:0690      1
+-- PASS:0690      2
+-- PASS:0690      7
+-- PASS:0690      4
+-- PASS:0690      5
+-- PASS:0690      6
+-- PASS:0690      3
+-- PASS:0690      8
+-- PASS:0690      9
+-- PASS:0690     10
+-- PASS:0690     11
+-- PASS:0690     12
+-- PASS:0690     13
+--O   UPDATE PORGRAM SET LASTS = LASTS -
+--O  CAST (30 AS INTERVAL SECOND) WHERE SEGNO
+--O  = 10;
+-- PASS:0690 If 1 row is updated?
+--O   SELECT SEGNO FROM GAPS;
+-- PASS:0690 If 1 row selected and SEGNO = 10?
+--O   UPDATE PORGRAM SET LASTS = LASTS +
+--O  CAST ('30' AS INTERVAL SECOND) WHERE
+--O  SEGNO = 9;
+-- PASS:0690 If 1 row is updated?
+--O   UPDATE PORGRAM SET STARTS = STARTS +
+--O  CAST (30. AS INTERVAL SECOND) WHERE
+--O  SEGNO = 10;
+-- PASS:0690 If 1 row is updated?
+--O   SELECT COUNT(*) FROM GAPS;
+-- PASS:0690 If count = 0?
+--O   COMMIT;
+--O   DROP TABLE PORGRAM CASCADE;
+-- PASS:0690 If table and view are dropped?
+--O   COMMIT;
+-- END TEST >>> 0690 <<< END TEST
+-- *********************************************
+-- TEST:0691 INFO_SCHEM:  SQLSTATEs for length overruns!
+   CREATE TABLE LONG1 (
+  C1 INT,
+  CHECK (
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL));
+0 rows inserted/updated/deleted
+ij> -- PASS:0691 If WARNING:  search condition too long for information schema?
+-- PASS:0691 OR successful completion?
+   ROLLBACK WORK;
+ij> CREATE VIEW LONG2 AS
+  SELECT * FROM USIG WHERE
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL AND
+C1 IS NOT NULL AND C1 IS NOT NULL AND C1 IS NOT NULL;
+0 rows inserted/updated/deleted
+ij> -- PASS:0691 If WARNING:  query expression too long for information schema?
+-- PASS:0691 OR successful completion?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0691 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml141.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml141.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml141.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,41 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML141  
+-- SQL Test Suite, V6.0, Interactive SQL, dml141.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+-- TEST:0514 SQLSTATE 23502: integrity constraint violation!
+-- NOT NULL constraint violated
+   INSERT INTO HU.STAFF VALUES (NULL, NULL, NULL, NULL);
+ERROR 23502: Column 'EMPNUM'  cannot accept a NULL value.
+ij> -- PASS:0514 If ERROR, integrity constraint violation, 0 rows inserted?
+-- UNIQUE constraint violated
+   INSERT INTO HU.STAFF VALUES ('E1', 'Agnetha', 12, 'Paris');
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'xxxxGENERATED-IDxxxx' defined on 'STAFF'.
+ij> -- PASS:0514 If ERROR, integrity constraint violation, 0 rows inserted?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0514 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml144.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml144.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml144.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,216 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML144  
+-- SQL Test Suite, V6.0, Interactive SQL, dml144.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0834 <length expression> (static)!
+   CREATE TABLE GRUB (C1 VARCHAR (10));
+0 rows inserted/updated/deleted
+ij> -- PASS:0834 If table is created?
+   COMMIT WORK;
+ij> SELECT LENGTH (EMPNAME)
+   FROM HU.STAFF WHERE GRADE = 10;
+1          
+-----------
+20         
+ij> -- PASS:0834 If 1 row selected and value is 20?
+   SELECT LENGTH ('HI' || 'THERE')
+   FROM HU.ECCO;
+1          
+-----------
+7          
+ij> -- PASS:0834 If 1 row selected and value is 7?
+   INSERT INTO GRUB VALUES ('Hi  ');
+1 row inserted/updated/deleted
+ij> -- PASS:0834 If 1 row is inserted?
+   SELECT LENGTH (C1)
+   FROM GRUB;
+1          
+-----------
+4          
+ij> -- PASS:0834 If 1 row selected and value is 4?
+-- following is not supported in derby
+--   SELECT OCTET_LENGTH (C1)
+--  FROM GRUB;
+-- PASS:0834 If 1 row selected and value is > 2?
+   UPDATE GRUB SET C1 = NULL;
+1 row inserted/updated/deleted
+ij> -- PASS:0834 If 1 row is updated?
+   SELECT LENGTH (C1)
+  FROM GRUB;
+1          
+-----------
+NULL       
+ij> -- PASS:0834 If 1 row selected and value is NULL?
+-- following is not supported in derby
+--   SELECT OCTET_LENGTH (C1)
+--  FROM GRUB;
+-- PASS:0834 If 1 row selected and value is NULL?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE GRUB CASCADE;
+   DROP TABLE GRUB ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0834 <<< END TEST
+-- *********************************************
+-- TEST:0835 <character substring function> (static)!
+   CREATE TABLE MOREGRUB (C1 VARCHAR (10), ID INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0835 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW X4 (S1, S2, ID) AS
+  SELECT SUBSTR (C1, 6),
+         SUBSTR (C1, 2, 4), ID
+  FROM MOREGRUB;
+0 rows inserted/updated/deleted
+ij> -- PASS:0835 If view is created?
+   COMMIT WORK;
+ij> SELECT SUBSTR (CITY, 4, 10)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1         
+----------
+on        
+ij> -- PASS:0835 If 1 row selected and value is 'on        '?
+-- NOTE:0835 Right truncation subtest deleted.
+   SELECT SUBSTR (CITY, 4, -1)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1              
+---------------
+ERROR 22011: The second or third argument of the SUBSTR function is out of range.
+ij> -- PASS:0835 If ERROR, substring error, 0 rows selected?
+   SELECT SUBSTR (CITY, 0, 10)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1         
+----------
+ERROR 22011: The second or third argument of the SUBSTR function is out of range.
+ij> -- PASS:0835 If 1 row selected and value is 'Akron     '?
+-- NOTE:0835 Host language variable subtest deleted.
+   SELECT SUBSTR (CITY, 1, 1)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1   
+----
+A   
+ij> -- PASS:0835 If 1 row selected and value is 'A'?
+   SELECT SUBSTR (CITY, 1, 0)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1              
+---------------
+ij> -- PASS:0835 If 1 row selected and value is ''?
+   SELECT SUBSTR (CITY, 12, 1)
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1   
+----
+ij> -- PASS:0835 If 1 row selected and value is ''?
+   INSERT INTO MOREGRUB VALUES ('Pretzels', 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0835 If 1 row is inserted?
+   INSERT INTO MOREGRUB VALUES (NULL, 2);
+1 row inserted/updated/deleted
+ij> -- PASS:0835 If 1 row is inserted?
+   INSERT INTO MOREGRUB VALUES ('Chips', 3);
+1 row inserted/updated/deleted
+ij> -- PASS:0835 If 1 row is inserted?
+   SELECT S1 FROM X4 WHERE ID = 1;
+S1        
+----------
+els       
+ij> -- PASS:0835 If 1 row selected and S1 = 'els'?
+   SELECT S1 FROM X4 WHERE ID = 3;
+S1        
+----------
+ij> -- PASS:0835 If 1 row selected and S1 =  ''?
+   SELECT S2 FROM X4 WHERE ID = 1;
+S2  
+----
+retz
+ij> -- PASS:0835 If 1 row selected and S2 = 'retz'?
+   SELECT S2 FROM X4 WHERE ID = 3;
+S2  
+----
+hips
+ij> -- PASS:0835 If 1 row selected and S2 = 'hips'?
+   SELECT SUBSTR (C1, ID)
+  FROM MOREGRUB
+  WHERE C1 LIKE 'Ch%';
+1         
+----------
+ips       
+ij> -- PASS:0835 If 1 row selected and value is 'ips'?
+   SELECT SUBSTR (C1, 1, ID)
+  FROM MOREGRUB
+  WHERE C1 LIKE 'Ch%';
+1         
+----------
+Chi       
+ij> -- PASS:0835 If 1 row selected and value is 'Chi'?
+-- NOTE:0835 Host language variable subtest deleted.
+   SELECT S1 FROM X4 WHERE ID = 2;
+S1        
+----------
+NULL      
+ij> -- PASS:0835 If 1 row selected and S1 is NULL?
+   DELETE FROM MOREGRUB;
+3 rows inserted/updated/deleted
+ij> INSERT INTO MOREGRUB VALUES ('Tacos', NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:0835 If 1 row is inserted?
+   SELECT SUBSTR (C1, 1, ID)
+   FROM MOREGRUB;
+1         
+----------
+NULL      
+ij> -- PASS:0835 If 1 row selected and value is NULL?
+   SELECT SUBSTR (C1, ID, 1)
+   FROM MOREGRUB;
+1   
+----
+NULL
+ij> -- PASS:0835 If 1 row selected and value is NULL?
+   UPDATE MOREGRUB SET C1 = NULL;
+1 row inserted/updated/deleted
+ij> SELECT SUBSTR (C1, ID, ID)
+   FROM MOREGRUB;
+1         
+----------
+NULL      
+ij> -- PASS:0835 If 1 row selected and value is NULL?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE MOREGRUB CASCADE;
+   drop view x4;
+0 rows inserted/updated/deleted
+ij> DROP TABLE MOREGRUB ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0835 <<< END TEST
+-- *********************************************
+-- TEST:0839 Composed <length expression> and SUBSTR!
+   SELECT LENGTH (SUBSTR
+  (CITY, 4, 4))
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1          
+-----------
+4          
+ij> -- PASS:0839 If 1 row selected and value is 4?
+   SELECT LENGTH (SUBSTR
+  (EMPNUM, 1))
+  FROM HU.STAFF WHERE EMPNAME = 'Ed';
+1          
+-----------
+3          
+ij> -- PASS:0839 If 1 row selected and value is 3?
+   COMMIT WORK;
+ij> -- END TEST >>> 0839 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml147.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml147.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml147.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,222 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML147  
+-- SQL Test Suite, V6.0, Interactive SQL, dml147.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER            
+--O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0840 Roll back schema manipulation !
+   CREATE TABLE NOT_THERE (C1 CHAR (10));
+0 rows inserted/updated/deleted
+ij> -- PASS:0840 If table is created?
+   ROLLBACK WORK;
+ij> INSERT INTO NOT_THERE VALUES ('1234567890');
+ERROR 42X05: Table 'NOT_THERE' does not exist.
+ij> -- PASS:0840 If ERROR, syntax error/access violation, 0 rows selected?
+   ROLLBACK WORK;
+ij> CREATE VIEW NOT_HERE AS
+      SELECT * FROM USIG;
+0 rows inserted/updated/deleted
+ij> -- PASS:0840 If view is created?
+   ROLLBACK WORK;
+ij> SELECT COUNT (*) FROM NOT_HERE;
+ERROR 42X05: Table 'NOT_HERE' does not exist.
+ij> -- PASS:0840 If ERROR, syntax error/access violation, 0 rows selected?
+   ROLLBACK WORK;
+ij> ALTER TABLE USIG
+  ADD COLUMN NUL INT;
+0 rows inserted/updated/deleted
+ij> -- PASS:0840 If column is added?
+   ROLLBACK WORK;
+ij> SELECT COUNT (*)
+  FROM USIG WHERE NUL IS NULL;
+ERROR 42X04: Column 'NUL' is not in any table in the FROM list or it appears within a join specification and is outside the scope of the join specification or it appears in a HAVING clause and is not in the GROUP BY list.  If this is a CREATE or ALTER TABLE statement then 'NUL' is not a column in the target table.
+ij> -- PASS:0840 If ERROR, syntax error/access violation, 0 rows selected?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE USIG CASCADE;
+   DROP TABLE USIG ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0840 If table is dropped?
+   ROLLBACK WORK;
+ij> SELECT COUNT(*)
+  FROM U_SIG;
+1          
+-----------
+2          
+ij> -- PASS:0840 If count = 2?
+   ROLLBACK WORK;
+ij> SELECT COUNT(*)
+  FROM USIG;
+1          
+-----------
+2          
+ij> -- PASS:0840 If count = 2?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0840 <<< END TEST
+-- *********************************************
+-- TEST:0841 Multiple-join and default order of joins !
+-- setup
+   DELETE FROM HU.STAFF4;
+0 rows inserted/updated/deleted
+ij> INSERT INTO HU.STAFF4
+      SELECT * FROM HU.STAFF3
+         WHERE EMPNUM > 'E3';
+2 rows inserted/updated/deleted
+ij> --O   SELECT EMPNUM FROM
+   SELECT a.EMPNUM FROM
+--O      HU.STAFF3 NATURAL LEFT JOIN HU.STAFF NATURAL INNER JOIN HU.STAFF4
+      HU.STAFF3 a, HU.staff b, HU.staff4 c 
+	where a.empnum = b.empnum and b.empnum = c.empnum
+      ORDER BY EMPNUM DESC;
+EM&
+---
+E5 
+E4 
+ij> -- PASS:0841 If 2 rows selected?
+-- PASS:0841 If ordered EMPNUM values are: E5, E4 ?
+--O   SELECT EMPNUM FROM
+--O      (HU.STAFF3 NATURAL LEFT JOIN HU.STAFF) NATURAL INNER JOIN HU.STAFF4
+--O       ORDER BY EMPNUM ASC;
+-- PASS:0841 If 2 rows selected?
+-- PASS:0841 If ordered EMPNUM values are: E4, E5 ?
+--O   SELECT EMPNUM FROM
+--O      HU.STAFF3 NATURAL LEFT JOIN (HU.STAFF NATURAL INNER JOIN HU.STAFF4)
+--O      ORDER BY EMPNUM;
+--O      ;
+-- PASS:0841 If 5 rows selected?
+-- PASS:0841 If ordered EMPNUM values are: E1, E2, E3, E4, E5 ?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0841 <<< END TEST
+-- *********************************************
+-- TEST:0842 Multi-column joins !
+-- setup
+   CREATE TABLE STAFF66 (
+     SALARY   INTEGER,
+     EMPNAME CHAR(20),
+     GRADE   DECIMAL,
+     EMPNUM  CHAR(3));
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- setup
+   INSERT INTO STAFF66
+      SELECT GRADE*1000, EMPNAME, GRADE, EMPNUM
+         FROM HU.STAFF3 WHERE EMPNUM > 'E2';
+3 rows inserted/updated/deleted
+ij> -- PASS:0842 If 3 rows inserted ?
+   UPDATE HU.STAFF3 SET EMPNUM = 'E6' WHERE EMPNUM = 'E5';
+1 row inserted/updated/deleted
+ij> -- PASS:0842 If 1 row updated ?
+   UPDATE HU.STAFF3 SET EMPNAME = 'Ali' WHERE GRADE = 12;
+2 rows inserted/updated/deleted
+ij> -- PASS:0842 If 2 rows updated ?
+-- FULL OUTER JOIN of tables with unique data in the joined column
+--O   SELECT EMPNUM, CITY, SALARY
+--O      FROM HU.STAFF3 LEFT JOIN STAFF66 USING (EMPNUM)
+--O   UNION
+--O   SELECT EMPNUM, CITY, SALARY
+--O      FROM HU.STAFF3 RIGHT JOIN STAFF66 USING (EMPNUM)
+--O      ORDER BY EMPNUM;
+-- PASS:0842 If 6 rows selected with ordered rows and column values ?
+-- PASS:0842    E1   Deale   NULL   ?
+-- PASS:0842    E2   Vienna  NULL   ?
+-- PASS:0842    E3   Vienna  13000  ?
+-- PASS:0842    E4   Deale   12000  ?
+-- PASS:0842    E5   NULL    13000  ?
+-- PASS:0842    E6   Akron   NULL   ?
+-- 7.5 SR 6 d
+-- table STAFF66 has 3 rows, only 1 matching on all columns
+-- this is a 3-column join:
+   SELECT * FROM
+--O      STAFF66 NATURAL INNER JOIN HU.STAFF3;
+      STAFF66 a, HU.staff3 b where a.empnum = b.empnum
+	and a.grade = b.grade
+	and a.empname = b.empname;
+SALARY     |EMPNAME             |GRADE |EMP&|EM&|EMPNAME             |GRADE|CITY           
+-------------------------------------------------------------------------------------------
+13000      |Carmen              |13    |E3  |E3 |Carmen              |13   |Vienna         
+ij> -- PASS:0842 If 1 row selected?
+-- PASS:0842 If column values are in the exact order: ?
+-- PASS:0842 EMPNAME=Carmen,GRADE=13,EMPNUM=E3,SALARY=13000,CITY=Vienna?
+-- table STAFF66 has 3 rows, only 1 matching on all columns
+-- this is a 3-column join, preserving HU.STAFF3:
+--O   SELECT EMPNUM, EMPNAME, SALARY FROM
+--O      HU.STAFF3 NATURAL LEFT OUTER JOIN STAFF66
+--O      WHERE EMPNUM > 'E1'
+--O      ORDER BY EMPNUM ASC;
+-- PASS:0842 If 4 rows selected with ordered rows and column values ?
+-- PASS:0842    E2   Betty    NULL  ?
+-- PASS:0842    E3   Carmen   13000 ?
+-- PASS:0842    E4   Ali      NULL  ?
+-- PASS:0842    E6   Ed       NULL  ?
+-- table HU.STAFF has 5 rows, only 3 matching on all columns
+-- this is a 3-column join, preserving HU.STAFF:
+--O   SELECT EMPNUM, EMPNAME, SALARY FROM
+--O      STAFF66 NATURAL RIGHT OUTER JOIN HU.STAFF
+--O      WHERE EMPNUM > 'E1'
+--O      ORDER BY EMPNUM DESC;
+-- PASS:0842 If 4 rows selected with ordered rows and column values ?
+-- PASS:0842    E5  Ed      13000  ?
+-- PASS:0842    E4  Don     12000  ?
+-- PASS:0842    E3  Carmen  13000  ?
+-- PASS:0842    E2  Betty   NULL   ?
+-- table HU.STAFF has 5 rows, only 3 matching on all columns
+-- ordinal position is determined by order in T1, not USING list
+-- REF:  7.5 SR 6 d
+-- this is a 3-column join, preserving HU.STAFF:
+--O   SELECT * FROM
+--O      STAFF66 RIGHT JOIN HU.STAFF USING ( GRADE, EMPNUM, EMPNAME)
+--O      WHERE EMPNUM > 'E1'
+--O      ORDER BY EMPNUM;
+-- PASS:0842 If 4 rows selected with ordered rows and column values ?
+-- PASS:0842    Betty    10   E2   NULL    Vienna ?
+-- PASS:0842    Carmen   13   E3   13000   Vienna ?
+-- PASS:0842    Don      12   E4   12000   Deale  ?
+-- PASS:0842    Ed       13   E5   13000   Akron  ?
+-- table STAFF66 has 3 rows, with 2 matching on named columns
+-- this is a 2-column join, preserving HU.STAFF3:
+--O   SELECT * FROM
+--O      HU.STAFF3 LEFT JOIN STAFF66 USING (GRADE, EMPNUM)
+--O      WHERE EMPNUM > 'E1'
+--O      ORDER BY EMPNUM ASC;
+-- PASS:0842 If 4 rows selected with ordered rows and column values ?
+-- PASS:0842    E2  10  Betty   Vienna    NULL    NULL   ?
+-- PASS:0842    E3  13  Carmen  Vienna    13000   Carmen ?
+-- PASS:0842    E4  12  Ali     Deale     12000   Don    ?
+-- PASS:0842    E6  13  Ed      Akron     NULL    NULL   ?
+-- similar to above, except for explicit names of columns
+--O   SELECT staff3.EMPNUM, staff3.GRADE, HU.STAFF3.EMPNAME, CITY,
+   SELECT HU.staff3.EMPNUM, HU.staff3.GRADE, HU.STAFF3.EMPNAME, CITY,
+     SALARY, STAFF66.EMPNAME FROM
+--O      HU.STAFF3 LEFT JOIN STAFF66 USING (GRADE, EMPNUM)
+--O      WHERE EMPNUM = 'E3';
+      HU.STAFF3, STAFF66 where HU.staff3.GRADE = staff66.grade and  HU.staff3.EMPNUM = staff66.empnum
+      and HU.staff3.EMPNUM = 'E3';
+EM&|GRADE|EMPNAME             |CITY           |SALARY     |EMPNAME             
+-------------------------------------------------------------------------------
+E3 |13   |Carmen              |Vienna         |13000      |Carmen              
+ij> -- PASS:0842 If 1 row selected with ordered column values?
+-- PASS:0842    E3  13  Carmen  Vienna  13000  Carmen    ?
+-- REF: 7.5 GR 1 d ii
+-- this is a cartesian product
+--O   SELECT COUNT (*) FROM STAFF66 NATURAL RIGHT JOIN HU.PROJ;
+   SELECT count (*) FROM STAFF66 , HU.PROJ;
+1          
+-----------
+18         
+ij> -- PASS:0842 If count = 18?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE STAFF66 CASCADE;
+   DROP TABLE STAFF66 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0842 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml148.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml148.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml148.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,255 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML148  
+-- SQL Test Suite, V6.0, Interactive SQL, dml148.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0843 Ordering of column names in joins !
+-- REFERENCE:  7.5 sr 6 f
+-- NOTE:0843 ordering of column names in NATURAL JOIN
+   SELECT * 
+--O     FROM HU.WORKS NATURAL LEFT JOIN HU.PROJ
+     FROM HU.WORKS JOIN HU.PROJ on (HU.WORKS.pnum=HU.PROJ.pnum)
+--O     FROM WORKS , PROJ where works.pnum = proj.pnum
+     ORDER BY EMPNUM DESC, HU.PROJ.PNUM;
+EM&|PN&|HOURS |PN&|PNAME               |PTYPE |BUDGET    |CITY           
+-------------------------------------------------------------------------
+E4 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E4 |P4 |40    |P4 |SDP                 |Design|20000     |Deale          
+E4 |P5 |80    |P5 |IRM                 |Test  |10000     |Vienna         
+E3 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E2 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E2 |P2 |80    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E1 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P3 |80    |P3 |SDP                 |Test  |30000     |Tampa          
+E1 |P4 |20    |P4 |SDP                 |Design|20000     |Deale          
+E1 |P5 |12    |P5 |IRM                 |Test  |10000     |Vienna         
+E1 |P6 |12    |P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:0843 If 12 rows selected?
+-- PASS:0843 If ordered row and column values for first two rows are: ?
+-- PASS:0843    P2  E4  20  CALM  Code    30000  Vienna ?
+-- PASS:0843    P4  E4  40  SDP   Design  20000  Deale  ?
+-- NOTE:0843 ordering of column names in JOIN ... ON
+   SELECT * 
+    FROM HU.WORKS JOIN HU.PROJ ON (HU.WORKS.PNUM=HU.PROJ.PNUM)
+    ORDER BY EMPNUM DESC, HU.PROJ.PNUM;
+EM&|PN&|HOURS |PN&|PNAME               |PTYPE |BUDGET    |CITY           
+-------------------------------------------------------------------------
+E4 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E4 |P4 |40    |P4 |SDP                 |Design|20000     |Deale          
+E4 |P5 |80    |P5 |IRM                 |Test  |10000     |Vienna         
+E3 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E2 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E2 |P2 |80    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E1 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P3 |80    |P3 |SDP                 |Test  |30000     |Tampa          
+E1 |P4 |20    |P4 |SDP                 |Design|20000     |Deale          
+E1 |P5 |12    |P5 |IRM                 |Test  |10000     |Vienna         
+E1 |P6 |12    |P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:0843 If 12 rows selected?
+-- PASS:0843 If ordered row and column values for first two rows are: ?
+-- PASS:0843    P2  E4  20  CALM  Code    30000  Vienna ?
+-- PASS:0843    P4  E4  40  SDP   Design  20000  Deale  ?
+-- NOTE:0843 Same answer as above
+-- NOTE:0843 ordering of column names in NATURAL JOIN
+-- REFERENCE:  7.5 sr 5
+    SELECT * 
+--O      FROM HU.WORKS RIGHT JOIN HU.PROJ
+--O      ON HU.WORKS.PNUM = HU.PROJ.PNUM
+      FROM HU.WORKS JOIN HU.PROJ
+      ON HU.PROJ.PNUM = HU.WORKS.PNUM
+      ORDER BY 1 DESC, 2;
+EM&|PN&|HOURS |PN&|PNAME               |PTYPE |BUDGET    |CITY           
+-------------------------------------------------------------------------
+E4 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E4 |P4 |40    |P4 |SDP                 |Design|20000     |Deale          
+E4 |P5 |80    |P5 |IRM                 |Test  |10000     |Vienna         
+E3 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E2 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E2 |P2 |80    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P1 |40    |P1 |MXSS                |Design|10000     |Deale          
+E1 |P2 |20    |P2 |CALM                |Code  |30000     |Vienna         
+E1 |P3 |80    |P3 |SDP                 |Test  |30000     |Tampa          
+E1 |P4 |20    |P4 |SDP                 |Design|20000     |Deale          
+E1 |P5 |12    |P5 |IRM                 |Test  |10000     |Vienna         
+E1 |P6 |12    |P6 |PAYR                |Design|50000     |Deale          
+ij> -- PASS:0843 If 12 rows selected?
+-- PASS:0843 If ordered row and column values for first two rows are: ?
+-- PASS:0843    E4  P2  20  P2  CALM  Code    30000  Vienna ?
+-- PASS:0843    E4  P4  40  P4  SDP   Design  20000  Deale  ?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 0843 <<< END TEST
+-- *********************************************
+-- TEST:0844 Outer join predicates !
+   CREATE TABLE SEVEN_TYPES (
+       T_INT     INTEGER,
+       T_CHAR    CHAR(10),
+       T_SMALL   SMALLINT,
+       T_DECIMAL DECIMAL(10,2),
+       T_REAL    REAL,
+       T_FLOAT   FLOAT,
+       T_DOUBLE  DOUBLE PRECISION);
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- setup
+   DELETE FROM SEVEN_TYPES;
+0 rows inserted/updated/deleted
+ij> INSERT INTO SEVEN_TYPES VALUES (1, 'E1',-11,   2,  3,   4,   5);
+1 row inserted/updated/deleted
+ij> INSERT INTO SEVEN_TYPES VALUES (2, 'E2', -5,  13, 33,-444, -55);
+1 row inserted/updated/deleted
+ij> INSERT INTO SEVEN_TYPES VALUES (3, 'E6', -3,-222,333,  44, 555);
+1 row inserted/updated/deleted
+ij> INSERT INTO SEVEN_TYPES VALUES (12,'DUP', 0,   0, -1,   1,1E+1);
+1 row inserted/updated/deleted
+ij> INSERT INTO SEVEN_TYPES VALUES (12,'DUP', 0,   0, -1,   1,1E+1);
+1 row inserted/updated/deleted
+ij> --
+-- NOTE:0844 BETWEEN predicate
+   SELECT EMPNAME, CITY, T_DECIMAL
+     FROM HU.STAFF LEFT OUTER JOIN SEVEN_TYPES 
+        ON -GRADE / 11 BETWEEN T_REAL AND T_DECIMAL
+     ORDER BY EMPNAME;
+EMPNAME             |CITY           |T_DECIMAL    
+--------------------------------------------------
+Alice               |Deale          |NULL         
+Betty               |Vienna         |0.00         
+Betty               |Vienna         |0.00         
+Carmen              |Vienna         |NULL         
+Don                 |Deale          |NULL         
+Ed                  |Akron          |NULL         
+ij> -- PASS:0844 If 6 rows selected with ordered rows and column values ?
+-- PASS:0844    Alice  Deale  NULL  ?
+-- PASS:0844    Betty  Vienna    0  ?
+-- PASS:0844    Betty  Vienna    0  ?
+-- PASS:0844    Carmen Vienna NULL  ?
+-- PASS:0844    Don    Deale  NULL  ?
+-- PASS:0844    Ed     Akron  NULL  ?
+-- NOTE:0844 comparable CHAR types
+-- NOTE:0844 IN predicate, with literals and variable value
+   SELECT T_INT, T_CHAR, EMPNAME, EMPNUM, GRADE 
+--O     FROM SEVEN_TYPES RIGHT JOIN HU.STAFF
+    FROM SEVEN_TYPES right outer JOIN HU.STAFF
+       ON GRADE IN (10, 11, 13) AND EMPNUM = T_CHAR
+   ORDER BY EMPNAME, T_INT;
+T_INT      |T_CHAR    |EMPNAME             |EMP&|GRADE
+------------------------------------------------------
+NULL       |NULL      |Alice               |E1  |12   
+2          |E2        |Betty               |E2  |10   
+NULL       |NULL      |Carmen              |E3  |13   
+NULL       |NULL      |Don                 |E4  |12   
+NULL       |NULL      |Ed                  |E5  |13   
+ij> -- PASS:0844 If 5 rows selected with ordered rows and column values ?
+-- PASS:0844    NULL NULL Alice  E1 12  ?
+-- PASS:0844       2 E2   Betty  E2 10  ?
+-- PASS:0844    NULL NULL Carmen E3 13  ?
+-- PASS:0844    NULL NULL Don    E4 12  ?
+-- PASS:0844    NULL NULL Ed     E5 13  ?
+   SELECT HU.STAFF.CITY,EMPNAME,PNAME,BUDGET
+--O     FROM HU.STAFF LEFT JOIN HU.PROJ
+     FROM HU.STAFF left outer JOIN HU.PROJ
+       ON HU.STAFF.CITY = HU.PROJ.CITY
+      AND HU.STAFF.CITY <> 'Vienna'
+      AND EMPNAME <> 'Don'
+     WHERE BUDGET > 15000 OR BUDGET IS NULL
+--O   ORDER BY HU.STAFF.CITY, EMPNAME, BUDGET;
+   ORDER BY 1,2,4;
+CITY           |EMPNAME             |PNAME               |BUDGET    
+--------------------------------------------------------------------
+Akron          |Ed                  |NULL                |NULL      
+Deale          |Alice               |SDP                 |20000     
+Deale          |Alice               |PAYR                |50000     
+Deale          |Don                 |NULL                |NULL      
+Vienna         |Betty               |NULL                |NULL      
+Vienna         |Carmen              |NULL                |NULL      
+ij> -- PASS:0844 If 6 rows selected with ordered rows and column values ?
+-- PASS:0844    Akron   Ed     NULL NULL   ?
+-- PASS:0844    Deale   Alice  SDP  20000  ?
+-- PASS:0844    Deale   Alice  PAYR 50000  ?
+-- PASS:0844    Deale   Don    NULL NULL   ?
+-- PASS:0844    Vienna  Betty  NULL NULL   ?
+-- PASS:0844    Vienna  Carmen NULL NULL   ?
+-- NOTE:0844 difference between WHERE and ON
+   SELECT HU.STAFF.CITY,EMPNAME,PNAME,BUDGET
+--O     FROM HU.STAFF LEFT JOIN HU.PROJ
+     FROM HU.STAFF left outer JOIN HU.PROJ
+       ON HU.STAFF.CITY = HU.PROJ.CITY
+      AND HU.STAFF.CITY <> 'Vienna'
+     WHERE (BUDGET > 15000 OR BUDGET IS NULL)
+      AND EMPNAME <> 'Don'
+--O   ORDER BY HU.STAFF.CITY, EMPNAME, BUDGET;
+   ORDER BY 1,2,4;
+CITY           |EMPNAME             |PNAME               |BUDGET    
+--------------------------------------------------------------------
+Akron          |Ed                  |NULL                |NULL      
+Deale          |Alice               |SDP                 |20000     
+Deale          |Alice               |PAYR                |50000     
+Vienna         |Betty               |NULL                |NULL      
+Vienna         |Carmen              |NULL                |NULL      
+ij> -- PASS:0844 If 5 rows selected with ordered rows and column values ?
+-- PASS:0844    Akron   Ed     NULL NULL   ?
+-- PASS:0844    Deale   Alice  SDP  20000  ?
+-- PASS:0844    Deale   Alice  PAYR 50000  ?
+-- PASS:0844    Vienna  Betty  NULL NULL   ?
+-- PASS:0844    Vienna  Carmen NULL NULL   ?
+-- NOTE:0844 correlation name with self-JOIN
+   SELECT XX.T_INT, YY.T_INT
+    FROM SEVEN_TYPES XX RIGHT OUTER JOIN SEVEN_TYPES YY
+       ON XX.T_INT = YY.T_INT +1
+--O   ORDER BY YY.T_INT;
+   ORDER BY 2;
+T_INT      |T_INT      
+-----------------------
+2          |1          
+3          |2          
+NULL       |3          
+NULL       |12         
+NULL       |12         
+ij> -- PASS:0844 If 5 rows selected with ordered rows and column values ?
+-- PASS:0844    2      1  ?
+-- PASS:0844    3      2  ?
+-- PASS:0844    NULL   3  ?
+-- PASS:0844    NULL  12  ?
+-- PASS:0844    NULL  12  ?
+-- NOTE:0844 nested booleans
+-- NOTE:0844 data types are merely comparable
+   SELECT GRADE, T_FLOAT, T_DOUBLE
+--O     FROM HU.STAFF LEFT JOIN SEVEN_TYPES T7
+     FROM HU.STAFF left outer JOIN SEVEN_TYPES T7
+       ON GRADE * -40 > T7.T_FLOAT
+       OR (T_DOUBLE -542.5 < GRADE AND T_DOUBLE -541.5 > GRADE)
+   ORDER BY GRADE;
+GRADE|T_FLOAT               |T_DOUBLE              
+---------------------------------------------------
+10   |-444.0                |-55.0                 
+12   |NULL                  |NULL                  
+12   |NULL                  |NULL                  
+13   |44.0                  |555.0                 
+13   |44.0                  |555.0                 
+ij> -- PASS:0844 If 5 rows selected with ordered rows and column values ?
+-- PASS:0844    10 -444 (approximately)  -55 (approximately) ?
+-- PASS:0844    12 NULL                 NULL                 ?
+-- PASS:0844    12 NULL                 NULL                 ?
+-- PASS:0844    13   44 (approximately)  555 (approximately) ?
+-- PASS:0844    13   44 (approximately)  555 (approximately) ?
+ROLLBACK WORK;
+ij> --ODROP TABLE SEVEN_TYPES CASCADE;
+DROP TABLE SEVEN_TYPES ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0844 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml149.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml149.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml149.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,232 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML149  
+-- SQL Test Suite, V6.0, Interactive SQL, dml149.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0561 Double SET TRANSACTION!
+   ROLLBACK WORK;
+ij> -- PASS:0561 If successful completion?
+--O   SET TRANSACTION READ ONLY;
+-- PASS:0561 If successful completion?
+--O   SET TRANSACTION READ WRITE;
+-- PASS:0561 If successful completion?
+--O   INSERT INTO USIG VALUES (10, 20);
+-- PASS:0561 If 1 row is inserted?
+--O   ROLLBACK WORK;
+-- PASS:0561 If successful completion?
+--O   SET TRANSACTION READ WRITE;
+-- PASS:0561 If successful completion?
+--O   SET TRANSACTION READ ONLY;
+-- PASS:0561 If successful completion?
+--O   INSERT INTO USIG VALUES (10, 20);
+-- PASS:0561 If ERROR, invalid transaction state, 0 rows inserted?
+--O   ROLLBACK WORK;
+-- PASS:0561 If successful completion?
+-- END TEST >>> 0561 <<< END TEST
+-- *********************************************
+-- TEST:0846 Feature 20, CAST functions (static) nits!
+   CREATE TABLE NO_DUCK (
+  GOOSE       NUMERIC (4, 2),
+  ALBATROSS   FLOAT,
+  SEAGULL     INT,
+  OSPREY      CHAR (10));
+0 rows inserted/updated/deleted
+ij> -- PASS:0846 If table is created?
+   COMMIT WORK;
+ij> -- NOTE:0846 CAST (100 AS NUMERIC (2)) loses the leading significant digit
+   SELECT CAST (100 AS NUMERIC (2))
+  FROM HU.ECCO;
+1   
+----
+ERROR 22003: The resulting value is outside the range for the data type DECIMAL/NUMERIC(2,0).
+ij> -- PASS:0846 If ERROR, numeric value out of range, 0 rows selected?
+   SELECT CAST (100.5 AS DECIMAL (3))
+  FROM HU.ECCO;
+1   
+----
+100 
+ij> -- PASS:0846 If 1 row selected and value is 100 or 101?
+   INSERT INTO NO_DUCK VALUES (
+  CAST ('  23.23 ' AS NUMERIC (4, 2)), 1.57E-1, -9, 'QUACK');
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is inserted?
+   SELECT COUNT(*)
+  FROM NO_DUCK WHERE GOOSE = 23.23;
+1          
+-----------
+1          
+ij> -- PASS:0846 If count = 1?
+-- No cast from CHAR to FLOAT allowed
+--   DELETE FROM NO_DUCK
+--  WHERE ALBATROSS - CAST ('   15.5E0    ' AS FLOAT) < 3E-1;
+-- PASS:0846 If 1 row is deleted?
+-- Instead to keep the rest of the test in sync we will:
+DELETE FROM NO_DUCK
+WHERE ALBATROSS - CAST (15.5E0  AS FLOAT) < 3E-1;
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM NO_DUCK;
+1          
+-----------
+0          
+ij> -- PASS:0846 If count = 0?
+   INSERT INTO NO_DUCK
+--O  SELECT 22.22, CAST (C1 AS FLOAT), 0, C1 FROM HU.ECCO;
+  SELECT 22.22, CAST (C1 AS FLOAT), 0, C1 FROM ECCO;
+ERROR 42X05: Table 'ECCO' does not exist.
+ij> -- PASS:0846 If ERROR, invalid character value for cast, 0 rows inserted?
+   INSERT INTO NO_DUCK
+  SELECT 22.22, 2.222E1, CAST (C1 AS INT), 'QUACK!' FROM HU.ECCO;
+ERROR 22018: Invalid character string format for type INTEGER.
+ij> -- PASS:0846 If ERROR, invalid character value for cast, 0 rows inserted?
+   SELECT CAST (CAST (3 AS DEC (5, 3)) AS CHAR (5))
+  FROM HU.ECCO;
+1    
+-----
+3.000
+ij> -- PASS:0846 If 1 row selected and value is '3.000'?
+   INSERT INTO NO_DUCK VALUES (
+  12.00, -10.5E0, 12, 'QUACK!');
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is inserted?
+   UPDATE NO_DUCK
+  SET OSPREY = CAST (GOOSE AS CHAR (10))
+  WHERE SEAGULL = CAST (GOOSE AS DEC);
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT OSPREY
+  FROM NO_DUCK;
+OSPREY    
+----------
+12.00     
+ij> -- PASS:0846 If 1 row selected and OSPREY = '12.00     '?
+   SELECT OSPREY
+  FROM NO_DUCK
+  WHERE OSPREY < CAST (SEAGULL + 1 AS CHAR (10))
+  AND OSPREY = CAST (GOOSE * 1 AS CHAR (10));
+OSPREY    
+----------
+12.00     
+ij> -- PASS:0846 If 1 row selected and OSPREY = '12.00     '?
+   UPDATE NO_DUCK
+  SET OSPREY = CAST (-SEAGULL AS CHAR (10));
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT OSPREY
+  FROM NO_DUCK;
+OSPREY    
+----------
+-12       
+ij> -- PASS:0846 If 1 row selected and OSPREY = '-12       '?
+-- NOTE:0846 Expected value -12.00 is too long for CHAR (5) cast
+   SELECT CAST (-GOOSE AS CHAR (5))
+  FROM NO_DUCK;
+1    
+-----
+-12.0
+ij> -- PASS:0846 If ERROR, string data, right truncation, 0 rows selected?
+   UPDATE NO_DUCK
+  SET ALBATROSS = 0.0;
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT CAST (-ALBATROSS AS CHAR (5))
+  FROM NO_DUCK;
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row selected and value is '0E0  '?
+   SELECT CAST (0230E-1 AS CHAR (10))
+  FROM HU.ECCO;
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row selected and value is '2.3E1     '?
+   SELECT CAST (0230E+1 AS CHAR (10))
+  FROM HU.ECCO;
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row selected and value is '2.3E3     '?
+   DELETE FROM NO_DUCK;
+1 row inserted/updated/deleted
+ij> INSERT INTO NO_DUCK VALUES (
+  0.00, -10.5E0, -0, 'QUACK!');
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is inserted?
+   UPDATE NO_DUCK
+  SET OSPREY = CAST (ALBATROSS AS CHAR (10))
+  WHERE GOOSE = CAST (SEAGULL AS NUMERIC (2));
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT OSPREY
+  FROM NO_DUCK;
+OSPREY    
+----------
+QUACK!    
+ij> -- PASS:0846 If 1 row selected and OSPREY = '-1.05E1   '?
+   UPDATE NO_DUCK SET ALBATROSS = -0.5;
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is updated?
+   UPDATE NO_DUCK
+  SET OSPREY = CAST (ALBATROSS AS CHAR (10));
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT OSPREY
+  FROM NO_DUCK;
+OSPREY    
+----------
+QUACK!    
+ij> -- PASS:0846 If 1 row selected and OSPREY = '-5E-1     '?
+   UPDATE NO_DUCK
+  SET OSPREY = CAST (-ALBATROSS AS CHAR (10));
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT OSPREY
+  FROM NO_DUCK;
+OSPREY    
+----------
+QUACK!    
+ij> -- PASS:0846 If 1 row selected and OSPREY = '5E-1      '?
+-- NOTE:0846 Expected value -5E-1 is too long for CHAR (4) cast
+   SELECT CAST (ALBATROSS AS CHAR (4))
+  FROM NO_DUCK;
+ERROR 42846: Cannot convert types 'DOUBLE' to 'CHAR'.
+ij> -- PASS:0846 If ERROR, string data, right truncation, 0 rows selected?
+  SELECT CAST (NULL AS CHAR (10)), GOOSE FROM NO_DUCK
+  WHERE SEAGULL = 0
+  UNION
+  SELECT OSPREY, CAST (SEAGULL AS NUMERIC (4, 2)) FROM NO_DUCK
+  WHERE GOOSE > 10000;
+1         |2      
+------------------
+NULL      |0.00   
+ij> -- PASS:0846 If 1 row selected and first value is NULL?
+   UPDATE NO_DUCK SET GOOSE =
+  CAST (NULL AS NUMERIC (2, 2));
+1 row inserted/updated/deleted
+ij> -- PASS:0846 If 1 row is updated?
+   SELECT COUNT(*)
+  FROM NO_DUCK WHERE GOOSE IS NULL;
+1          
+-----------
+1          
+ij> -- PASS:0846 If count = 1?
+   SELECT CAST (GOOSE AS INT)
+  FROM NO_DUCK;
+1          
+-----------
+NULL       
+ij> -- PASS:0846 If 1 row selected and value is NULL?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE NO_DUCK CASCADE;
+   DROP TABLE NO_DUCK ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0846 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml155.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml155.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml155.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,142 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML155  
+-- SQL Test Suite, V6.0, Interactive SQL, dml155.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0850 Comparing fixed vs. variable length caracter strings!
+   CREATE TABLE T850 (
+--O     T850KEY INT NOT NULL UNIQUE,
+     T850KEY INT NOT NULL constraint t850_unique UNIQUE,
+     T850C   CHAR (11),
+     T850VC  VARCHAR (10),
+     T850LVC VARCHAR (20));
+0 rows inserted/updated/deleted
+ij> -- PASS:0850 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO T850 VALUES (
+     10, '1234567890', '1234567890', '1234567890   ');
+1 row inserted/updated/deleted
+ij> -- PASS:0850 If 1 row inserted successfully?
+   INSERT INTO T850 VALUES (
+     5, '12345     ', '12345', '12345');
+1 row inserted/updated/deleted
+ij> -- PASS:0850 If 1 row inserted successfully?
+   INSERT INTO T850 VALUES (
+     0, '          ', '', '                    ');
+1 row inserted/updated/deleted
+ij> -- PASS:0850 If 1 row inserted successfully?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850C = T850VC;
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+10         |1234567890 |1234567890|1234567890          
+5          |12345      |12345     |12345               
+0          |           |          |                    
+ij> -- PASS:0850 If COUNT = 3?
+   SELECT T850KEY 
+     FROM T850 WHERE T850VC = '1234567890     ';
+T850KEY    
+-----------
+10         
+ij> -- PASS:0850 If T850KEY = 10?
+   SELECT T850KEY 
+     FROM T850 WHERE T850VC = '12345  ';
+T850KEY    
+-----------
+5          
+ij> -- PASS:0850 If T850KEY = 5?
+   SELECT T850KEY 
+--N     FROM T850 WHERE T850VC = '1234567890     '; error in NIST test
+     FROM T850 WHERE T850VC = '               ';
+T850KEY    
+-----------
+0          
+ij> --N this corresponds to the esql/c test
+-- PASS:0850 If T850KEY = 0?
+--O   SELECT COUNT(*)
+   SELECT * 
+     FROM T850 WHERE T850C = '1234567890';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+10         |1234567890 |1234567890|1234567890          
+ij> -- INFORMATIONAL
+--O   SELECT COUNT(*) 
+   SELECT *
+     FROM T850 WHERE T850C = '12345';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- INFORMATIONAL
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850VC = T850LVC;
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+10         |1234567890 |1234567890|1234567890          
+5          |12345      |12345     |12345               
+0          |           |          |                    
+ij> -- PASS:0850 If COUNT = 3?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850VC = '12345          ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850VC = '12345  ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+--O   SELECT COUNT(*)
+   SELECT * 
+     FROM T850 WHERE T850LVC = '12345          ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850LVC = '12345  ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850C = '12345          ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT * 
+     FROM T850 WHERE T850C = '12345  ';
+T850KEY    |T850C      |T850VC    |T850LVC             
+-------------------------------------------------------
+5          |12345      |12345     |12345               
+ij> -- PASS:0850 If COUNT = 1?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE T850 CASCADE;
+   DROP TABLE T850 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0850 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml158.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml158.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml158.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,103 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML158  
+-- SQL Test Suite, V6.0, Interactive SQL, dml158.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
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0857 <join condition> set function, outer reference! Error
+   DELETE FROM WORKS
+     WHERE EXISTS 
+     (SELECT * FROM PROJ JOIN STAFF
+      ON PROJ.CITY <> STAFF.CITY
+      AND EMPNUM = WORKS.EMPNUM
+      AND PNUM = WORKS.PNUM);
+ERROR 42972: An ON clause associated with a JOIN operator is not valid.
+ij> -- PASS:0857 If ERROR OR SQLSTATE = 42X04
+   SELECT EMPNUM, PNUM FROM WORKS
+       ORDER BY EMPNUM, PNUM;
+EM&|PN&
+-------
+E1 |P1 
+E1 |P2 
+E1 |P3 
+E1 |P4 
+E1 |P5 
+E1 |P6 
+E2 |P1 
+E2 |P2 
+E3 |P2 
+E4 |P2 
+E4 |P4 
+E4 |P5 
+ij> -- PASS:0857 If 12 rows are returned in the following order?
+--                 empnum    pnum
+--                 ======    ====
+-- PASS:0857 If    E1        P1  ?
+-- PASS:0857 If    E1        P2  ?
+-- PASS:0857 If    E1        P3  ?
+-- PASS:0857 If    E1        P4  ?
+-- PASS:0857 If    E1        P5  ?
+-- PASS:0857 If    E1        P6  ?
+-- PASS:0857 If    E2        P1  ?
+-- PASS:0857 If    E2        P2  ?
+-- PASS:0857 If    E3        P2  ?
+-- PASS:0857 If    E4        P2  ?
+-- PASS:0857 If    E4        P4  ?
+-- PASS:0857 If    E4        P5  ?
+   ROLLBACK WORK;
+ij> SELECT EMPNUM, SUM (HOURS) FROM WORKS OWORKS
+       GROUP BY EMPNUM
+       HAVING EMPNUM IN (
+--O       SELECT WORKS.EMPNUM FROM WORKS JOIN STAFF
+--O       ON WORKS.EMPNUM = STAFF.EMPNUM
+       SELECT a.EMPNUM FROM WORKS a, STAFF
+       where a.EMPNUM = STAFF.EMPNUM
+--O       AND HOURS < SUM (OWORKS.HOURS) / 3
+       AND a.HOURS < (select SUM (b.HOURS) / 3 from works b  where a.empnum = b.empnum)
+       AND GRADE > 10)
+       ORDER BY EMPNUM;
+EM&|2          
+---------------
+E1 |184        
+E4 |140        
+ij> -- PASS:0857 If 2 rows are returned in the following order?
+--               empnum    sum(hours)
+--               ======    ==========
+-- PASS:0857 If  E1        184       ?
+-- PASS:0857 If  E4        140       ?
+   SELECT EMPNUM, SUM (HOURS) FROM WORKS OWORKS
+       GROUP BY EMPNUM
+       HAVING EMPNUM IN (
+--O       SELECT WORKS.EMPNUM FROM WORKS JOIN STAFF
+--O       ON WORKS.EMPNUM = STAFF.EMPNUM
+       SELECT a.EMPNUM FROM WORKS a, STAFF
+       where a.EMPNUM = STAFF.EMPNUM
+--O       AND HOURS >= 10 + AVG (OWORKS.HOURS)
+       AND a.HOURS >= (select 10 + AVG (b.HOURS) from works b where a.empnum = b.empnum)
+       AND CITY = 'Deale')
+       ORDER BY EMPNUM;
+EM&|2          
+---------------
+E1 |184        
+E4 |140        
+ij> -- PASS:0857 If 2 rows are returned in the following order?
+--               empnum    sum(hours)
+--               ======    ==========
+-- PASS:0857 If  E1        184       ?
+-- PASS:0857 If  E4        140       ?
+   COMMIT WORK;
+ij> -- END TEST >>> 0857 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml160.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml160.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml160.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,276 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML160  
+-- SQL Test Suite, V6.0, Interactive SQL, dml160.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0859 <joined table> contained in <select list>!
+   SELECT EMPNUM, (SELECT COUNT(*) FROM HU.WORKS JOIN HU.PROJ
+     ON HU.WORKS.PNUM = HU.PROJ.PNUM
+     AND BUDGET > AVG (OSTAFF.GRADE) * 1000
+     WHERE HU.WORKS.EMPNUM = OSTAFF.EMPNUM) FROM HU.STAFF AS OSTAFF
+     ORDER BY 2, 1;
+ERROR 42972: An ON clause associated with a JOIN operator is not valid.
+ij> -- PASS:0859 If 5 rows are returned in the following order?
+--               empnum   count
+--               ======   =====
+-- PASS:0859 If    E5       0  ?
+-- PASS:0859 If    E2       1  ?
+-- PASS:0859 If    E3       1  ?
+-- PASS:0859 If    E4       2  ?
+-- PASS:0859 If    E1       4  ?  
+   COMMIT WORK;
+ij> -- END TEST >>> 0859 <<< END TEST
+-- *********************************************
+-- TEST:0860 Domains over various data types!
+--O   CREATE DOMAIN EPOCH_NOT_NORM AS DECIMAL (5, 2);
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE DOMAIN RAD_EPOCH_TYPE FLOAT (20)
+--O     CHECK (VALUE BETWEEN 0E0 AND 2E0 * 3.1416E0);
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE DOMAIN RAD_EPOCH_NOT_NORM REAL;
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE DOMAIN TIDEDATE AS DATE
+--O    CHECK (VALUE BETWEEN DATE( '1994-01-01') AND DATE( '2025-12-31'));
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE DOMAIN TIDETIMESTAMP AS TIMESTAMP WITH TIME ZONE
+--O    CHECK (VALUE BETWEEN TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00')
+--O    AND TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'));
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE DOMAIN DINNERTIME AS TIME
+--O    CHECK (VALUE BETWEEN TIME( '17:30:00') AND TIME( '19:00:00'));
+--O-- PASS:0860 If domain created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE TABLE CONST_NOT_NORM (
+--O     LOC_ID DEC (7) NOT NULL,
+--O     CONST_ID TIDES.CONST_ID_TYPE NOT NULL,
+--O     UNIQUE (LOC_ID, CONST_ID),
+--O     AMPLITUDE TIDES.AMPLITUDE_TYPE,
+--O     EPOCH EPOCH_NOT_NORM);
+--O-- PASS:0860 If table created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE VIEW CONST_RAD (LOC_ID, CONST_ID,
+--O     AMPLITUDE, EPOCH) AS
+--O     SELECT LOC_ID, CONST_ID, AMPLITUDE,
+--O     CAST (EPOCH * 3.14159265358979E0 / 180E0 AS RAD_EPOCH_TYPE)
+--O     FROM TIDES.CONSTITUENTS;
+--O-- PASS:0860 If view created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE VIEW CONST_RAD_NOT_NORM (LOC_ID, CONST_ID,
+--O     AMPLITUDE, EPOCH) AS
+--O     SELECT LOC_ID, CONST_ID, AMPLITUDE,
+--O     CAST (EPOCH * 3.14159265358979E0 / 180E0 AS RAD_EPOCH_NOT_NORM)
+--O     FROM CONST_NOT_NORM;
+--O-- PASS:0860 If view created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE TABLE PENDING (
+--O     LOC_ID DEC (7) NOT NULL,
+--O     FROMTIME TIDETIMESTAMP NOT NULL,
+--O     TOTIME TIDETIMESTAMP NOT NULL,
+--O     CHECK (FROMTIME <= TOTIME),
+--O     JOB_ID INT PRIMARY KEY);
+--O-- PASS:0860 If table created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE VIEW CHECK_PTS (CHECK_DATES, JOB_ID, FLAG) AS
+--O     SELECT CAST (FROMTIME AS TIDEDATE), JOB_ID,
+--O     CAST (0 AS INT) FROM PENDING
+--O       UNION
+--O     SELECT CAST (TOTIME AS TIDEDATE), JOB_ID,
+--O     CAST (1 AS INT) FROM PENDING;
+--O-- PASS:0860 If view created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   CREATE TABLE DINNER_CLUB (
+--O     LOC_ID DEC (7) NOT NULL,
+--O     DINNER DINNERTIME);
+--O-- PASS:0860 If table created successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O   SELECT HOUR( MERIDIAN), EXTRACT
+--O     (MINUTE FROM MERIDIAN) 
+--O     FROM TIDES.LOCATIONS WHERE LOC_NAME LIKE '%Newfound%';
+--O-- PASS:0860 If xhour = -3?
+--O-- PASS:0860 If xminute = -30?
+--O
+--O   INSERT INTO TIDES.LOCATIONS VALUES (
+--O     300, 'Atlantis', 160.0000, 3.0000, 0, 1.2E0,
+--O     INTERVAL -'13:00' HOUR TO MINUTE, 'GMT-13');
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   UPDATE TIDES.CONSTITUENTS
+--O     SET AMPLITUDE = - AMPLITUDE
+--O     WHERE LOC_ID = 100
+--O     AND CONST_ID = 0;
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   INSERT INTO TIDES.LOCATIONS VALUES (300,
+--O     'Bath, Maine', -69.8133, 43.9183,
+--O     1, 3.422E0, INTERVAL '-05:00' HOUR TO MINUTE, ':US/Eastern');
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   INSERT INTO TIDES.CONSTITUENTS VALUES (300, 2, 0.134E0, 385.0);
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 0, 0.021E0, 151.6);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 1, 0.324E0, 144.5);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 2, 0.134E0, 385.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 3, 0.181E0, 40.9);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 4, 0.037E0, 150.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 5, 3.143E0, 352.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 6, 0.000E0, 50.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 7, 0.104E0, 242.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 8, 0.031E0, 158.6);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 9, 0.000E0, 133.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 10, 0.744E0, 322.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 11, 0.087E0, 307.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 12, 0.260E0, 130.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 13, 0.011E0, 158.7);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 14, 0.107E0, 140.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 15, 0.043E0, 114.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 16, 0.007E0, 116.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 17, 0.004E0, 383.2);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 18, 0.000E0, 17.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 19, 0.488E0, 383.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 20, 0.000E0, 69.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 21, 0.000E0, 103.5);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 22, 0.053E0, 365.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 23, 0.053E0, 37.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 24, 0.023E0, 297.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 25, 0.138E0, 328.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 26, 0.010E0, 124.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 27, 0.000E0, 50.6);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 28, 0.000E0, 49.4);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 29, 0.000E0, 66.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 30, 0.000E0, 67.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 31, 0.000E0, 35.7);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 32, 0.073E0, 285.0);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 33, 0.033E0, 257.3);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 34, 0.000E0, 0.6);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 35, 0.056E0, 128.8);
+--O   INSERT INTO CONST_NOT_NORM VALUES (300, 36, 0.038E0, 97.7);
+--O-- PASS:0860 If 37 rows inserted from previous 37 inserts?
+--O
+--O   SELECT EPOCH FROM CONST_RAD
+--O     WHERE LOC_ID = 100
+--O     AND CONST_ID = 0;
+--O-- PASS:0860 If EPOCH = 2.11 (+ or - 0.01)?
+--O
+--O   SELECT COUNT(*) 
+--O     FROM CONST_RAD_NOT_NORM
+--O     WHERE EPOCH > 6.2831853E0;
+--O-- PASS:0860 If COUNT = 4?
+--O
+--O   INSERT INTO PENDING VALUES (
+--O     300, TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'),
+--O          TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'), 0);
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   INSERT INTO PENDING VALUES (
+--O     101, TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'),
+--O          TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'), 1);
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   INSERT INTO PENDING VALUES (
+--O     101, TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'),
+--O          TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'), 1);
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   INSERT INTO PENDING VALUES (
+--O     102, TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'),
+--O       TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:00'), 2);
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   SELECT YEAR( CHECK_DATES)
+--O     FROM CHECK_PTS WHERE JOB_ID = 2 AND FLAG = 0;
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   SELECT YEAR( CHECK_DATES)
+--O     FROM CHECK_PTS WHERE JOB_ID = 2 AND FLAG = 1;
+--O-- PASS:0860 If xyear = 1994?
+--O
+--O   INSERT INTO DINNER_CLUB VALUES
+--O     (0, TIME( '17:30:00'));
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   INSERT INTO DINNER_CLUB VALUES
+--O     (1, CAST (TIME( '18:00:00') AS DINNERTIME));
+--O-- PASS:0860 If 1 row inserted successfully?
+--O
+--O   INSERT INTO DINNER_CLUB VALUES
+--O     (2, TIME( '19:30:00'));
+--O-- PASS:0860 If ERROR - integrity constraint violation?
+--O
+--O   COMMIT WORK;
+--O
+--O   DROP DOMAIN EPOCH_NOT_NORM CASCADE;
+--O   COMMIT WORK;
+--O   DROP DOMAIN RAD_EPOCH_TYPE CASCADE;
+--O   COMMIT WORK;
+--O   DROP DOMAIN RAD_EPOCH_NOT_NORM CASCADE;
+--O   COMMIT WORK;
+--O   DROP DOMAIN TIDEDATE CASCADE;
+--O   COMMIT WORK;
+--O   DROP DOMAIN TIDETIMESTAMP CASCADE;
+--O   COMMIT WORK;
+--O   DROP DOMAIN DINNERTIME CASCADE;
+--O   COMMIT WORK;
+--O-- PASS:0860 If domains dropped successfully in 6 previous drops?
+--O
+--O   DROP TABLE CONST_NOT_NORM CASCADE;
+--O   COMMIT WORK;
+--O   DROP VIEW CONST_RAD CASCADE;
+--O   COMMIT WORK;
+--O   DROP TABLE PENDING CASCADE;
+--O   COMMIT WORK;
+--O   DROP TABLE DINNER_CLUB CASCADE;
+--O   COMMIT WORK;
+--O-- PASS:0860 If tables and view dropped in 4 previous drops?
+--O
+--O   DELETE FROM TIDES.LOCATIONS
+--O     WHERE LOC_ID = 300;
+--O-- PASS:0860 If delete completed successfully?
+--O
+--O   COMMIT WORK;
+--O
+--O-- END TEST >>> 0860 <<< END TEST
+--O-- *********************************************
+--O-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml162.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml162.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml162.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,66 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML162  
+-- SQL Test Suite, V6.0, Interactive SQL, dml162.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0863 <joined table> directly contained in cursor,view!
+   CREATE VIEW BLIVET (CITY, PNUM, EMPNUM, EMPNAME, GRADE,
+      HOURS, PNAME, PTYPE, BUDGET) AS
+--0      HU.STAFF NATURAL JOIN HU.WORKS NATURAL JOIN HU.PROJ;
+	  SELECT PROJ.CITY, HU.PROJ.PNUM, HU.STAFF.EMPNUM, EMPNAME, GRADE, HOURS, PNAME, PTYPE, BUDGET
+      FROM HU.STAFF JOIN HU.WORKS ON (HU.STAFF.EMPNUM=HU.WORKS.EMPNUM) JOIN HU.PROJ ON (HU.PROJ.PNUM=HU.WORKS.PNUM AND HU.PROJ.CITY=HU.STAFF.CITY)
+	  ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0863 If view created successfully?
+   COMMIT WORK;
+ij> SELECT COUNT(*) 
+     FROM BLIVET WHERE EMPNUM = 'E1';
+1          
+-----------
+3          
+ij> -- PASS:0863 If COUNT = 3?
+   SELECT COUNT(*) 
+     FROM BLIVET WHERE EMPNUM <> 'E1';
+1          
+-----------
+3          
+ij> -- PASS:0863 If COUNT = 3?
+   SELECT * FROM HU.STAFF LEFT OUTER JOIN HU.WORKS
+      ON (HU.STAFF.EMPNUM=HU.WORKS.EMPNUM);
+EMP&|EMPNAME             |GRADE|CITY           |EMP&|PNUM|HOURS 
+----------------------------------------------------------------
+E1  |Alice               |12   |Deale          |E1  |P1  |40    
+E1  |Alice               |12   |Deale          |E1  |P2  |20    
+E1  |Alice               |12   |Deale          |E1  |P3  |80    
+E1  |Alice               |12   |Deale          |E1  |P4  |20    
+E1  |Alice               |12   |Deale          |E1  |P5  |12    
+E1  |Alice               |12   |Deale          |E1  |P6  |12    
+E2  |Betty               |10   |Vienna         |E2  |P1  |40    
+E2  |Betty               |10   |Vienna         |E2  |P2  |80    
+E3  |Carmen              |13   |Vienna         |E3  |P2  |20    
+E4  |Don                 |12   |Deale          |E4  |P2  |20    
+E4  |Don                 |12   |Deale          |E4  |P4  |40    
+E4  |Don                 |12   |Deale          |E4  |P5  |80    
+E5  |Ed                  |13   |Akron          |NULL|NULL|NULL  
+ij> -- PASS:0863 If 13 rows are returned?
+   COMMIT WORK;
+ij> --0   DROP VIEW BLIVET CASCADE;
+   DROP VIEW BLIVET ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0863 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml165.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml165.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml165.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,76 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML165  
+-- SQL Test Suite, V6.0, Interactive SQL, dml165.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER            
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0870 Non-identical descriptors in UNION!
+   CREATE TABLE APPLES (
+     KEY1 INT,
+     APPLE_NAME CHAR (15));
+0 rows inserted/updated/deleted
+ij> -- PASS:0870 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE ORANGES (
+     KEY2 FLOAT,
+     ORANGE_NAME VARCHAR (10));
+0 rows inserted/updated/deleted
+ij> -- PASS:0870 If table ceated successfully?
+   COMMIT WORK;
+ij> INSERT INTO APPLES VALUES (
+     1, 'Granny Smith');
+1 row inserted/updated/deleted
+ij> -- PASS:0870 If 1 row inserted successfully?
+   INSERT INTO APPLES VALUES (
+     2, 'Red Delicious');
+1 row inserted/updated/deleted
+ij> -- PASS:0870 If 1 row inserted successfully?
+   INSERT INTO ORANGES VALUES (
+     1.5E0, 'Navel');
+1 row inserted/updated/deleted
+ij> -- PASS:0870 If 1 row inserted successfully?
+   INSERT INTO ORANGES VALUES (
+     2.5E0, 'Florida');
+1 row inserted/updated/deleted
+ij> -- PASS:0870 If 1 row inserted successfully?
+   SELECT * FROM APPLES UNION ALL SELECT * FROM ORANGES
+     ORDER BY 1;
+1                     |2              
+--------------------------------------
+1.0                   |Granny Smith   
+1.5                   |Navel          
+2.0                   |Red Delicious  
+2.5                   |Florida        
+ij> -- PASS:0870 If 4 rows returned in the following order?
+--                col1                 col2
+--                ====                 ====
+-- PASS:0870 If   1.0 (+ or - 0.01)    Granny Smith?
+-- PASS:0870 If   1.5 (+ or - 0.01)    Navel?
+-- PASS:0870 If   2.0 (+ or - 0.01)    Red Delicious?
+-- PASS:0870 If   2.5 (+ or - 0.01)    Florida?
+   COMMIT WORK;
+ij> --O   DROP TABLE APPLES CASCADE;
+   DROP TABLE APPLES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0870 If table dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE ORANGES CASCADE;
+   DROP TABLE ORANGES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0870 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0870 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml168.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml168.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml168.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,129 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML168  
+-- SQL Test Suite, V6.0, Interactive SQL, dml168.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0876 SQL_IDENTIFIER and CHARACTER_DATA domains!
+--O   CREATE TABLE T0876 (
+--O     C1 INFORMATION_SCHEMA.SQL_IDENTIFIER,
+--O     C2 INFORMATION_SCHEMA.CHARACTER_DATA);
+-- PASS:0876 If table created successfully?
+--O   COMMIT WORK;
+--O   INSERT INTO T0876 VALUES ('T0876',
+--O     'This table tests a couple of domains.');
+-- PASS:0876 If 1 row inserted successfully?
+--O   SELECT COUNT(*) 
+--O     FROM T0876
+--O     WHERE C1 = 'T0876';
+-- PASS:0876 If COUNT = 1?
+--O   COMMIT WORK;
+--O   DROP TABLE T0876 CASCADE;
+-- PASS:0876 If table dropped successfully?
+--O   COMMIT WORK;
+-- END TEST >>> 0876 <<< END TEST
+-- *********************************************
+-- TEST:0878 Keyword COLUMN in ALTER TABLE is optional!
+   CREATE TABLE T0878 (C1 INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0878 If table created successfully?
+   COMMIT WORK;
+ij> ALTER TABLE T0878 ADD C2 CHAR (4);
+0 rows inserted/updated/deleted
+ij> -- PASS:0878 If table altered successfully?
+   COMMIT WORK;
+ij> --O   ALTER TABLE T0878
+--O     ALTER C2 SET DEFAULT 'ABCD';
+-- PASS:0878 If table altered successfully?
+--O   COMMIT WORK;
+--O   ALTER TABLE T0878
+--O     DROP C1 CASCADE;
+-- PASS:0878 If table altered successfully?
+--O   COMMIT WORK;
+--O   INSERT INTO T0878 VALUES (DEFAULT);
+-- PASS:0878 If 1 row inserted successfully?
+--O   SELECT * FROM T0878;
+-- PASS:0878 If answer = 'ABCD'?
+--O   COMMIT WORK;
+--O  DROP TABLE T0878 CASCADE;
+  DROP TABLE T0878 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0878 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0878 <<< END TEST
+-- *********************************************
+-- TEST:0879 <drop table constraint definition>!
+   CREATE TABLE T0879 (
+     C1 INT,
+     C2 INT NOT NULL,
+       CONSTRAINT DELME CHECK (C1 > 0),
+       CONSTRAINT REFME UNIQUE (C2));
+0 rows inserted/updated/deleted
+ij> -- PASS:0879 If table created successfully?
+   COMMIT WORK;
+ij> --O   CREATE TABLE U0879 (
+--O     C1 INT REFERENCES T0879 (C2));
+-- PASS:0879 If table created successfully?
+--O   COMMIT WORK;
+   ALTER TABLE T0879
+--O     DROP CONSTRAINT DELME RESTRICT;
+     DROP CONSTRAINT DELME ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0879 If table altered successfully?
+   COMMIT WORK;
+ij> INSERT INTO T0879 VALUES (0, 0);
+1 row inserted/updated/deleted
+ij> -- PASS:0879 If 1 row inserted successfully?
+   INSERT INTO T0879 VALUES (-1, -1);
+1 row inserted/updated/deleted
+ij> -- PASS:0879 If 1 row inserted successfully?
+   SELECT COUNT(*) FROM T0879;
+1          
+-----------
+2          
+ij> -- PASS:0879 If COUNT = 2?
+--O   INSERT INTO U0879 VALUES (20);
+-- PASS:0879 If ERROR - integrity constraint violation?
+   INSERT INTO T0879 VALUES (2, 0);
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'REFME' defined on 'T0879'.
+ij> -- PASS:0879 If ERROR - integrity constraint violation?
+   COMMIT WORK;
+ij> --O   ALTER TABLE T0879
+--O     DROP CONSTRAINT REFME RESTRICT;
+-- PASS:0879 If ERROR - syntax error or access rule violation?
+--O   COMMIT WORK;
+   ALTER TABLE T0879
+--O     DROP CONSTRAINT REFME CASCADE;
+     DROP CONSTRAINT REFME ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0879 If table altered successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO U0879 VALUES (20);
+-- PASS:0879 If 1 row inserted successfully?
+   INSERT INTO T0879 VALUES (0, 0);
+1 row inserted/updated/deleted
+ij> -- PASS:0879 If 1 row inserted successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE T0879 CASCADE;
+   DROP TABLE T0879 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0879 If table dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE U0879 CASCADE;
+-- PASS:0879 If table dropped successfully?
+--O   COMMIT WORK;
+-- END TEST >>> 0879 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml170.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml170.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml170.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,108 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML170  
+-- SQL Test Suite, V6.0, Interactive SQL, dml170.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:0880 Long constraint names, cursor names!
+   CREATE TABLE T0880 (
+     C1 INT NOT NULL, C2 INT NOT NULL,
+     CONSTRAINT
+     "It was the best of"
+     PRIMARY KEY (C1, C2));
+0 rows inserted/updated/deleted
+ij> -- PASS:0880 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO T0880 VALUES (0, 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0880 If 1 row inserted successfully?
+   INSERT INTO T0880 VALUES (1, 2);
+1 row inserted/updated/deleted
+ij> -- PASS:0880 If 1 row inserted successfully?
+   INSERT INTO T0880 VALUES (1, 2);
+ERROR 23505: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'It was the best of' defined on 'T0880'.
+ij> -- PASS:0880 If ERROR - integrity constraint violation?
+   SELECT C1 FROM T0880 ORDER BY C1;
+C1         
+-----------
+0          
+1          
+ij> -- PASS:0880 If 2 rows are returned in the following order?
+--                c1
+--                ==
+-- PASS:0880 If   0 ?
+-- PASS:0880 If   1 ?
+   COMMIT WORK;
+ij> ALTER TABLE T0880
+     DROP CONSTRAINT
+     "It was the best of"
+--O     CASCADE;
+    ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0880 If table altered successfully?
+   COMMIT WORK;
+ij> INSERT INTO T0880 VALUES (0, 1);
+1 row inserted/updated/deleted
+ij> -- PASS:0880 If 1 row inserted successfully?
+   SELECT COUNT (*) FROM T0880;
+1          
+-----------
+3          
+ij> -- PASS:0880 If COUNT = 3?
+   COMMIT WORK;
+ij> --O   DROP TABLE T0880 CASCADE;
+   DROP TABLE T0880 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0880 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0880 <<< END TEST
+-- *********************************************
+-- TEST:0881 Long character set names, domain names!
+--O   CREATE CHARACTER SET
+--O     "Little boxes on the hillside, Little boxes made of ticky-tacky"
+--O     GET SQL_TEXT;
+-- PASS:0881 If character set created successfully?
+--O   COMMIT WORK;
+--O   CREATE DOMAIN
+--O     "Little boxes on the hillside, Little boxes all the same."
+--O     CHAR (4) CHARACTER SET
+--O     "Little boxes on the hillside, Little boxes made of ticky-tacky";
+-- PASS:0881 If domain created successfully?
+--O   COMMIT WORK;
+--O   CREATE TABLE T0881 ( C1
+--O     "Little boxes on the hillside, Little boxes all the same.");
+-- PASS:0881 If table created successfully?
+--O   COMMIT WORK;
+--O   INSERT INTO T0881 VALUES ('ABCD');
+-- PASS:0881 If insert completed successfully?
+--O   SELECT COUNT(*) FROM T0881
+--O     WHERE C1 = 'ABCD';
+-- PASS:0881 If COUNT = 1?
+--O   COMMIT WORK;
+--O   DROP TABLE T0881 CASCADE;
+-- PASS:0881 if table dropped successfully?
+--O   COMMIT WORK;
+--O   DROP DOMAIN
+--O     "Little boxes on the hillside, Little boxes all the same."
+--O     CASCADE;
+-- PASS:0881 If domain dropped successfully?
+--O   COMMIT WORK;
+--O   DROP CHARACTER SET
+--O   "Little boxes on the hillside, Little boxes made of ticky-tacky";
+-- PASS:0881 If character set dropped successfully?
+--O   COMMIT WORK;
+-- END TEST >>> 0881 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml173.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml173.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml173.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,172 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML173  
+-- SQL Test Suite, V6.0, Interactive SQL, dml173.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0885 FIPS sizing, VARCHAR (1000)!
+   CREATE TABLE CONTACTS (
+     NAME CHAR (20),
+     DESCRIPTION VARCHAR (1000),
+     KEYWORDS VARCHAR (1000));
+0 rows inserted/updated/deleted
+ij> -- PASS:0885 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO CONTACTS VALUES ('Harry',
+--O original lines lack the '||' operator
+'Harry works in the Redundancy Automation Division of the ' ||
+'Materials ' ||
+'Blasting Laboratory in the National Cattle Acceleration ' ||
+'Project of ' ||
+'lower Michigan.  His job is to document the trajectory of ' ||
+'cattle and ' ||
+'correlate the loft and acceleration versus the quality of ' ||
+'materials ' ||
+'used in the trebuchet.  He served ten years as the ' ||
+'vice-president in ' ||
+'charge of marketing in the now defunct milk trust of the ' ||
+'Pennsylvania ' ||
+'Coalition of All Things Bovine.  Prior to that he ' ||
+'established himself ' ||
+'as a world-class graffiti artist and source of all good ' ||
+'bits related ' ||
+'to channel dredging in poor weather.  He is author of over ' ||
+'ten thousand ' ||
+'paperback novels, including such titles as "How Many ' ||
+'Pumpkins will Fit ' ||
+'on the Head of a Pin," "A Whole Bunch of Useless Things ' ||
+'that you Don''t ' ||
+'Want to Know," and "How to Lift Heavy Things Over your ' ||
+'Head without ' ||
+'Hurting Yourself or Dropping Them."  He attends ANSI and ' ||
+'ISO standards ' ||
+'meetings in his copious free time and funds the development ' ||
+'of test ' ||
+'suites with his pocket change.', 
+'aardvark albatross nutmeg redundancy ' ||
+'automation materials blasting ' ||
+'cattle acceleration trebuchet catapult ' ||
+'loft coffee java sendmail SMTP ' ||
+'FTP HTTP censorship expletive senility ' ||
+'extortion distortion conformity ' ||
+'conformance nachos chicks goslings ' ||
+'ducklings honk quack melatonin tie ' ||
+'noose circulation column default ' ||
+'ionic doric chlorine guanine Guam ' ||
+'invasions rubicon helmet plastics ' ||
+'recycle HDPE nylon ceramics plumbing ' ||
+'parachute zeppelin carbon hydrogen ' ||
+'vinegar sludge asphalt adhesives ' ||
+'tensile magnetic Ellesmere Greenland ' ||
+'Knud Rasmussen precession ' ||
+'navigation positioning orbit altitude ' ||
+'resistance radiation levitation ' ||
+'yoga demiurge election violence ' ||
+'collapsed fusion cryogenics gravity ' ||
+'sincerity idiocy budget accounting ' ||
+'auditing titanium torque pressure ' ||
+'fragile hernia muffler cartilage ' ||
+'graphics deblurring headache eyestrain ' ||
+'interlace bandwidth resolution ' ||
+'determination steroids barrel oak wine ' ||
+'ferment yeast brewing bock siphon ' ||
+'clarity impurities SQL RBAC data ' ||
+'warehouse security integrity feedback');
+1 row inserted/updated/deleted
+ij> -- PASS:0885 If 1 row inserted successfully?
+--O   SELECT COUNT(*) 
+   SELECT  name
+     FROM CONTACTS
+     WHERE DESCRIPTION =
+'Harry works in the Redundancy Automation Division of the ' ||
+'Materials ' ||
+'Blasting Laboratory in the National Cattle Acceleration ' ||
+'Project of ' ||
+'lower Michigan.  His job is to document the trajectory of ' ||
+'cattle and ' ||
+'correlate the loft and acceleration versus the quality of ' ||
+'materials ' ||
+'used in the trebuchet.  He served ten years as the ' ||
+'vice-president in ' ||
+'charge of marketing in the now defunct milk trust of the ' ||
+'Pennsylvania ' ||
+'Coalition of All Things Bovine.  Prior to that he ' ||
+'established himself ' ||
+'as a world-class graffiti artist and source of all good ' ||
+'bits related ' ||
+'to channel dredging in poor weather.  He is author of over ' ||
+'ten thousand ' ||
+'paperback novels, including such titles as "How Many ' ||
+'Pumpkins will Fit ' ||
+'on the Head of a Pin," "A Whole Bunch of Useless Things ' ||
+'that you Don''t ' ||
+'Want to Know," and "How to Lift Heavy Things Over your ' ||
+'Head without ' ||
+'Hurting Yourself or Dropping Them."  He attends ANSI and ' ||
+'ISO standards ' ||
+'meetings in his copious free time and funds the development ' ||
+'of test ' ||
+'suites with his pocket change.'
+  AND KEYWORDS =
+'aardvark albatross nutmeg redundancy ' ||
+'automation materials blasting ' ||
+'cattle acceleration trebuchet catapult ' ||
+'loft coffee java sendmail SMTP ' ||
+'FTP HTTP censorship expletive senility ' ||
+'extortion distortion conformity ' ||
+'conformance nachos chicks goslings ' ||
+'ducklings honk quack melatonin tie ' ||
+'noose circulation column default ' ||
+'ionic doric chlorine guanine Guam ' ||
+'invasions rubicon helmet plastics ' ||
+'recycle HDPE nylon ceramics plumbing ' ||
+'parachute zeppelin carbon hydrogen ' ||
+'vinegar sludge asphalt adhesives ' ||
+'tensile magnetic Ellesmere Greenland ' ||
+'Knud Rasmussen precession ' ||
+'navigation positioning orbit altitude ' ||
+'resistance radiation levitation ' ||
+'yoga demiurge election violence ' ||
+'collapsed fusion cryogenics gravity ' ||
+'sincerity idiocy budget accounting ' ||
+'auditing titanium torque pressure ' ||
+'fragile hernia muffler cartilage ' ||
+'graphics deblurring headache eyestrain ' ||
+'interlace bandwidth resolution ' ||
+'determination steroids barrel oak wine ' ||
+'ferment yeast brewing bock siphon ' ||
+'clarity impurities SQL RBAC data ' ||
+'warehouse security integrity feedback';
+NAME                
+--------------------
+Harry               
+ij> -- PASS:0885 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT  name
+     FROM CONTACTS
+     WHERE DESCRIPTION LIKE '%change.'
+     AND KEYWORDS LIKE '%feedback';
+NAME                
+--------------------
+Harry               
+ij> -- PASS:0885 If COUNT = 1?
+   COMMIT WORK;
+ij> --O   DROP TABLE CONTACTS CASCADE;
+   DROP TABLE CONTACTS ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0885 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml174.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml174.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml174.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,173 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML174  
+-- SQL Test Suite, V6.0, Interactive SQL, dml174.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0886 FIPS sizing, VARCHAR (1000)!
+   CREATE TABLE CONTACTS (
+     NAME CHAR (20),
+     DESCRIPTION VARCHAR (1000),
+     KEYWORDS VARCHAR (1000));
+0 rows inserted/updated/deleted
+ij> -- PASS:0886 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO CONTACTS VALUES ('Harry',
+--O original lacks '||' operator
+'Harry works in the Redundancy Automation Division of the ' ||
+'Materials ' ||
+'Blasting Laboratory in the National Cattle Acceleration ' ||
+'Project of ' ||
+'lower Michigan.  His job is to document the trajectory of ' ||
+'cattle and ' ||
+'correlate the loft and acceleration versus the quality of ' ||
+'materials ' ||
+'used in the trebuchet.  He served ten years as the ' ||
+'vice-president in ' ||
+'charge of marketing in the now defunct milk trust of the ' ||
+'Pennsylvania ' ||
+'Coalition of All Things Bovine.  Prior to that he ' ||
+'established himself ' ||
+'as a world-class graffiti artist and source of all good ' ||
+'bits related ' ||
+'to channel dredging in poor weather.  He is author of over ' ||
+'ten thousand ' ||
+'paperback novels, including such titles as "How Many ' ||
+'Pumpkins will Fit ' ||
+'on the Head of a Pin," "A Whole Bunch of Useless Things ' ||
+'that you Don''t ' ||
+'Want to Know," and "How to Lift Heavy Things Over your ' ||
+'Head without ' ||
+'Hurting Yourself or Dropping Them."  He attends ANSI and ' ||
+'ISO standards ' ||
+'meetings in his copious free time and funds the development ' ||
+'of test ' ||
+'suites with his pocket change.',
+'aardvark albatross nutmeg redundancy ' ||
+'automation materials blasting ' ||
+'cattle acceleration trebuchet catapult ' ||
+'loft coffee java sendmail SMTP ' ||
+'FTP HTTP censorship expletive senility ' ||
+'extortion distortion conformity ' ||
+'conformance nachos chicks goslings ' ||
+'ducklings honk quack melatonin tie ' ||
+'noose circulation column default ' ||
+'ionic doric chlorine guanine Guam ' ||
+'invasions rubicon helmet plastics ' ||
+'recycle HDPE nylon ceramics plumbing ' ||
+'parachute zeppelin carbon hydrogen ' ||
+'vinegar sludge asphalt adhesives ' ||
+'tensile magnetic Ellesmere Greenland ' ||
+'Knud Rasmussen precession ' ||
+'navigation positioning orbit altitude ' ||
+'resistance radiation levitation ' ||
+'yoga demiurge election violence ' ||
+'collapsed fusion cryogenics gravity ' ||
+'sincerity idiocy budget accounting ' ||
+'auditing titanium torque pressure ' ||
+'fragile hernia muffler cartilage ' ||
+'graphics deblurring headache eyestrain ' ||
+'interlace bandwidth resolution ' ||
+'determination steroids barrel oak wine ' ||
+'ferment yeast brewing bock siphon ' ||
+'clarity impurities SQL RBAC data ' ||
+'warehouse security integrity feedback');
+1 row inserted/updated/deleted
+ij> -- PASS:0886 If 1 row inserted successfully?
+--O   SELECT COUNT(*) 
+   SELECT  name
+     FROM CONTACTS
+     WHERE DESCRIPTION =
+'Harry works in the Redundancy Automation Division of the ' ||
+'Materials ' ||
+'Blasting Laboratory in the National Cattle Acceleration ' ||
+'Project of ' ||
+'lower Michigan.  His job is to document the trajectory of ' ||
+'cattle and ' ||
+'correlate the loft and acceleration versus the quality of ' ||
+'materials ' ||
+'used in the trebuchet.  He served ten years as the ' ||
+'vice-president in ' ||
+'charge of marketing in the now defunct milk trust of the ' ||
+'Pennsylvania ' ||
+'Coalition of All Things Bovine.  Prior to that he ' ||
+'established himself ' ||
+'as a world-class graffiti artist and source of all good ' ||
+'bits related ' ||
+'to channel dredging in poor weather.  He is author of over ' ||
+'ten thousand ' ||
+'paperback novels, including such titles as "How Many ' ||
+'Pumpkins will Fit ' ||
+'on the Head of a Pin," "A Whole Bunch of Useless Things ' ||
+'that you Don''t ' ||
+'Want to Know," and "How to Lift Heavy Things Over your ' ||
+'Head without ' ||
+'Hurting Yourself or Dropping Them."  He attends ANSI and ' ||
+'ISO standards ' ||
+'meetings in his copious free time and funds the development ' ||
+'of test ' ||
+'suites with his pocket change.'
+  AND KEYWORDS =
+'aardvark albatross nutmeg redundancy ' ||
+'automation materials blasting ' ||
+'cattle acceleration trebuchet catapult ' ||
+'loft coffee java sendmail SMTP ' ||
+'FTP HTTP censorship expletive senility ' ||
+'extortion distortion conformity ' ||
+'conformance nachos chicks goslings ' ||
+'ducklings honk quack melatonin tie ' ||
+'noose circulation column default ' ||
+'ionic doric chlorine guanine Guam ' ||
+'invasions rubicon helmet plastics ' ||
+'recycle HDPE nylon ceramics plumbing ' ||
+'parachute zeppelin carbon hydrogen ' ||
+'vinegar sludge asphalt adhesives ' ||
+'tensile magnetic Ellesmere Greenland ' ||
+'Knud Rasmussen precession ' ||
+'navigation positioning orbit altitude ' ||
+'resistance radiation levitation ' ||
+'yoga demiurge election violence ' ||
+'collapsed fusion cryogenics gravity ' ||
+'sincerity idiocy budget accounting ' ||
+'auditing titanium torque pressure ' ||
+'fragile hernia muffler cartilage ' ||
+'graphics deblurring headache eyestrain ' ||
+'interlace bandwidth resolution ' ||
+'determination steroids barrel oak wine ' ||
+'ferment yeast brewing bock siphon ' ||
+'clarity impurities SQL RBAC data ' ||
+'warehouse security integrity feedback';
+NAME                
+--------------------
+Harry               
+ij> -- PASS:0886 If COUNT = 1?
+--O   SELECT COUNT(*) 
+   SELECT  name
+     FROM CONTACTS
+     WHERE DESCRIPTION LIKE '%change.'
+     AND KEYWORDS LIKE '%feedback';
+NAME                
+--------------------
+Harry               
+ij> -- PASS:0886 If COUNT = 1?
+   COMMIT WORK;
+ij> --O   DROP TABLE CONTACTS CASCADE;
+   DROP TABLE CONTACTS ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0886 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0886 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml177.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml177.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml177.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,181 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML177  
+-- SQL Test Suite, V6.0, Interactive SQL, dml177.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0889 FIPS sizing, INTEGER binary prec >= 31!
+   CREATE TABLE NOMAIL (C1 INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0889 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO NOMAIL VALUES (2147483647);
+1 row inserted/updated/deleted
+ij> -- PASS:0889 If 1 row inserted successfully?
+   INSERT INTO NOMAIL VALUES (-2147483647);
+1 row inserted/updated/deleted
+ij> -- PASS:0889 If 1 row inserted successfully?
+   SELECT C1 
+     FROM NOMAIL WHERE C1 > 0;
+C1         
+-----------
+2147483647 
+ij> -- PASS:0889 If C1 = 2147483647?
+   SELECT C1 
+     FROM NOMAIL WHERE C1 < 0;
+C1         
+-----------
+-2147483647
+ij> -- PASS:0889 If C1 = -2147483647?
+   SELECT C1 - 2147483646 
+     FROM NOMAIL
+     WHERE C1 > 0;
+1          
+-----------
+1          
+ij> -- PASS:0889 If value = 1?
+   SELECT C1 + 2147483646 
+     FROM NOMAIL
+     WHERE C1 < 0;
+1          
+-----------
+-1         
+ij> -- PASS:0889 If value = -1?
+   UPDATE NOMAIL
+     SET C1 = C1 + 2147483646
+     WHERE C1 < 0;
+1 row inserted/updated/deleted
+ij> -- PASS:0889 If update completed successfully?
+   SELECT C1 
+     FROM NOMAIL WHERE C1 < 0;
+C1         
+-----------
+-1         
+ij> -- PASS:0889 If C1 = -1?
+   UPDATE NOMAIL
+     SET C1 = C1 - 1;
+2 rows inserted/updated/deleted
+ij> -- PASS:0889 If update completed successfully?
+   SELECT COUNT(*) 
+     FROM NOMAIL
+     WHERE C1 = 2147483645;
+1          
+-----------
+0          
+ij> -- PASS:0889 If COUNT = 0?
+   SELECT COUNT(*) 
+     FROM NOMAIL
+     WHERE C1 = 2147483646;
+1          
+-----------
+1          
+ij> -- PASS:0889 If COUNT = 1?
+   SELECT COUNT(*) 
+     FROM NOMAIL
+     WHERE C1 = 2147483647;
+1          
+-----------
+0          
+ij> -- PASS:0889 If COUNT = 0?
+   COMMIT WORK;
+ij> --0   DROP TABLE NOMAIL CASCADE;
+   DROP TABLE NOMAIL ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0889 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0889 <<< END TEST
+-- *********************************************
+-- TEST:0890 FIPS sizing, SMALLINT binary prec >= 15!
+   CREATE TABLE YESMAIL (C1 SMALLINT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0890 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO YESMAIL VALUES (32767);
+1 row inserted/updated/deleted
+ij> -- PASS:0890 If 1 row inserted successfully?
+   INSERT INTO YESMAIL VALUES (-32767);
+1 row inserted/updated/deleted
+ij> -- PASS:0890 If 1 row inserted successfully?
+   SELECT C1 
+     FROM YESMAIL WHERE C1 > 0;
+C1    
+------
+32767 
+ij> -- PASS:0890 If C1 = 32767?
+   SELECT C1 
+     FROM YESMAIL WHERE C1 < 0;
+C1    
+------
+-32767
+ij> -- PASS:0890 If C1 = -32767?
+   SELECT C1 - 32766 
+     FROM YESMAIL
+     WHERE C1 > 0;
+1          
+-----------
+1          
+ij> -- PASS:0890 If value = 1?
+   SELECT C1 + 32766 
+     FROM YESMAIL
+     WHERE C1 < 0;
+1          
+-----------
+-1         
+ij> -- PASS:0890 If value = -1?
+   UPDATE YESMAIL
+     SET C1 = C1 + 32766
+     WHERE C1 < 0;
+1 row inserted/updated/deleted
+ij> -- PASS:0890 If update completed successfully?
+   SELECT C1 
+     FROM YESMAIL WHERE C1 < 0;
+C1    
+------
+-1    
+ij> -- PASS:0890 If C1 = -1?
+   UPDATE YESMAIL
+     SET C1 = C1 - 1;
+2 rows inserted/updated/deleted
+ij> -- PASS:0890 If update completed successfully?
+   SELECT COUNT(*) 
+     FROM YESMAIL
+     WHERE C1 = 32765;
+1          
+-----------
+0          
+ij> -- PASS:0890 If COUNT = 0?
+   SELECT COUNT(*) 
+     FROM YESMAIL
+     WHERE C1 = 32766;
+1          
+-----------
+1          
+ij> -- PASS:0890 If COUNT = 1?
+   SELECT COUNT(*) 
+     FROM YESMAIL
+     WHERE C1 = 32767;
+1          
+-----------
+0          
+ij> -- PASS:0890 If COUNT = 0?
+   COMMIT WORK;
+ij> --0   DROP TABLE YESMAIL CASCADE;
+   DROP TABLE YESMAIL ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0890 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0890 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml178.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml178.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml178.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,261 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML178  
+-- SQL Test Suite, V6.0, Interactive SQL, dml178.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0891 FIPS sizing, 250 columns, 4000 char data statement!
+   CREATE TABLE L1 (
+C1 INT, C2 INT, C3 INT, C4 INT, C5 INT, C6 INT, 
+C7 INT, C8 INT, C9 INT, C10 INT, C11 INT, C12 INT, 
+C13 INT, C14 INT, C15 INT, C16 INT, C17 INT, C18 INT, 
+C19 INT, C20 INT, C21 INT, C22 INT, C23 INT, C24 INT, 
+C25 INT, C26 INT, C27 INT, C28 INT, C29 INT, C30 INT, 
+C31 INT, C32 INT, C33 INT, C34 INT, C35 INT, C36 INT, 
+C37 INT, C38 INT, C39 INT, C40 INT, C41 INT, C42 INT, 
+C43 INT, C44 INT, C45 INT, C46 INT, C47 INT, C48 INT, 
+C49 INT, C50 INT, C51 INT, C52 INT, C53 INT, C54 INT, 
+C55 INT, C56 INT, C57 INT, C58 INT, C59 INT, C60 INT, 
+C61 INT, C62 INT, C63 INT, C64 INT, C65 INT, C66 INT, 
+C67 INT, C68 INT, C69 INT, C70 INT, C71 INT, C72 INT, 
+C73 INT, C74 INT, C75 INT, C76 INT, C77 INT, C78 INT, 
+C79 INT, C80 INT, C81 INT, C82 INT, C83 INT, C84 INT, 
+C85 INT, C86 INT, C87 INT, C88 INT, C89 INT, C90 INT, 
+C91 INT, C92 INT, C93 INT, C94 INT, C95 INT, C96 INT, 
+C97 INT, C98 INT, C99 INT, C100 INT, C101 INT, C102 INT, 
+C103 INT, C104 INT, C105 INT, C106 INT, C107 INT, C108 INT, 
+C109 INT, C110 INT, C111 INT, C112 INT, C113 INT, C114 INT, 
+C115 INT, C116 INT, C117 INT, C118 INT, C119 INT, C120 INT, 
+C121 INT, C122 INT, C123 INT, C124 INT, C125 INT, C126 INT, 
+C127 INT, C128 INT, C129 INT, C130 INT, C131 INT, C132 INT, 
+C133 INT, C134 INT, C135 INT, C136 INT, C137 INT, C138 INT, 
+C139 INT, C140 INT, C141 INT, C142 INT, C143 INT, C144 INT, 
+C145 INT, C146 INT, C147 INT, C148 INT, C149 INT, C150 INT, 
+C151 INT, C152 INT, C153 INT, C154 INT, C155 INT, C156 INT, 
+C157 INT, C158 INT, C159 INT, C160 INT, C161 INT, C162 INT, 
+C163 INT, C164 INT, C165 INT, C166 INT, C167 INT, C168 INT, 
+C169 INT, C170 INT, C171 INT, C172 INT, C173 INT, C174 INT, 
+C175 INT, C176 INT, C177 INT, C178 INT, C179 INT, C180 INT, 
+C181 INT, C182 INT, C183 INT, C184 INT, C185 INT, C186 INT, 
+C187 INT, C188 INT, C189 INT, C190 INT, C191 INT, C192 INT, 
+C193 INT, C194 INT, C195 INT, C196 INT, C197 INT, C198 INT, 
+C199 INT, C200 INT, C201 INT, C202 INT, C203 INT, C204 INT, 
+C205 INT, C206 INT, C207 INT, C208 INT, C209 INT, C210 INT, 
+C211 INT, C212 INT, C213 INT, C214 INT, C215 INT, C216 INT, 
+C217 INT, C218 INT, C219 INT, C220 INT, C221 INT, C222 INT, 
+C223 INT, C224 INT, C225 INT, C226 INT, C227 INT, C228 INT, 
+C229 INT, C230 INT, C231 INT, C232 INT, C233 INT, C234 INT, 
+C235 INT, C236 INT, C237 INT, C238 INT, C239 INT, C240 INT, 
+C241 INT, C242 INT, C243 INT, C244 INT, C245 INT, C246 INT, 
+C247 INT, C248 INT, C249 INT, C250 INT);
+0 rows inserted/updated/deleted
+ij> -- PASS:0891 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO L1 VALUES (
+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, 53, 54, 
+55, 56, 57, 58, 59, 60, 
+61, 62, 63, 64, 65, 66, 
+67, 68, 69, 70, 71, 72, 
+73, 74, 75, 76, 77, 78, 
+79, 80, 81, 82, 83, 84, 
+85, 86, 87, 88, 89, 90, 
+91, 92, 93, 94, 95, 96, 
+97, 98, 99, 100, 101, 102, 
+103, 104, 105, 106, 107, 108, 
+109, 110, 111, 112, 113, 114, 
+115, 116, 117, 118, 119, 120, 
+121, 122, 123, 124, 125, 126, 
+127, 128, 129, 130, 131, 132, 
+133, 134, 135, 136, 137, 138, 
+139, 140, 141, 142, 143, 144, 
+145, 146, 147, 148, 149, 150, 
+151, 152, 153, 154, 155, 156, 
+157, 158, 159, 160, 161, 162, 
+163, 164, 165, 166, 167, 168, 
+169, 170, 171, 172, 173, 174, 
+175, 176, 177, 178, 179, 180, 
+181, 182, 183, 184, 185, 186, 
+187, 188, 189, 190, 191, 192, 
+193, 194, 195, 196, 197, 198, 
+199, 200, 201, 202, 203, 204, 
+205, 206, 207, 208, 209, 210, 
+211, 212, 213, 214, 215, 216, 
+217, 218, 219, 220, 221, 222, 
+223, 224, 225, 226, 227, 228, 
+229, 230, 231, 232, 233, 234, 
+235, 236, 237, 238, 239, 240, 
+241, 242, 243, 244, 245, 246, 
+247, 248, 249, 250);
+1 row inserted/updated/deleted
+ij> -- PASS:0891 If 1 row inserted successfully?
+   UPDATE L1 SET
+C1 = C1 + 1, C2 = C2 + 1, C3 = C3 + 1, 
+C4 = C4 + 1, C5 = C5 + 1, C6 = C6 + 1, 
+C7 = C7 + 1, C8 = C8 + 1, C9 = C9 + 1, 
+C10 = C10 + 1, C11 = C11 + 1, C12 = C12 + 1, 
+C13 = C13 + 1, C14 = C14 + 1, C15 = C15 + 1, 
+C16 = C16 + 1, C17 = C17 + 1, C18 = C18 + 1, 
+C19 = C19 + 1, C20 = C20 + 1, C21 = C21 + 1, 
+C22 = C22 + 1, C23 = C23 + 1, C24 = C24 + 1, 
+C25 = C25 + 1, C26 = C26 + 1, C27 = C27 + 1, 
+C28 = C28 + 1, C29 = C29 + 1, C30 = C30 + 1, 
+C31 = C31 + 1, C32 = C32 + 1, C33 = C33 + 1, 
+C34 = C34 + 1, C35 = C35 + 1, C36 = C36 + 1, 
+C37 = C37 + 1, C38 = C38 + 1, C39 = C39 + 1, 
+C40 = C40 + 1, C41 = C41 + 1, C42 = C42 + 1, 
+C43 = C43 + 1, C44 = C44 + 1, C45 = C45 + 1, 
+C46 = C46 + 1, C47 = C47 + 1, C48 = C48 + 1, 
+C49 = C49 + 1, C50 = C50 + 1, C51 = C51 + 1, 
+C52 = C52 + 1, C53 = C53 + 1, C54 = C54 + 1, 
+C55 = C55 + 1, C56 = C56 + 1, C57 = C57 + 1, 
+C58 = C58 + 1, C59 = C59 + 1, C60 = C60 + 1, 
+C61 = C61 + 1, C62 = C62 + 1, C63 = C63 + 1, 
+C64 = C64 + 1, C65 = C65 + 1, C66 = C66 + 1, 
+C67 = C67 + 1, C68 = C68 + 1, C69 = C69 + 1, 
+C70 = C70 + 1, C71 = C71 + 1, C72 = C72 + 1, 
+C73 = C73 + 1, C74 = C74 + 1, C75 = C75 + 1, 
+C76 = C76 + 1, C77 = C77 + 1, C78 = C78 + 1, 
+C79 = C79 + 1, C80 = C80 + 1, C81 = C81 + 1, 
+C82 = C82 + 1, C83 = C83 + 1, C84 = C84 + 1, 
+C85 = C85 + 1, C86 = C86 + 1, C87 = C87 + 1, 
+C88 = C88 + 1, C89 = C89 + 1, C90 = C90 + 1, 
+C91 = C91 + 1, C92 = C92 + 1, C93 = C93 + 1, 
+C94 = C94 + 1, C95 = C95 + 1, C96 = C96 + 1, 
+C97 = C97 + 1, C98 = C98 + 1, C99 = C99 + 1, 
+C100 = C100 + 1, C101 = C101 + 1, C102 = C102 + 1, 
+C103 = C103 + 1, C104 = C104 + 1, C105 = C105 + 1, 
+C106 = C106 + 1, C107 = C107 + 1, C108 = C108 + 1, 
+C109 = C109 + 1, C110 = C110 + 1, C111 = C111 +1, 
+C112 = C112 +1, C113 = C113 +1, C114 = C114 +1, 
+C115 = C115 +1, C116 = C116 +1, C117 = C117 +1, 
+C118 = C118 +1, C119 = C119 +1, C120 = C120 +1, 
+C121 = C121 +1, C122 = C122 +1, C123 = C123 +1, 
+C124 = C124 +1, C125 = C125 +1, C126 = C126 +1, 
+C127 = C127 +1, C128 = C128 +1, C129 = C129 +1, 
+C130 = C130 +1, C131 = C131 +1, C132 = C132 +1, 
+C133 = C133 +1, C134 = C134 +1, C135 = C135 +1, 
+C136 = C136 +1, C137 = C137 +1, C138 = C138 +1, 
+C139 = C139 +1, C140 = C140 +1, C141 = C141 +1, 
+C142 = C142 +1, C143 = C143 +1, C144 = C144 +1, 
+C145 = C145 +1, C146 = C146 +1, C147 = C147 +1, 
+C148 = C148 +1, C149 = C149 +1, C150 = C150 +1, 
+C151 = C151 +1, C152 = C152 +1, C153 = C153 +1, 
+C154 = C154 +1, C155 = C155 +1, C156 = C156 +1, 
+C157 = C157 +1, C158 = C158 +1, C159 = C159 +1, 
+C160 = C160 +1, C161 = C161 +1, C162 = C162 +1, 
+C163 = C163 +1, C164 = C164 +1, C165 = C165 +1, 
+C166 = C166 +1, C167 = C167 +1, C168 = C168 +1, 
+C169 = C169 +1, C170 = C170 +1, C171 = C171 +1, 
+C172 = C172 +1, C173 = C173 +1, C174 = C174 +1, 
+C175 = C175 +1, C176 = C176 +1, C177 = C177 +1, 
+C178 = C178 +1, C179 = C179 +1, C180 = C180 +1, 
+C181 = C181 +1, C182 = C182 +1, C183 = C183 +1, 
+C184 = C184 +1, C185 = C185 +1, C186 = C186 +1, 
+C187 = C187 +1, C188 = C188 +1, C189 = C189 +1, 
+C190 = C190 +1, C191 = C191 +1, C192 = C192 +1, 
+C193 = C193 +1, C194 = C194 +1, C195 = C195 +1, 
+C196 = C196 +1, C197 = C197 +1, C198 = C198 +1, 
+C199 = C199 +1, C200 = C200 +1, C201 = C201 +1, 
+C202 = C202 +1, C203 = C203 +1, C204 = C204 +1, 
+C205 = C205 +1, C206 = C206 +1, C207 = C207 +1, 
+C208 = C208 +1, C209 = C209 +1, C210 = C210 +1, 
+C211 = C211 +1, C212 = C212 +1, C213 = C213 +1, 
+C214 = C214 +1, C215 = C215 +1, C216 = C216 +1, 
+C217 = C217 +1, C218 = C218 +1, C219 = C219 +1, 
+C220 = C220 +1, C221 = C221 +1, C222 = C222 +1, 
+C223 = C223 +1, C224 = C224 +1, C225 = C225 +1, 
+C226 = C226 +1, C227 = C227 +1, C228 = C228 +1, 
+C229 = C229 +1, C230 = C230 +1, C231 = C231 +1, 
+C232 = C232 +1, C233 = C233 +1, C234 = C234 +1, 
+C235 = C235 +1, C236 = C236 +1, C237 = C237 +1, 
+C238 = C238 +1, C239 = C239 +1, C240 = C240 +1, 
+C241 = C241 +1, C242 = C242 +1, C243 = C243 +1, 
+C244 = C244 +1, C245 = C245 +1, C246 = C246 +1, 
+C247 = C247 +1, C248 = C248 +1, C249 = C249 +1, 
+C250 = C250 +1;
+1 row inserted/updated/deleted
+ij> -- PASS:0891 If update completed successfully?
+-- modified select to avoid a problem with sed in processing test result
+   SELECT
+C1, C2, C3, C4, C5, C6, 
+C7, C8, C9, C10, C11, C12, 
+C13, C14, C15, C16, C17, C18, 
+C19, C20, C21, C22, C23, C24, 
+C25, C26, C27, C28, C29, C30, 
+C31, C32, C33, C34, C35, C36, 
+C37, C38, C39, C40, C41, C42, 
+C43, C44, C45, C46, C47, C48, 
+C49, C50, C51, C52, C53, C54, 
+C55, C56, C57, C58, C59, C60, 
+C61, C62, C63, C64, C65, C66, 
+C67, C68, C69, C70, C71, C72, 
+C73, C74, C75, C76, C77, C78, 
+C79, C80, C81, C82, C83, C84, 
+C85, C86, C87, C88, C89, C90, 
+C91, C92, C93, C94, C95, C96, 
+C97, C98, C99, C100, C101, C102, 
+C103, C104, C105, C106, C107, C108, 
+C109, C110, C111, C112, C113, C114, 
+C115, C116, C117, C118, C119, C120, 
+--O C121, C122, C123, C124, C125, C126, 
+ C121, C122, C123, C124, C125, C126
+from l1;
+C1         |C2         |C3         |C4         |C5         |C6         |C7         |C8         |C9         |C10        |C11        |C12        |C13        |C14        |C15        |C16        |C17        |C18        |C19        |C20        |C21        |C22        |C23        |C24        |C25        |C26        |C27        |C28        |C29        |C30        |C31        |C32        |C33        |C34        |C35        |C36        |C37        |C38        |C39        |C40        |C41        |C42        |C43        |C44        |C45        |C46        |C47        |C48        |C49        |C50        |C51        |C52        |C53        |C54        |C55        |C56        |C57        |C58        |C59        |C60        |C61        |C62        |C63        |C64        |C65        |C66        |C67        |C68        |C69        |C70        |C71        |C72        |C73        |C74        |C75        |C76        |C77        |C78        |C79        |C80        |C81        |C82        |C83        |C84        |C85        |C86 
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+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         |53         |54         |55         |56         |57         |58         |59         |60         |61         |62         |63         |64         |65         |66         |67         |68         |69         |70         |71         |72         |73         |74         |75         |76         |77         |78         |79         |80         |81         |82         |83         |84         |85         |86         |87         |88         |89         |90         |91         |92         |93         |94         |95         |96         |97         |98         |99         |100        |101        |102        |103        |104        |105        |106        |107        |108        |109        |110        |111        |112        |113        |114        |115        |116        |117        |118        |119        |120        |121        |122        |123        |124        |125        |126        |127        
+ij> SELECT
+C127, C128, C129, C130, C131, C132, 
+C133, C134, C135, C136, C137, C138, 
+C139, C140, C141, C142, C143, C144, 
+C145, C146, C147, C148, C149, C150, 
+C151, C152, C153, C154, C155, C156, 
+C157, C158, C159, C160, C161, C162, 
+C163, C164, C165, C166, C167, C168, 
+C169, C170, C171, C172, C173, C174, 
+C175, C176, C177, C178, C179, C180, 
+C181, C182, C183, C184, C185, C186, 
+C187, C188, C189, C190, C191, C192, 
+C193, C194, C195, C196, C197, C198, 
+C199, C200, C201, C202, C203, C204, 
+C205, C206, C207, C208, C209, C210, 
+C211, C212, C213, C214, C215, C216, 
+C217, C218, C219, C220, C221, C222, 
+C223, C224, C225, C226, C227, C228, 
+C229, C230, C231, C232, C233, C234, 
+C235, C236, C237, C238, C239, C240, 
+C241, C242, C243, C244, C245, C246, 
+C247, C248, C249, C250
+FROM L1;
+C127       |C128       |C129       |C130       |C131       |C132       |C133       |C134       |C135       |C136       |C137       |C138       |C139       |C140       |C141       |C142       |C143       |C144       |C145       |C146       |C147       |C148       |C149       |C150       |C151       |C152       |C153       |C154       |C155       |C156       |C157       |C158       |C159       |C160       |C161       |C162       |C163       |C164       |C165       |C166       |C167       |C168       |C169       |C170       |C171       |C172       |C173       |C174       |C175       |C176       |C177       |C178       |C179       |C180       |C181       |C182       |C183       |C184       |C185       |C186       |C187       |C188       |C189       |C190       |C191       |C192       |C193       |C194       |C195       |C196       |C197       |C198       |C199       |C200       |C201       |C202       |C203       |C204       |C205       |C206       |C207       |C208       |C209       |C210       |C211       |C212
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+128        |129        |130        |131        |132        |133        |134        |135        |136        |137        |138        |139        |140        |141        |142        |143        |144        |145        |146        |147        |148        |149        |150        |151        |152        |153        |154        |155        |156        |157        |158        |159        |160        |161        |162        |163        |164        |165        |166        |167        |168        |169        |170        |171        |172        |173        |174        |175        |176        |177        |178        |179        |180        |181        |182        |183        |184        |185        |186        |187        |188        |189        |190        |191        |192        |193        |194        |195        |196        |197        |198        |199        |200        |201        |202        |203        |204        |205        |206        |207        |208        |209        |210        |211        |212        |213        |214        |215        |216        |217        |218        |219        |220        |221        |222        |223        |224        |225        |226        |227        |228        |229        |230        |231        |232        |233        |234        |235        |236        |237        |238        |239        |240        |241        |242        |243        |244        |245        |246        |247        |248        |249        |250        |251        
+ij> -- PASS:0891 If 250 values are returned with values from 2 thru 251?
+   COMMIT WORK;
+ij> --O   DROP TABLE L1 CASCADE;
+   DROP TABLE L1 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0891 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0891 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml179.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml179.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml179.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,159 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML179  
+-- SQL Test Suite, V6.0, Interactive SQL, dml179.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0892 FIPS sizing, rowlen >= 8000, statement var >= 4000!
+   CREATE TABLE T0892 (
+     INTKEY NUMERIC (3) NOT NULL PRIMARY KEY,
+     NAAM VARCHAR (1000),
+     ADDRESS VARCHAR (1000),
+     KEYWORDS VARCHAR (1000),
+     FUNCTION1 VARCHAR (1000),
+     FUNCTION2 VARCHAR (1000),
+     DESCRIPT1 VARCHAR (1000),
+     DESCRIPT2 VARCHAR (1000),
+     DESCRIPT3 VARCHAR (978));
+0 rows inserted/updated/deleted
+ij> -- PASS:0892 If table created successfully?
+   COMMIT WORK;
+ij> INSERT INTO T0892 (INTKEY, NAAM, ADDRESS, KEYWORDS, DESCRIPT3) 
+              VALUES (0,
+'John                                                               ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                            Smith',  
+'1313 Osprey Alley                                                  ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'Box 35B Sector 28 Quadrant 3                                        ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'Rural Route 29837-39234234324-XRZ                                   ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'Beverly Hills, CA                                                   ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                            90210',  
+'aardvark osprey          metrology                                 ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'synthetic             SQL RDA PDP                                   ' ||
+'                                                                    ' ||
+'          antelope gnu yak bison quadruped cattle                   ' ||
+'                                                                    ' ||
+'           CORBA IDL       Amsterdam                                ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'production  crystal growth                                          ' ||
+'                                                                    ' ||
+'                                                                    ' ||
+'                                          gravity',  
+'filler filler filler blah blah blah                                ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                    ' ||
+--O'                                                                 ' ||
+'this is going to be overwritten');
+1 row inserted/updated/deleted
+ij> -- PASS:0892 If 1 row inserted successfully?
+   UPDATE T0892
+     SET FUNCTION1 =
+'Harry works in the Redundancy Automation Division of the ' ||
+'Materials ' ||
+'Blasting Laboratory in the National Cattle Acceleration ' ||
+'Project of ' ||
+'lower Michigan.  His job is to document the trajectory of ' ||
+'cattle and ' ||
+'correlate the loft and acceleration versus the quality of ' ||
+'materials ' ||
+'used in the trebuchet.  He served ten years as the ' ||
+'vice-president in ' ||
+'charge of marketing in the now defunct milk trust of the ' ||
+'Pennsylvania ' ||
+'Coalition of All Things Bovine.  Prior to that he ' ||
+'established himself ' ||
+'as a world-class graffiti artist and source of all good ' ||
+'bits related ' ||
+'to channel dredging in poor weather.  He is author of over ' ||
+'ten thousand ' ||
+'paperback novels, including such titles as "How Many ' ||
+'Pumpkins will Fit ' ||
+'on the Head of a Pin," "A Whole Bunch of Useless Things ' ||
+'that you Don''t ' ||
+'Want to Know," and "How to Lift Heavy Things Over your ' ||
+'Head without ' ||
+'Hurting Yourself or Dropping Them."  He attends ANSI and ' ||
+'ISO standards ' ||
+'meetings in his copious free time and funds the development ' ||
+'of test ' ||
+'suites with his pocket change.'
+  WHERE INTKEY = 0;
+1 row inserted/updated/deleted
+ij> -- PASS:0892 If update completed successfully?
+   UPDATE T0892
+     SET FUNCTION2 = FUNCTION1,
+     DESCRIPT1 = FUNCTION1,
+     DESCRIPT2 = FUNCTION1,
+     DESCRIPT3 = SUBSTR (FUNCTION1, 1, 978);
+1 row inserted/updated/deleted
+ij> -- PASS:0892 If update completed successfully?
+   SELECT LENGTH (NAAM) +
+                LENGTH (ADDRESS) +
+                LENGTH (KEYWORDS) +
+                LENGTH (FUNCTION1) +
+                LENGTH (FUNCTION2) +
+                LENGTH (DESCRIPT1) +
+                LENGTH (DESCRIPT2) +
+                LENGTH (DESCRIPT3) + 22
+     FROM T0892
+     WHERE INTKEY = 0;
+1          
+-----------
+8000       
+ij> -- PASS:0892 If LENGTH = 8000?
+   COMMIT WORK;
+ij> --O   DROP TABLE T0892 CASCADE;
+   DROP TABLE T0892 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0892 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0892 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml181.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml181.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml181.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,167 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML181  
+-- SQL Test Suite, V6.0, Interactive SQL, dml181.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0894 FIPS sizing, length of column lists >= 750!
+   CREATE TABLE LONG_NAMED_PEOPLE (
+     FIRSTNAME VARCHAR (373) NOT NULL,
+     LASTNAME VARCHAR (373) NOT NULL,
+     AGE INT,
+     PRIMARY KEY (FIRSTNAME, LASTNAME));
+0 rows inserted/updated/deleted
+ij> -- PASS:0894 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE ORDERS (
+     FIRSTNAME VARCHAR (373),
+     LASTNAME VARCHAR (373),
+     TITLE VARCHAR (80),
+     COST NUMERIC(5,2),
+	FOREIGN KEY (FIRSTNAME, LASTNAME)
+	REFERENCES LONG_NAMED_PEOPLE);
+0 rows inserted/updated/deleted
+ij> -- PASS:0894 If table created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW PEOPLE_ORDERS AS
+--O     SELECT * FROM LONG_NAMED_PEOPLE  JOIN ORDERS 
+     SELECT a.firstname, a.lastname, age, cost FROM LONG_NAMED_PEOPLE a JOIN ORDERS
+     ON (a.FIRSTNAME=ORDERS.FIRSTNAME and a.LASTNAME=ORDERS.LASTNAME);
+0 rows inserted/updated/deleted
+ij> -- PASS:0894 If view created successfully?
+   COMMIT WORK;
+ij> INSERT INTO LONG_NAMED_PEOPLE VALUES (
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaa', 
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbb',
+20);
+1 row inserted/updated/deleted
+ij> -- PASS:0894 If 1 row inserted successfully?
+   INSERT INTO LONG_NAMED_PEOPLE VALUES (
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccc',
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddd',
+25);
+1 row inserted/updated/deleted
+ij> -- PASS:0894 If 1 row inserted successfully?
+   INSERT INTO ORDERS VALUES (
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaa',
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbb',
+'Gidget Goes Skiing',
+29.95);
+1 row inserted/updated/deleted
+ij> -- PASS:0894 If 1 row inserted successfully?
+   INSERT INTO ORDERS VALUES (
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' ||
+'aaaaaaaaaaaaaaaaaaaaaaaaa',
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' ||
+'bbbbbbbbbbbbbbbbbbbbbbbbb',
+'Barney Goes Hawaiian',
+19.95);
+1 row inserted/updated/deleted
+ij> -- PASS:0894 If 1 row inserted successfully?
+   INSERT INTO ORDERS VALUES (
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccccccccccccccccccccccccccccc' ||
+'ccccccccccccccccccccccccccccccc',
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd' ||
+'ddddddddddddddddddddddddddddddd',
+'Invasion of the Smurfs',
+9.95);
+1 row inserted/updated/deleted
+ij> -- PASS:0894 If 1 row inserted successfully?
+   SELECT FIRSTNAME, LASTNAME, AVG(COST)
+     FROM PEOPLE_ORDERS
+     GROUP BY LASTNAME, FIRSTNAME
+     ORDER BY LASTNAME, FIRSTNAME;
+FIRSTNAME                                                                                                                       |LASTNAME                                                                                                                        |3          
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&|bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb&|24.9500    
+ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc&|ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd&|9.9500     
+ij> -- PASS:0894 If 2 rows are returned in the following order?
+-- NOTE:  Columns c1 and c2 are 373 characters each!
+--                   c1           c2            c3
+--                   ==           ==            ==
+-- PASS:0894 If  aaaaaaaa....    bbbbbbbb....  24.95 (+ or - 0.01)?
+-- PASS:0894 If  cccccccc....    dddddddd....   9.95 (+ or - 0.01)?
+   COMMIT WORK;
+ij> --O   DROP TABLE ORDERS CASCADE;
+   drop view people_orders;
+0 rows inserted/updated/deleted
+ij> DROP TABLE ORDERS ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0894 If table dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE LONG_NAMED_PEOPLE CASCADE;
+   DROP TABLE LONG_NAMED_PEOPLE ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0894 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0894 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml182.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml182.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/dml182.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,139 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML182  
+-- SQL Test Suite, V6.0, Interactive SQL, dml182.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0895 FIPS sizing, columns in list >= 15!
+   CREATE TABLE ID_CODES (
+     CODE1 INT NOT NULL,
+     CODE2 INT NOT NULL,
+     CODE3 INT NOT NULL,
+     CODE4 INT NOT NULL,
+     CODE5 INT NOT NULL,
+     CODE6 INT NOT NULL,
+     CODE7 INT NOT NULL,
+     CODE8 INT NOT NULL,
+     CODE9 INT NOT NULL,
+     CODE10 INT NOT NULL,
+     CODE11 INT NOT NULL,
+     CODE12 INT NOT NULL,
+     CODE13 INT NOT NULL,
+     CODE14 INT NOT NULL,
+     CODE15 INT NOT NULL,
+     PRIMARY KEY (CODE1, CODE2, CODE3, CODE4, CODE5,
+       CODE6, CODE7, CODE8, CODE9, CODE10,
+       CODE11, CODE12, CODE13, CODE14, CODE15));
+0 rows inserted/updated/deleted
+ij> -- PASS:0895 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE ORDERS (
+     CODE1 INT,
+     CODE2 INT,
+     CODE3 INT,
+     CODE4 INT,
+     CODE5 INT,
+     CODE6 INT,
+     CODE7 INT,
+     CODE8 INT,
+     CODE9 INT,
+     CODE10 INT,
+     CODE11 INT,
+     CODE12 INT,
+     CODE13 INT,
+     CODE14 INT,
+     CODE15 INT,
+     TITLE VARCHAR (80),
+     COST NUMERIC(5,2),
+     FOREIGN KEY (CODE1, CODE2, CODE3, CODE4, CODE5,
+       CODE6, CODE7, CODE8, CODE9, CODE10,
+       CODE11, CODE12, CODE13, CODE14, CODE15)
+     REFERENCES ID_CODES);
+0 rows inserted/updated/deleted
+ij> -- PASS:0895 If table created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW ID_ORDERS (CODE1, CODE2, CODE3, CODE4, 
+	CODE5, CODE6, CODE7, CODE8, CODE9, CODE10,
+	CODE11, CODE12, CODE13, CODE14, CODE15, title, cost) AS
+--O     SELECT * FROM ID_CODES JOIN ORDERS
+     SELECT  
+       a.CODE1, a.CODE2, a.CODE3, a.CODE4, a.CODE5,
+         a.CODE6, a.CODE7, a.CODE8, a.CODE9, a.CODE10,
+         a.CODE11, a.CODE12, a.CODE13, a.CODE14, a.CODE15, title, cost
+	FROM ID_CODES a JOIN ORDERS
+       ON (a.CODE1=ORDERS.CODE1 and a.CODE2=ORDERS.CODE2 and a.CODE3=ORDERS.CODE3 and a.CODE4=ORDERS.CODE4 and a.CODE5=ORDERS.CODE5 and
+         a.CODE6=ORDERS.CODE6 and a.CODE7=ORDERS.CODE7 and a.CODE8=ORDERS.CODE8 and a.CODE9=ORDERS.CODE9 and a.CODE10=ORDERS.CODE10 and
+         a.CODE11=ORDERS.CODE11 and a.CODE12=ORDERS.CODE12 and a.CODE13=ORDERS.CODE13 and a.CODE14=ORDERS.CODE14 and a.CODE15=ORDERS.CODE15);
+0 rows inserted/updated/deleted
+ij> -- PASS:0895 If view created successfully
+   COMMIT WORK;
+ij> INSERT INTO ID_CODES VALUES (
+     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
+1 row inserted/updated/deleted
+ij> INSERT INTO ID_CODES VALUES (
+     1, 2, 3, 4, 5, 6, 7, 9, 8, 10, 11, 12, 13, 14, 15);
+1 row inserted/updated/deleted
+ij> INSERT INTO ORDERS VALUES (
+     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+     'Gidget Goes Skiing',
+     29.95);
+1 row inserted/updated/deleted
+ij> INSERT INTO ORDERS VALUES (
+     1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+     'Barney Goes Hawaiian',
+     19.95);
+1 row inserted/updated/deleted
+ij> INSERT INTO ORDERS VALUES (
+     1, 2, 3, 4, 5, 6, 7, 9, 8, 10, 11, 12, 13, 14, 15,
+     'Invasion of the Smurfs',
+     9.95);
+1 row inserted/updated/deleted
+ij> -- PASS:0895 If 5 rows inserted successfully in previous 5 inserts?
+   SELECT CODE1, CODE2, CODE3, CODE4, CODE5,
+       CODE6, CODE7, CODE8, CODE9, CODE10,
+       CODE11, CODE12, CODE13, CODE14, CODE15,
+     AVG(COST)
+     FROM ID_ORDERS
+     GROUP BY CODE1, CODE2, CODE3, CODE4, CODE5,
+       CODE6, CODE7, CODE8, CODE9, CODE10,
+       CODE11, CODE12, CODE13, CODE14, CODE15
+     ORDER BY CODE1, CODE2, CODE3, CODE4, CODE5,
+       CODE6, CODE7, CODE8, CODE9, CODE10,
+       CODE11, CODE12, CODE13, CODE14, CODE15;
+CODE1      |CODE2      |CODE3      |CODE4      |CODE5      |CODE6      |CODE7      |CODE8      |CODE9      |CODE10     |CODE11     |CODE12     |CODE13     |CODE14     |CODE15     |16         
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+1          |2          |3          |4          |5          |6          |7          |8          |9          |10         |11         |12         |13         |14         |15         |24.9500    
+1          |2          |3          |4          |5          |6          |7          |9          |8          |10         |11         |12         |13         |14         |15         |9.9500     
+ij> -- PASS:0895 If 2 rows are returned?
+--                 avg(cost)
+--                 =========
+-- PASS:0895 If    24.95 (+ or - 0.01)  ?
+-- PASS:0895 If     9.95 (+ or - 0.01)  ?
+   COMMIT WORK;
+ij> --O   DROP TABLE ORDERS CASCADE;
+   drop view id_orders;
+0 rows inserted/updated/deleted
+ij> DROP TABLE ORDERS ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0895 If table dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE ID_CODES CASCADE;
+   DROP TABLE ID_CODES ;
+0 rows inserted/updated/deleted
+ij> -- PASS:0895 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 0895 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/flattab.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/flattab.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/flattab.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,62 @@
+ij> AUTOCOMMIT OFF;
+ij> -- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID FLATER **
+-- ***************************************************************
+-- MODULE  FLATTAB  
+-- SQL Test Suite, V6.0, Interactive SQL, flattab.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+-- This routine initializes the contents of tables:
+--      BASE_VS1, USIG and U_SIG
+-- This routine may be run at any time to re-initialize tables.
+   DELETE FROM BASE_VS1;
+0 rows inserted/updated/deleted
+ij> INSERT INTO BASE_VS1 VALUES (0,1);
+1 row inserted/updated/deleted
+ij> INSERT INTO BASE_VS1 VALUES (1,0);
+1 row inserted/updated/deleted
+ij> INSERT INTO BASE_VS1 VALUES (0,0);
+1 row inserted/updated/deleted
+ij> INSERT INTO BASE_VS1 VALUES (1,1);
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM BASE_VS1;
+1          
+-----------
+4          
+ij> -- PASS:Setup If count = 4?
+   DELETE FROM USIG;
+0 rows inserted/updated/deleted
+ij> INSERT INTO USIG VALUES (0,2);
+1 row inserted/updated/deleted
+ij> INSERT INTO USIG VALUES (1,3);
+1 row inserted/updated/deleted
+ij> DELETE FROM U_SIG;
+0 rows inserted/updated/deleted
+ij> INSERT INTO U_SIG VALUES (4,6);
+1 row inserted/updated/deleted
+ij> INSERT INTO U_SIG VALUES (5,7);
+1 row inserted/updated/deleted
+ij> SELECT COUNT(*) FROM USIG;
+1          
+-----------
+2          
+ij> -- PASS:Setup If count = 2?
+   SELECT COUNT(*) FROM U_SIG;
+1          
+-----------
+2          
+ij> -- PASS:Setup If count = 2?
+   COMMIT WORK;
+ij> -- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml099.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml099.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml099.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,63 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML099  
+-- SQL Test Suite, V6.0, Interactive SQL, dml099.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- NO_TEST:0581 Implicit numeric casting (feature 9) dynamic!
+-- Testing dynamic SQL
+-- *********************************************
+-- TEST:0582 Implicit numeric casting (feature 9) static!
+   CREATE TABLE ICAST2 (C1 INT, C2 DOUBLE PRECISION, C3 NUMERIC(5,3));
+0 rows inserted/updated/deleted
+ij> -- PASS:0582 If table is created?
+   COMMIT WORK;
+ij> INSERT INTO ICAST2 VALUES (.31416E+1, 3, .3142293E+1);
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is inserted?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+3          |3.0                   |3.142   
+ij> -- PASS:0582 If 1 row is selected with C1 = 3 and C3 = 3.142?
+   UPDATE ICAST2 SET C1 = 5.2413E+0, C2 = 5, C3 = 5.2413E+0;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+5          |5.0                   |5.241   
+ij> -- PASS:0582 If 1 row is selected with C1 = 5 and C3 = 5.241?
+   UPDATE ICAST2 SET C1 = 6.28E+0, C2 = 2.1E+0, C3 = .07E+2;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   UPDATE ICAST2 SET C1 = C2, C3 = C3 + C2;
+1 row inserted/updated/deleted
+ij> -- PASS:0582 If 1 row is updated?
+   SELECT C1, C2, C3 FROM ICAST2;
+C1         |C2                    |C3      
+-------------------------------------------
+2          |2.1                   |9.100   
+ij> -- PASS:0582 If 1 row is selected with C1 = 2 and C3 = 9.100?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE ICAST2 CASCADE;
+   DROP TABLE ICAST2 ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0582 <<< END TEST
+-- *********************************************
+-- NO_TEST:0583 FIPS sizing, Dynamic SQL character strings!
+-- Testing dynamic SQL
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml119.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml119.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/j9_13/dml119.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,103 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  DML119  
+-- SQL Test Suite, V6.0, Interactive SQL, dml119.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION FLATER
+   set schema FLATER;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+FLATER                                                                                                                          
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:0647 Feature 20, CAST functions (static)!
+   CREATE TABLE USER_INPUT (
+   USER_ID INT, USER_TYPED CHAR (10),
+   CASH_BALANCE NUMERIC (5, 2));
+0 rows inserted/updated/deleted
+ij> -- PASS:0647 If table is created?
+   COMMIT WORK;
+ij> CREATE VIEW STANDARD_INPUT AS
+  SELECT CAST (USER_ID AS CHAR (10)) AS USER_NAME,
+         CAST (USER_TYPED AS NUMERIC (5, 2)) AS USER_INPUT,
+         CAST (CASH_BALANCE AS REAL) AS RECEIVABLE
+    FROM USER_INPUT;
+0 rows inserted/updated/deleted
+ij> -- PASS:0647 If view is created?
+   COMMIT WORK;
+ij> INSERT INTO USER_INPUT VALUES
+  (0, '999.99', 999.99);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (1, '-999.99', -999.99);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (2, '  54.', 54);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS INT), CAST (-7.02 AS CHAR (10)),
+  CAST (' -.702E+1' AS NUMERIC (5, 2)));
+ERROR 22018: Invalid character string format for type DECIMAL.
+ij> -- PASS:0647 If 1 row is inserted?
+   SELECT CAST (AVG (CAST (USER_TYPED AS INT)) AS INT)
+  FROM USER_INPUT;
+1          
+-----------
+ERROR 22018: Invalid character string format for type INTEGER.
+ij> -- PASS:0647 If 1 row selected and value is 11 or 12?
+   SELECT AVG (USER_INPUT)
+  FROM STANDARD_INPUT;
+1          
+-----------
+18.0000    
+ij> -- PASS:0647 If 1 row selected and value is 11.745 +- 0.01?
+   UPDATE USER_INPUT
+  SET USER_TYPED = CAST (0 AS CHAR (10)),
+  CASH_BALANCE = CASH_BALANCE - CAST ('500' AS NUMERIC (5, 2))
+  WHERE USER_ID = CAST ('-0' AS INT);
+1 row inserted/updated/deleted
+ij> -- PASS:0647 If 1 row is updated?
+   SELECT SUM (USER_INPUT) * 100, SUM (RECEIVABLE)
+  FROM STANDARD_INPUT;
+1                    |2            
+-----------------------------------
+-94599.00            |-446.0       
+ij> -- PASS:0647 If 1 row selected and first value is -95301 +- 4?
+-- PASS:0647 AND second value is -453.02 +- 0.04?
+   DELETE FROM USER_INPUT;
+3 rows inserted/updated/deleted
+ij> INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS INT), CAST (-7.02 AS CHAR (10)),
+  CAST (' -.702E+1' AS NUMERIC (5, 2)));
+ERROR 22018: Invalid character string format for type DECIMAL.
+ij> -- PASS:0647 If 1 row is inserted?
+   INSERT INTO USER_INPUT VALUES
+  (CAST ('3' AS SMALLINT), CAST (-7.02 AS CHAR (5)),
+  CAST (' -.702E+1' AS DECIMAL (3, 2)));
+ERROR 22018: Invalid character string format for type DECIMAL.
+ij> -- PASS:0647 If 1 row is inserted?
+   SELECT USER_ID
+  FROM USER_INPUT
+  GROUP BY USER_ID, USER_TYPED, CASH_BALANCE
+  HAVING COUNT(*) = 2;
+USER_ID    
+-----------
+ij> -- PASS:0647 If 1 row selected and USER_ID = 3?
+   COMMIT WORK;
+ij> --O   DROP TABLE USER_INPUT CASCADE;
+   drop view standard_input;
+0 rows inserted/updated/deleted
+ij> DROP TABLE USER_INPUT ;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 0647 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema1.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema1.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema1.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,400 @@
+ij> -- SQL Test Suite, V6.0, Schema Definition, schema1.std
+-- 59-byte ID
+-- TEd Version #
+-- date_time print
+-- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID HU ******
+-- ***************************************************************
+-- This file defines the base tables used in most of the tests.
+-- This is a standard schema definition.
+  CREATE SCHEMA
+--O  AUTHORIZATION HU;
+  HU;
+0 rows inserted/updated/deleted
+ij> set schema hu;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE BASE_TESTREPORT
+   (TESTNO   CHAR(4),
+    RESULT   CHAR(4),
+    TESTTYPE  CHAR(3));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE HU.ECCO (C1 CHAR(2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF
+   (EMPNUM   CHAR(3) NOT NULL UNIQUE,
+    EMPNAME  CHAR(20),
+    GRADE    DECIMAL(4),
+    CITY     CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ
+   (PNUM     CHAR(3) NOT NULL UNIQUE,
+    PNAME    CHAR(20),
+    PTYPE    CHAR(6),
+    BUDGET   DECIMAL(9),
+    CITY     CHAR(15)) ;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS
+   (EMPNUM   CHAR(3) NOT NULL,
+    PNUM     CHAR(3) NOT NULL,
+    HOURS    DECIMAL(5),
+--O    UNIQUE(EMPNUM,PNUM))
+    constraint worksc1 UNIQUE(EMPNUM,PNUM)
+    );
+0 rows inserted/updated/deleted
+ij> CREATE TABLE FIPS1
+   (FIPS_TEST CHAR(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF1 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ1 (PNUM    CHAR(3) NOT NULL UNIQUE,
+                PNAME  CHAR(20),
+                PTYPE  CHAR(6),
+                BUDGET DECIMAL(9),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS1(EMPNUM    CHAR(3) NOT NULL,
+                PNUM    CHAR(3) NOT NULL,
+                HOURS   DECIMAL(5),
+--O                UNIQUE(EMPNUM, PNUM))
+                constraint works1c1 UNIQUE(EMPNUM, PNUM)
+                );
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF3 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF4 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> -- we use the keyword BIGINT, so I have changed
+  -- the name of this table.
+  CREATE TABLE LONGINTTAB (LONG_INT DECIMAL(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEMP_S
+     (EMPNUM  CHAR(3),
+      GRADE DECIMAL(4),
+      CITY CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TMP (T1 CHAR (10), T2 DECIMAL(2), T3 CHAR (10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE AA (CHARTEST     CHAR(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE BB (CHARTEST     CHAR);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE CC (CHARTEST     CHARACTER(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE DD (CHARTEST     CHARACTER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE EE (INTTEST     INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE FF (INTTEST     INT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE GG (REALTEST     REAL);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE HH (SMALLTEST  SMALLINT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE II (DOUBLETEST  DOUBLE PRECISION);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE JJ (FLOATTEST  FLOAT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE KK (FLOATTEST  FLOAT(32));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE LL (NUMTEST  NUMERIC(13,6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MM (NUMTEST  NUMERIC);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE NN (NUMTEST  NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE OO (NUMTEST  NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PP (NUMTEST  DECIMAL(13,6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE QQ (NUMTEST  DECIMAL);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE RR (NUMTEST  DECIMAL(8));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SS (NUMTEST  DEC(13,6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P1 (NUMTEST  NUMERIC(1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P7 (NUMTEST  NUMERIC(7));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P12 (NUMTEST  NUMERIC(12));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P15 (NUMTEST  NUMERIC(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE VTABLE
+         (COL1   INTEGER,
+          COL2   INTEGER,
+          COL3   INTEGER,
+          COL4   INTEGER,
+          COL5   DECIMAL(7,2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE UPUNIQ (NUMKEY  DECIMAL(3) NOT NULL UNIQUE,
+                           COL2    CHAR(2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT80  (TEXXT CHAR(80));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT132  (TEXXT CHAR(132));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT240  (TEXXT CHAR(240));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT256  (TEXXT VARCHAR(256));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT512  (TEXXT VARCHAR(512));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEXT1024  (TEXXT VARCHAR(1024));
+0 rows inserted/updated/deleted
+ij> -- The following tables are used to test the limitations (12-14-88)
+  CREATE TABLE T240(STR240 CHAR(240));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE DEC15(COL1 DECIMAL(15,7));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE FLO15(COL1 FLOAT(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE INT10(COL1 INTEGER, COL2 SMALLINT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T100(C1 CHAR(2),C2 CHAR(2),C3 CHAR(2),C4 CHAR(2),
+                C5 CHAR(2),C6 CHAR(2),C7 CHAR(2),C8 CHAR(2),
+                C9 CHAR(2),C10 CHAR(2),C11 CHAR(2),C12 CHAR(2),
+                C13 CHAR(2),C14 CHAR(2),C15 CHAR(2),C16 CHAR(2),
+                C17 CHAR(2),C18 CHAR(2),C19 CHAR(2),C20 CHAR(2),
+                C21 CHAR(2),C22 CHAR(2),C23 CHAR(2),C24 CHAR(2),
+                C25 CHAR(2),C26 CHAR(2),C27 CHAR(2),C28 CHAR(2),
+                C29 CHAR(2),C30 CHAR(2),C31 CHAR(2),C32 CHAR(2),
+                C33 CHAR(2),C34 CHAR(2),C35 CHAR(2),C36 CHAR(2),
+                C37 CHAR(2),C38 CHAR(2),C39 CHAR(2),C40 CHAR(2),
+                C41 CHAR(2),C42 CHAR(2),C43 CHAR(2),C44 CHAR(2),
+                C45 CHAR(2),C46 CHAR(2),C47 CHAR(2),C48 CHAR(2),
+                C49 CHAR(2),C50 CHAR(2),C51 CHAR(2),C52 CHAR(2),
+                C53 CHAR(2),C54 CHAR(2),C55 CHAR(2),C56 CHAR(2),
+                C57 CHAR(2),C58 CHAR(2),C59 CHAR(2),C60 CHAR(2),
+                C61 CHAR(2),C62 CHAR(2),C63 CHAR(2),C64 CHAR(2),
+                C65 CHAR(2),C66 CHAR(2),C67 CHAR(2),C68 CHAR(2),
+                C69 CHAR(2),C70 CHAR(2),C71 CHAR(2),C72 CHAR(2),
+                C73 CHAR(2),C74 CHAR(2),C75 CHAR(2),C76 CHAR(2),
+                C77 CHAR(2),C78 CHAR(2),C79 CHAR(2),C80 CHAR(2),
+                C81 CHAR(2),C82 CHAR(2),C83 CHAR(2),C84 CHAR(2),
+                C85 CHAR(2),C86 CHAR(2),C87 CHAR(2),C88 CHAR(2),
+                C89 CHAR(2),C90 CHAR(2),C91 CHAR(2),C92 CHAR(2),
+                C93 CHAR(2),C94 CHAR(2),C95 CHAR(2),C96 CHAR(2),
+                C97 CHAR(2),C98 CHAR(2),C99 CHAR(2),C100 CHAR(2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T2000(STR110 CHAR(110),STR120 CHAR(120),
+                   STR130 CHAR(130),STR140 CHAR(140),
+                   STR150 CHAR(150),STR160 CHAR(160),
+                   STR170 CHAR(170),STR180 CHAR(180),
+                   STR190 CHAR(190),STR200 CHAR(200),
+                   STR210 CHAR(210),STR216 CHAR(216));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T8(COL1 CHAR(2) NOT NULL,COL2 CHAR(4) NOT NULL,
+                COL3 CHAR(6) NOT NULL,COL4 CHAR(8) NOT NULL,
+                COL5 CHAR(10) NOT NULL,COL6 CHAR(12) NOT NULL,
+                COL7 CHAR(14),COL8 CHAR(16),
+--O                UNIQUE(COL1,COL2,COL3,COL4,COL5,COL6));
+                constraint t8c1 UNIQUE(COL1,COL2,COL3,COL4,COL5,COL6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T118(STR118 CHAR(118) NOT NULL UNIQUE);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T4(STR110 CHAR(110) NOT NULL,
+                NUM6   NUMERIC(6) NOT NULL,
+                COL3   CHAR(10),COL4 CHAR(20),
+--O                UNIQUE(STR110,NUM6))
+                constraint t4c1 UNIQUE(STR110,NUM6)
+                );
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T12(COL1 CHAR(1), COL2 CHAR(2),
+                 COL3 CHAR(4), COL4 CHAR(6),
+                 COL5 CHAR(8), COL6 CHAR(10),
+                 COL7 CHAR(20), COL8 CHAR(30),
+                 COL9 CHAR(40), COL10 CHAR(50),
+                 COL11 INTEGER, COL12 INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                         DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SV (NUMTEST NUMERIC(8,3));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE JJ_20 (FLOATTEST  FLOAT(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PP_15 (NUMTEST  DECIMAL(15,15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PP_7  (NUMTEST  DECIMAL(15,7));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P15_15 (NUMTEST  NUMERIC(15,15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE P15_7 (NUMTEST  NUMERIC(15,7));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEMP_OBSERV
+               (YEAR_OBSERV  NUMERIC(4),
+                CITY         CHAR(10),
+                MAX_TEMP     NUMERIC(5,2),
+                MIN_TEMP     NUMERIC(5,2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TOKENS
+    (PROG_NO INT, TOKEN_NO INT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WHICH_SCHEMA1 (C1 CHAR (50));
+0 rows inserted/updated/deleted
+ij> -- ************* create view statements follow *************
+   CREATE VIEW TESTREPORT AS
+    SELECT TESTNO, RESULT, TESTTYPE
+    FROM BASE_TESTREPORT;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW CELSIUS_OBSERV (CITY, YEAR_OBSERV, MIN_C, MAX_C)
+      AS SELECT CITY, YEAR_OBSERV, (MIN_TEMP - 32) * 5 / 9,
+                (MAX_TEMP - 32) * 5 / 9
+         FROM TEMP_OBSERV;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW MULTI_YEAR_OBSERV (CITY, HIGH, LOW)
+      AS SELECT CITY, AVG(MAX_TEMP), AVG(MIN_TEMP)
+            FROM TEMP_OBSERV
+            GROUP BY CITY;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW EXTREME_TEMPS (YEAR_OBSERV, HIGH, LOW)
+      AS SELECT YEAR_OBSERV, MAX(MAX_TEMP), MIN(MIN_TEMP)
+            FROM TEMP_OBSERV
+            GROUP BY YEAR_OBSERV;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW SET_TEST (EMP1, EMP_AVG, EMP_MAX) AS
+           SELECT STAFF.EMPNUM, AVG(HOURS), MAX(HOURS)
+           FROM STAFF, WORKS
+           GROUP BY STAFF.EMPNUM;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW DUP_COL (EMP1, PNO, HOURS, HOURS_2) AS
+           SELECT EMPNUM, PNUM, HOURS, HOURS * 2
+           FROM WORKS;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW STAFFV1
+           AS SELECT * FROM STAFF
+              WHERE  GRADE >= 12;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW STAFFV2
+           AS SELECT * FROM STAFF
+              WHERE  GRADE >= 12
+--0           WITH CHECK OPTION
+    ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW STAFFV2_VIEW
+           AS SELECT * 
+              FROM   STAFFV2
+              WHERE  CITY = 'Vienna';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW DOMAIN_VIEW
+           AS SELECT *
+              FROM   WORKS
+              WHERE  EMPNUM = 'E1' AND HOURS = 80
+                  OR EMPNUM = 'E2' AND HOURS = 40
+                  OR EMPNUM = 'E4' AND HOURS = 20
+--0              WITH CHECK OPTION
+			  ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW STAFF2
+           AS SELECT * 
+              FROM   STAFF
+--0           WITH CHECK OPTION
+	;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW STAFF_WORKS_DESIGN (NAME,COST,PROJECT)
+    AS SELECT EMPNAME,HOURS*2*GRADE,PNAME
+     FROM   PROJ,STAFF,WORKS
+     WHERE  STAFF.EMPNUM=WORKS.EMPNUM
+        AND WORKS.PNUM=PROJ.PNUM
+        AND PTYPE='Design';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW SUBSP (EMPNUM,PNUM,HOURS)
+     AS SELECT EMPNUM,PNUM,HOURS
+        FROM   WORKS
+        WHERE  EMPNUM='E3'
+--0     WITH CHECK OPTION
+	 ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW TEMP_SS(EMPNUM,GRADE,CITY)
+     AS SELECT EMPNUM,GRADE,CITY
+        FROM   STAFF
+        WHERE  GRADE > 12
+--0     WITH CHECK OPTION
+	 ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW V_WORKS1                
+           AS SELECT * FROM WORKS       
+              WHERE HOURS > 15          
+--0           WITH CHECK OPTION
+		   ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW V_WORKS2                
+           AS SELECT * FROM V_WORKS1    
+              WHERE EMPNUM = 'E1'       
+                 OR EMPNUM = 'E6';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW V_WORKS3                
+           AS SELECT * FROM V_WORKS2    
+              WHERE PNUM = 'P2'         
+                 OR PNUM = 'P7'         
+--0           WITH CHECK OPTION       
+		   ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW1   
+            AS SELECT ALL CITY
+                     FROM PROJ;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW2 
+            AS SELECT HOURS, EMPNUM, PNUM
+                     FROM WORKS
+                     WHERE HOURS IN (10, 20, 40);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW3  
+            AS SELECT *
+                     FROM WORKS
+                     WHERE PNUM BETWEEN 'P2' AND 'P4'
+                     AND EMPNUM NOT BETWEEN 'E2' AND 'E3';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW4  
+            AS SELECT PNUM, EMPNUM 
+                     FROM WORKS
+                     WHERE PNUM LIKE '_2%';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW5 
+            AS SELECT *
+                     FROM STAFF
+                     WHERE EMPNAME IS NOT NULL AND CITY IS NULL;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW6 
+            AS SELECT EMPNAME, CITY, GRADE
+                     FROM STAFF
+                     WHERE EMPNAME >= 'Betty' AND EMPNUM < 'E35'
+                       OR CITY <= 'Deale' AND GRADE > 12
+                       OR GRADE = 13 AND CITY <> 'Akron';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW7 
+            AS SELECT EMPNAME, CITY, GRADE
+                     FROM STAFFV2
+                     WHERE EMPNAME >= 'Betty' AND EMPNUM < 'E35'
+                       OR CITY <= 'Deale' AND GRADE > 12
+                       OR GRADE = 13 AND CITY <> 'Akron';
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW8 
+            AS SELECT MYTABLE.EMPNUM, MYTABLE.EMPNAME
+                     FROM STAFF MYTABLE
+                     WHERE MYTABLE.GRADE = 12;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW UPDATE_VIEW9 
+            AS SELECT EMPNAME, CITY, GRADE
+                     FROM STAFF
+                     WHERE NOT EMPNAME >= 'Betty' AND EMPNUM <= 'E35'
+                       OR NOT (CITY <= 'Deale') AND GRADE > 9
+                       AND NOT (GRADE = 13 AND CITY <> 'Akron')
+                       OR NOT CITY IN ('Vienna','New York','Deale');
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VSTAFF3 AS SELECT * FROM STAFF3;
+0 rows inserted/updated/deleted
+ij> disconnect;
+ij> exit;

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema4.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema4.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema4.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,126 @@
+WARNING 01J01: Database 'wombat' not created, connection made to existing database instead.
+ij> -- SQL Test Suite, V6.0, Schema Definition, schema4.std
+-- 59-byte ID
+-- TEd Version #
+-- date_time print
+-- ******************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID SULLIVAN1
+-- ******************************************************************
+-- This is a standard schema definition.
+--O   CREATE SCHEMA AUTHORIZATION SULLIVAN1
+   CREATE SCHEMA SULLIVAN1;
+0 rows inserted/updated/deleted
+ij> set schema SULLIVAN1;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE AUTH_TABLE (FIRST1 INTEGER, SECOND2 CHAR);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW MUL_SCH 
+       AS SELECT EMPNUM, SECOND2
+          FROM HU.STAFF, AUTH_TABLE
+          WHERE GRADE = FIRST1;
+0 rows inserted/updated/deleted
+ij> --O    GRANT ALL PRIVILEGES ON AUTH_TABLE TO HU
+--O    GRANT SELECT ON MUL_SCH TO HU
+-- The following tables are used to run concurrency program pairs
+--    e.g MPA001 and MPB001 use the tables with prefix MP1_ 
+ CREATE TABLE MP1_MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP1_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP1_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP2_MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP2_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP2_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP3_MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP3_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP3_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP4_MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP4_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP4_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP5_AA (ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP5_AA_INDEX (ANUM NUMERIC(4) NOT NULL UNIQUE);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP5_TT (TESTTYPE CHAR(3), KOUNT DECIMAL(4));
+0 rows inserted/updated/deleted
+ij> -- The following tables are used to run interactive concurrency program pairs.
+ CREATE TABLE TTT (ANUM NUMERIC(4) NOT NULL UNIQUE, AUTHOR CHAR(1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TT (DOLLARS NUMERIC(4), ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE AA (ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> --O this is a dup of a table in a different schema...
+ CREATE TABLE BB (BNUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> --O this is a dup of a table in a different schema...
+--  Test GRANT UPDATE for additional columns beyond those WITH GRANT OPTION.
+--  expect error message!
+--  In SCHEMA1 for USER HU is the following grant:
+--         GRANT SELECT,UPDATE(EMPNUM,EMPNAME) ON STAFF3
+--          TO ..., SULLIVAN1 WITH GRANT OPTION
+-- If the following self-grant by SULLIVAN1 will not compile/execute, delete it.
+--O   GRANT SELECT,UPDATE ON HU.STAFF3
+--O           TO SULLIVAN1
+--O           WITH GRANT OPTION
+ CREATE TABLE MP6_MM2 (NUMTEST NUMERIC(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP6_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP6_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP6_AA (ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP6_BB (BNUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP7_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP7_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP7_AA (ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP7_BB (BNUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP8_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP8_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                          DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP8_AA (ANUM NUMERIC(4) NOT NULL, 
+--O                     AUTHOR CHAR(1), UNIQUE (ANUM))
+                     AUTHOR CHAR(1), constraint mp8_aa_con UNIQUE (ANUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP8_BB (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP9_NN (NUMTEST NUMERIC(9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP9_NEXTKEY (KEYNUM INTEGER, AUTHOR CHAR(1),
+                         DOLLARS INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP9_AA (ANUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MP9_BB (BNUM NUMERIC(4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE USG102 (C1 INT, C_1 INT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE USG103 (C1 INT, C_1 INT);
+0 rows inserted/updated/deleted
+ij> -- ************* End of Schema *************
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema5.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema5.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema5.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,122 @@
+ij> -- SQL Test Suite, V6.0, Schema Definition, schema5.std
+-- 59-byte ID
+-- TEd Version #
+-- date_time print
+-- *******************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID FLATER ******
+-- *******************************************************************
+-- This is a standard schema definition.
+--0 CREATE SCHEMA AUTHORIZATION FLATER
+ CREATE SCHEMA FLATER;
+0 rows inserted/updated/deleted
+ij> set schema FLATER;
+0 rows inserted/updated/deleted
+ij> -- VIEW FR1 tests forward references in schema definitions.  This view
+   -- was checked by test 0523 in SDL032; that test was removed prior to
+   -- the release of V4.  I personally believe that two-pass SDL processing
+   -- is the Right Thing and ought to be required, but I speak only for
+   -- myself.
+   -- CREATE VIEW FR1 AS SELECT * FROM DV1
+   CREATE TABLE CONCATBUF (ZZ CHAR(240));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE USIG (C1 INT, C_1 INT);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE U_SIG (C1 INT, C_1 INT);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW DV1 AS
+    SELECT DISTINCT HOURS FROM HU.WORKS;
+0 rows inserted/updated/deleted
+ij> -- This small one-column table is used to generate an
+   -- indicator overflow data exception for SQLSTATE testing.
+   -- If the table cannot be created, the test is assumed passed.
+   -- Save the error message and then use TEd to delete the CREATE TABLE
+   -- as well as the GRANT ALL PRIVILEGES ON TINY TO SCHANZLE below.
+   -- Use the following TEd change: del *schema5.[sop]* /TINY/
+   -- Test number 0491 in program DML082 may also need to be deleted.
+   CREATE TABLE TINY (C1 VARCHAR(33000));
+ERROR 42611: The length, precision, or scale attribute for column, or type mapping 'VARCHAR(33000)' is not valid. 
+ij> -- For generation of "with check option violation" SQLSTATE.
+   CREATE TABLE BASE_WCOV (C1 INT);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW WCOV AS SELECT * FROM BASE_WCOV WHERE
+--0     C1 > 0 WITH CHECK OPTION
+     C1 > 0 ;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE BASE_VS1 (C1 INT, C2 INT);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS1 AS SELECT * FROM BASE_VS1 WHERE C1 = 0;
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS2 AS
+     SELECT A.C1 FROM BASE_VS1 A WHERE EXISTS
+       (SELECT B.C2 FROM BASE_VS1 B WHERE B.C2 = A.C1);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS3 AS
+     SELECT A.C2 FROM BASE_VS1 A WHERE A.C2 IN
+       (SELECT B.C1 FROM BASE_VS1 B WHERE B.C1 < A.C2);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS4 AS
+     SELECT A.C1 FROM BASE_VS1 A WHERE A.C1 < ALL
+       (SELECT B.C2 FROM BASE_VS1 B);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS5 AS
+     SELECT A.C1 FROM BASE_VS1 A WHERE A.C1 < SOME
+       (SELECT B.C2 FROM BASE_VS1 B);
+0 rows inserted/updated/deleted
+ij> CREATE VIEW VS6 AS
+     SELECT A.C1 FROM BASE_VS1 A WHERE A.C1 < ANY
+       (SELECT B.C2 FROM BASE_VS1 B);
+0 rows inserted/updated/deleted
+ij> --0   GRANT ALL PRIVILEGES ON TINY TO SCHANZLE
+--0   GRANT ALL PRIVILEGES ON BASE_WCOV TO SCHANZLE
+--0   GRANT ALL PRIVILEGES ON WCOV TO SCHANZLE
+--0   GRANT ALL PRIVILEGES ON VS1 TO SCHANZLE
+   -- Test granting of privileges that we don't have to start with.
+   -- We have GRANT OPTION, but we should not be able to grant unrestricted
+   -- update on STAFF3 since our own update is restricted to two columns.
+   -- Do not change SCHEMA1 to grant unrestricted update.
+   -- * expect error message *
+--0   GRANT SELECT, UPDATE ON HU.STAFF3 TO SCHANZLE
+   -- Same thing for views.
+   -- * expect error message *
+--0   GRANT SELECT, UPDATE ON HU.VSTAFF3 TO SCHANZLE
+   -- See whether GRANT ALL PRIVILEGES gives you GRANT OPTION.
+   -- It should not.  GRANT OPTION is not technically a privilege.
+   -- * expect error message *
+--0   GRANT SELECT ON CUGINI.BADG1 TO SCHANZLE
+   -- See whether GRANT OPTION on a view gives you GRANT OPTION
+   -- on the base table.
+   -- * expect error message *
+--0   GRANT SELECT ON CUGINI.BADG2 TO SCHANZLE
+   -- Delimited identifiers.
+   CREATE VIEW "SULLIVAN.SELECT" ("sullivan.select") AS
+     SELECT C1 FROM BASE_VS1;
+0 rows inserted/updated/deleted
+ij> --0   GRANT ALL PRIVILEGES ON "SULLIVAN.SELECT" TO SCHANZLE
+   -- Please be aware of the following errata; they are not being
+   -- tested here.
+   -- Check for erratum which allowed duplicate
+   --   <unique constraint definition>s
+   -- Reference ISO/IEC JTC1/SC21 N6789 section 11.7 SR7
+   --   and Annex E #4
+   --
+   -- The following should be flagged or rejected:
+   -- CREATE TABLE T0512 (C1 INT NOT NULL, C2 INT NOT NULL, C3 INT NOT NULL,
+   --   UNIQUE (C1,C2), UNIQUE (C3), UNIQUE (C2,C1))
+   CREATE TABLE T0512 (C1 INT NOT NULL, C2 INT NOT NULL, C3 INT NOT NULL,
+   UNIQUE (C1,C2), UNIQUE (C3), UNIQUE (C2,C1));
+ERROR 42Z93: Constraints 'xxxxGENERATED-IDxxxx' and 'xxxxGENERATED-IDxxxx' have same set of columns, which is not allowed.
+ij> --0 PASS: if there was an error for a duplicate unique constraint
+   -- Check for erratum which allowed recursive view definitions.
+   -- Reference ISO/IEC JTC1/SC21 N6789 section 11.19 <view definition> SR4
+   --   and Annex E #6
+   --
+   -- The following should be flagged or rejected:
+   -- CREATE VIEW T0513 (C1, C2) AS
+   --   SELECT T0513.C2, BASE_VS1.C1 FROM T0513, BASE_VS1
+   CREATE VIEW T0513 (C1, C2) AS
+   SELECT T0513.C2, BASE_VS1.C1 FROM T0513, BASE_VS1;
+ERROR 42X05: Table 'T0513' does not exist.
+ij> --0 PASS: if an error is returned that the view is circular
+-- ************* End of Schema *************
+disconnect;
+ij> exit;

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema8.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema8.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schema8.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,537 @@
+ij> -- SQL Test Suite, V6.0, Schema Definition, schema8.smi
+-- 59-byte ID
+-- TEd Version #
+-- date_time print
+-- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID SUN *****
+-- ***************************************************************
+-- This file defines the base tables used in most of the CDR tests.
+-- This non-standard schema definition is provided so that
+-- implementations which require semicolons to terminate statements,
+-- but which are otherwise conforming, can still execute the
+-- remaining tests.
+  CREATE SCHEMA
+--O      AUTHORIZATION SUN;
+      SUN;
+0 rows inserted/updated/deleted
+ij> set schema SUN;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SUN.ECCO (C1 CHAR(2));
+0 rows inserted/updated/deleted
+ij> --O  CREATE TABLE ECCO (C1 CHAR(2));
+  CREATE TABLE STAFF
+   (EMPNUM   CHAR(3) NOT NULL,
+    EMPNAME  CHAR(20),
+    GRADE    DECIMAL(4),
+    CITY     CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ
+   (PNUM     CHAR(3) NOT NULL,
+    PNAME    CHAR(20),
+    PTYPE    CHAR(6),
+    BUDGET   DECIMAL(9),
+    CITY     CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS
+   (EMPNUM   CHAR(3) NOT NULL,
+    PNUM     CHAR(3) NOT NULL,
+    HOURS    DECIMAL(5));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF3
+   (EMPNUM   CHAR(3) NOT NULL,
+    EMPNAME  CHAR(20),
+    GRADE    DECIMAL(4),
+    CITY     CHAR(15),
+    UNIQUE (EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ3
+   (PNUM     CHAR(3) NOT NULL,
+    PNAME    CHAR(20),
+    PTYPE    CHAR(6),
+    BUDGET   DECIMAL(9),
+    CITY     CHAR(15),
+    UNIQUE (PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS3
+   (EMPNUM   CHAR(3) NOT NULL,
+    PNUM     CHAR(3) NOT NULL,
+    HOURS    DECIMAL(5),
+    FOREIGN KEY (EMPNUM) REFERENCES STAFF3(EMPNUM),
+    FOREIGN KEY (PNUM) REFERENCES PROJ3(PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF4 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20) DEFAULT NULL,
+--O                GRADE DECIMAL(4) DEFAULT 0,
+--O                CITY   CHAR(15) DEFAULT '               ');
+                GRADE DECIMAL(4) ,
+                CITY   CHAR(15) );
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF14 (EMPNUM    CHAR(3) NOT NULL,
+--O                EMPNAME  CHAR(20) DEFAULT USER,
+                EMPNAME  CHAR(20) ,
+        -- EMPNAME CHAR precision may be changed to implementation-defined
+        --              precision for value of USER
+                GRADE DECIMAL(4),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF5 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (GRADE > 0 AND GRADE < 20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF6 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4) CHECK (GRADE > 0 AND GRADE < 20),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF7 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (GRADE BETWEEN 1 AND 20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF8 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (EMPNAME IS NOT NULL));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF9 (EMPNUM    CHAR(3) NOT NULL PRIMARY KEY,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                CHECK (EMPNAME NOT LIKE 'T%'));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF10 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (GRADE NOT IN (5,22)));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF11 (EMPNUM    CHAR(3) NOT NULL PRIMARY KEY,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                CHECK (GRADE NOT IN (5,22) 
+                            AND EMPNAME NOT LIKE 'T%'));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF12 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (NOT GRADE IN (5,22) 
+                            AND NOT EMPNAME LIKE 'T%'));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF13 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20),
+                GRADE DECIMAL(4),
+                CITY   CHAR(15),
+                PRIMARY KEY (EMPNUM),
+                CHECK (NOT EMPNAME IS NULL));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF15 (EMPNUM    CHAR(3),
+                EMPNAME  CHAR(20) NOT NULL,
+                GRADE DECIMAL(4),
+                CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF16 (EMPNUM    CHAR(3) NOT NULL,
+                EMPNAME  CHAR(20) DEFAULT NULL,
+                GRADE DECIMAL(4) NOT NULL CHECK (GRADE IN (100,150,200)),
+                CITY   CHAR(15), PRIMARY KEY (GRADE,EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ1_P
+           (S1   CHAR(3) NOT NULL,
+            S2   CHAR(3) NOT NULL,
+            S3   DECIMAL(4) NOT NULL,
+            S4   CHAR(3) NOT NULL,
+            S5   DECIMAL(4) NOT NULL,
+            S6   CHAR(3) NOT NULL,
+            R1   CHAR(3),
+            R2   CHAR(3),
+            R3   DECIMAL(4),
+            UNIQUE   (S1,S2,S3,S4,S5,S6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ1_F
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(3),
+            F3   DECIMAL(4),
+            F4   CHAR(3),
+            F5   DECIMAL(4),
+            F6   CHAR(3),
+            R1   CHAR(3),
+            R2   DECIMAL(5),
+            R3   DECIMAL(4),
+           FOREIGN KEY   (F1,F2,F3,F4,F5,F6)
+           REFERENCES SIZ1_P(S1,S2,S3,S4,S5,S6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_P
+           (P1   CHAR(3) NOT NULL,
+            P2   CHAR(3) NOT NULL,
+            P3   DECIMAL(4) NOT NULL,
+            P4   CHAR(3) NOT NULL,
+            P5   DECIMAL(4) NOT NULL,
+            P6   CHAR(3) NOT NULL,
+            P7   CHAR(3) NOT NULL,
+            P8   DECIMAL(4) NOT NULL,
+            P9   DECIMAL(4) NOT NULL,
+            P10   DECIMAL(4) NOT NULL,
+            P11   CHAR(4),
+            UNIQUE (P1),
+            UNIQUE (P2),
+            UNIQUE (P3),
+            UNIQUE (P4),
+            UNIQUE (P5),
+            UNIQUE (P6),
+            UNIQUE (P7),
+            UNIQUE (P8),
+            UNIQUE (P9),
+            UNIQUE (P10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F1
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F2
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F3
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P3));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F4
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P4));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F5
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P5));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F6
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F7
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P7));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F8
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P8));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F9
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P9));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ2_F10
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            FOREIGN KEY (F1) 
+            REFERENCES SIZ2_P(P10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P1
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P2
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P3
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+           UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P4
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P5
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P6
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P7
+           (F1   CHAR(3) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P8
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P9
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_P10
+           (F1   DECIMAL(4) NOT NULL,
+            F2   CHAR(8),
+            UNIQUE (F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE SIZ3_F
+           (P1   CHAR(3) NOT NULL,
+            P2   CHAR(3),
+            P3   DECIMAL(4),
+            P4   CHAR(3),
+            P5   DECIMAL(4),
+            P6   CHAR(3),
+            P7   CHAR(3),
+            P8   DECIMAL(4),
+            P9   DECIMAL(4),
+            P10   DECIMAL(4),
+            P11   CHAR(4),
+            FOREIGN KEY (P1)
+            REFERENCES SIZ3_P1(F1),
+            FOREIGN KEY (P2)
+            REFERENCES SIZ3_P2(F1),
+            FOREIGN KEY (P3)
+            REFERENCES SIZ3_P3(F1),
+            FOREIGN KEY (P4)
+            REFERENCES SIZ3_P4(F1),
+            FOREIGN KEY (P5)
+            REFERENCES SIZ3_P5(F1),
+            FOREIGN KEY (P6)
+            REFERENCES SIZ3_P6(F1),
+            FOREIGN KEY (P7)
+            REFERENCES SIZ3_P7(F1),
+            FOREIGN KEY (P8)
+            REFERENCES SIZ3_P8(F1),
+            FOREIGN KEY (P9)
+            REFERENCES SIZ3_P9(F1),
+            FOREIGN KEY (P10)
+            REFERENCES SIZ3_P10(F1));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE DEPT
+                (DNO DECIMAL(4) NOT NULL,
+                 DNAME CHAR(20) NOT NULL,
+                 DEAN CHAR(30),
+                 PRIMARY KEY (DNO),
+                 UNIQUE (DNAME));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE EMP
+                (ENO DECIMAL(4) NOT NULL,
+                 ENAME CHAR(20) NOT NULL,
+                 EDESC CHAR(30),
+                 DNO DECIMAL(4) NOT NULL,
+                 DNAME CHAR(20),
+                 BTH_DATE  DECIMAL(6) NOT NULL,
+                 PRIMARY KEY (ENO),
+                 UNIQUE (ENAME,BTH_DATE),
+                 FOREIGN KEY (DNO) REFERENCES
+                 DEPT(DNO),
+                 FOREIGN KEY (DNAME) REFERENCES
+                 DEPT(DNAME));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE EXPERIENCE
+                (EXP_NAME CHAR(20),
+                 BTH_DATE DECIMAL(6),
+                 WK_DATE  DECIMAL(6),
+                 DESCR CHAR(40),
+                 FOREIGN KEY (EXP_NAME,BTH_DATE) REFERENCES
+                 EMP(ENAME,BTH_DATE));
+0 rows inserted/updated/deleted
+ij> -- The following tables, STAFF_M and PROJ_M reference each other.
+     -- Table STAFF_M has a "forward reference" to PROJ_M.
+     CREATE TABLE STAFF_M
+        (EMPNUM   CHAR(3) NOT NULL,
+         EMPNAME  CHAR(20),
+         GRADE    DECIMAL(4),
+         CITY     CHAR(15),
+         PRI_WK   CHAR(3),
+         UNIQUE   (EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ_M
+           (PNUM     CHAR(3) NOT NULL,
+            PNAME    CHAR(20),
+            PTYPE    CHAR(6),
+            BUDGET   DECIMAL(9),
+            CITY     CHAR(15),
+            MGR   CHAR(3),
+            UNIQUE (PNUM),
+            FOREIGN KEY (MGR)
+            REFERENCES STAFF_M(EMPNUM));
+0 rows inserted/updated/deleted
+ij> ALTER TABLE STAFF_M ADD FOREIGN KEY (PRI_WK)
+          REFERENCES PROJ_M (PNUM);
+0 rows inserted/updated/deleted
+ij> --   The following table is self-referencing.
+        CREATE TABLE STAFF_C
+           (EMPNUM   CHAR(3) NOT NULL,
+            EMPNAME  CHAR(20),
+            GRADE    DECIMAL(4),
+            CITY     CHAR(15),
+            MGR   CHAR(3),
+            UNIQUE   (EMPNUM),
+            FOREIGN KEY (MGR)
+            REFERENCES STAFF_C(EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF_P
+        (EMPNUM   CHAR(3) NOT NULL,
+         EMPNAME  CHAR(20),
+         GRADE    DECIMAL(4),
+         CITY     CHAR(15),
+         UNIQUE  (EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ_P
+        (PNUM     CHAR(3) NOT NULL,
+         PNAME    CHAR(20),
+         PTYPE    CHAR(6),
+         BUDGET   DECIMAL(9),
+         CITY     CHAR(15),
+         UNIQUE   (PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MID1 (P_KEY DECIMAL(4) NOT NULL UNIQUE,
+                         F_KEY DECIMAL(4) REFERENCES MID1(P_KEY));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE ACR_SCH_P(P1 DECIMAL(4) NOT NULL UNIQUE,
+                               P2 CHAR(4));
+0 rows inserted/updated/deleted
+ij> --O   CREATE TABLE CHAR_DEFAULT
+--O               (SEX_CODE  CHAR(1)  DEFAULT 'F',
+--O                NICKNAME  CHAR(20) DEFAULT 'No nickname given',
+--O                INSURANCE1 CHAR(5)  DEFAULT 'basic');
+--O   CREATE TABLE EXACT_DEF
+--O               (BODY_TEMP NUMERIC(4,1) DEFAULT 98.6,
+--O                MAX_NUM   NUMERIC(5)   DEFAULT -55555,
+--O                MIN_NUM   DEC(6,6)     DEFAULT .000001);
+--O   CREATE TABLE APPROX_DEF
+--O               (X_COUNT   REAL DEFAULT 1.78E12,
+--O                Y_COUNT   REAL DEFAULT -9.99E10,
+--O                Z_COUNT   REAL DEFAULT 3.45E-11,
+--O                ZZ_COUNT  REAL DEFAULT -7.6777E-7);
+--O   CREATE TABLE SIZE_TAB
+--O               (COL1 CHAR(75)  DEFAULT 
+--O'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz0123456789012',
+--O                COL2 INTEGER   DEFAULT -999888777,
+--O                COL3 DEC(15,6) DEFAULT 987654321.123456,
+--O                COL4 REAL      DEFAULT -1.048576E22);   
+   CREATE TABLE COMMODITY
+         (C_NUM INTEGER NOT NULL,
+          C_NAME CHAR(7) NOT NULL UNIQUE,
+          PRIMARY KEY (C_NUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE CURRENCY_TABLE
+         (CURRENCY CHAR(10) NOT NULL,
+          DOLLAR_EQUIV NUMERIC(5, 2),
+          PRIMARY KEY (CURRENCY));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE MEASURE_TABLE
+         (MEASURE CHAR(8) NOT NULL,
+          POUND_EQUIV NUMERIC(8,2),
+          PRIMARY KEY (MEASURE));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE C_TRANSACTION 
+         (COMMOD_NO INTEGER,
+          TOT_PRICE     DECIMAL(12,2),
+          CURRENCY  CHAR(10),
+          UNITS     INTEGER,
+          MEASURE   CHAR(8),
+          T_DATE    INTEGER,
+          FOREIGN KEY (COMMOD_NO)
+           REFERENCES COMMODITY,
+          FOREIGN KEY (CURRENCY)
+           REFERENCES CURRENCY_TABLE,
+          FOREIGN KEY (MEASURE)
+           REFERENCES MEASURE_TABLE);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T6118REF (
+       COL1 CHAR(20) NOT NULL, COL2 CHAR(20) NOT NULL,
+       COL3 CHAR(20) NOT NULL, COL4 CHAR(20) NOT NULL,
+       COL5 CHAR(23) NOT NULL, COL6 NUMERIC (4) NOT NULL,
+       STR118 CHAR(118) NOT NULL UNIQUE,
+       UNIQUE (COL1, COL2, COL4, COL3, COL5, COL6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T118(STR118 CHAR(118) NOT NULL UNIQUE,
+    FOREIGN KEY (STR118) REFERENCES T6118REF (STR118));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE T6 (COL1 CHAR(20), COL2 CHAR(20),
+                 COL3 CHAR(20), COL4 CHAR(20),
+                 COL5 CHAR(23), COL6 NUMERIC (4),
+    FOREIGN KEY (COL1, COL2, COL4, COL3, COL5, COL6)
+      REFERENCES T6118REF (COL1, COL2, COL4, COL3, COL5, COL6));
+0 rows inserted/updated/deleted
+ij> -- ********************** create view statements *****************
+  CREATE VIEW TESTREPORT AS
+    SELECT TESTNO, RESULT, TESTTYPE
+    FROM HU.TESTREPORT;
+0 rows inserted/updated/deleted
+ij> --O    FROM TESTREPORT;
+--O   CREATE VIEW DOLLARS_PER_POUND (COMMODITY, UNIT_PRICE, FROM_DATE, TO_DATE)
+--O      AS SELECT COMMODITY.C_NAME, 
+--O                SUM(TOT_PRICE * DOLLAR_EQUIV) / SUM(UNITS * POUND_EQUIV),
+--O                MIN(T_DATE), MAX(T_DATE)
+--O         FROM C_TRANSACTION, COMMODITY, CURRENCY_TABLE, MEASURE_TABLE
+--O         WHERE C_TRANSACTION.COMMOD_NO = COMMODITY.C_NUM
+--O            AND C_TRANSACTION.CURRENCY = CURRENCY_TABLE.CURRENCY
+--O            AND C_TRANSACTION.MEASURE  = MEASURE_TABLE.MEASURE
+--O         GROUP BY COMMODITY.C_NAME
+--O         HAVING SUM(TOT_PRICE * DOLLAR_EQUIV) > 10000;
+-- View COST_PER_UNIT for OPTIONAL test 0403
+-- Remove view from schema if it causes errors.
+--O   CREATE VIEW COST_PER_UNIT
+--O     (COMMODITY, UNIT_PRICE, CURRENCY, MEASURE)
+--O      AS SELECT COMMODITY, UNIT_PRICE * POUND_EQUIV / DOLLAR_EQUIV,
+--O                CURRENCY, MEASURE
+--O            FROM DOLLARS_PER_POUND, CURRENCY_TABLE, MEASURE_TABLE;
+        CREATE VIEW STAFF6_WITH_GRADES AS
+                          SELECT EMPNUM,EMPNAME,GRADE,CITY
+                          FROM STAFF6
+                          WHERE GRADE > 0 AND GRADE < 20
+  ;
+0 rows inserted/updated/deleted
+ij> --O                          WITH CHECK OPTION;
+-- ************** grant statements follow *************
+--O       GRANT SELECT ON SUN.ECCO TO PUBLIC;
+--O        GRANT INSERT ON TESTREPORT
+--O             TO PUBLIC;
+--O        GRANT REFERENCES ON ACR_SCH_P TO SULLIVAN
+--O              WITH GRANT OPTION;
+--O        GRANT ALL PRIVILEGES ON PROJ_P
+--O             TO SULLIVAN;
+--O        GRANT ALL PRIVILEGES ON T6118REF TO FLATER;
+--O        GRANT ALL PRIVILEGES ON T118 TO FLATER;
+--O        GRANT ALL PRIVILEGES ON T6 TO FLATER;
+--  Test GRANT without grant permission below.
+--  "WITH GRANT OPTION" purposefully omitted from SUN's GRANT. 
+--  Do not insert text "WITH GRANT OPTION"
+--O        GRANT REFERENCES ON STAFF_P
+--O             TO SULLIVAN;
+--O        GRANT REFERENCES (C_NUM) ON COMMODITY TO SCHANZLE;
+-- ************* End of Schema *************
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/sdl012.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/sdl012.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/sdl012.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,33 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE SDL012
+-- SQL Test Suite, V6.0, Interactive SQL, sdl012.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
+-- TEST:0148 CREATE Table with NOT NULL!
+     INSERT INTO STAFF1(EMPNAME,GRADE,CITY)
+            VALUES('Carmen',40,'Boston');
+ERROR 23502: Column 'EMPNUM'  cannot accept a NULL value.
+ij> -- PASS:0148 If ERROR, NOT NULL constraint, 0 rows inserted?
+-- NOTE:0148 Not Null Column EMPNUM is missing.
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM STAFF1;
+EM&|EMPNAME             |GRADE|CITY           
+----------------------------------------------
+ij> -- PASS:0148 If count = 0?
+-- restore
+     ROLLBACK WORK;
+ij> -- END TEST >>> 0148 <<< END TEST
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5sch2.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5sch2.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5sch2.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,376 @@
+ij> AUTOCOMMIT OFF;
+ij> --O-- SQL Test Suite, V6.0, Schema Definition, cts5sch2.sql
+--O-- 59-byte ID
+--O-- TEd Version #
+--O-- date_time print
+--O-- ***************************************************************
+--O-- ****** THIS FILE SHOULD BE RUN UNDER SCHEMA ID CTS1 ******
+--O-- ***************************************************************
+--O
+--O--  The following command is supported only at INTERMEDIATE level
+--O  CREATE SCHEMA CTS1;
+--O
+--O--  The following command should be used if ENTRY level rather than
+--O--  intermediate is supported.
+--O--  CREATE SCHEMA AUTHORIZATION CTS1;
+  CREATE SCHEMA CTS1;
+0 rows inserted/updated/deleted
+ij> set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O
+--O-- ************* create character set statements *****
+--O
+--O   CREATE CHARACTER SET CS GET SQL_TEXT;
+--O
+--O-- ************* create table statements *************
+--O
+--O
+  CREATE TABLE ECCO (C1 CHAR(2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE FIPS1
+   (FIPS_TEST CHAR(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF
+  (EMPNUM   CHAR(3) NOT NULL UNIQUE,
+   EMPNAME  CHAR(20),
+   GRADE    DECIMAL(4),
+   CITY     CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS
+  (EMPNUM   CHAR(3) NOT NULL,
+   PNUM     CHAR(3) NOT NULL,
+   HOURS    DECIMAL(5),
+   UNIQUE(EMPNUM,PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF1
+  (EMPNUM    CHAR(3) NOT NULL,
+  EMPNAME  CHAR(20),
+  GRADE DECIMAL(4),
+  CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF4
+  (EMPNUM    CHAR(3) NOT NULL,
+  EMPNAME  CHAR(20),
+  GRADE DECIMAL(4),
+  CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE VTABLE
+  (COL1   INTEGER,
+   COL2   INTEGER,
+   COL3   INTEGER,
+   COL4   INTEGER,
+   COL5   DECIMAL(7,2));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF3
+  (EMPNUM   CHAR(3) NOT NULL,
+   EMPNAME  CHAR(20),
+   GRADE    DECIMAL(4),
+   CITY     CHAR(15),
+   UNIQUE (EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ3
+  (PNUM     CHAR(3) NOT NULL,
+   PNAME    CHAR(20),
+   PTYPE    CHAR(6),
+   BUDGET   DECIMAL(9),
+   CITY     CHAR(15),
+   UNIQUE (PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF7 (EMPNUM    CHAR(3) NOT NULL,
+  EMPNAME  CHAR(20),
+  GRADE DECIMAL(4),
+  CITY   CHAR(15),
+  PRIMARY KEY (EMPNUM),
+  CHECK (GRADE BETWEEN 1 AND 20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE WORKS3a
+   (EMPNUM   CHAR(3) NOT NULL,
+   PNUM     CHAR(3) NOT NULL,
+   HOURS    DECIMAL(5),
+   FOREIGN KEY (PNUM) REFERENCES PROJ3(PNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFFa
+   ( HOURS   INTEGER,
+     SALARY  DECIMAL(6),
+     EMPNUM  CHAR(3),
+     PNUM    DECIMAL(4),
+     EMPNAME CHAR(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFFb
+   ( SALARY   DECIMAL(6),
+     EMPNAME  CHAR(20),
+     HOURS    INTEGER,
+     PNUM     CHAR(3),
+     CITY     CHAR(15),
+     SEX      CHAR);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFFc
+  (  EMPNUM   CHAR(3) NOT NULL,
+     EMPNAME  CHAR(20),
+     GRADE    DECIMAL(4),
+     CITY     CHAR(15),
+     MGR      CHAR(3),
+     UNIQUE   (EMPNUM));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFFd
+  (  EMPNUM   CHAR(3) NOT NULL,
+     GRADE    DECIMAL(4),
+     MGR      CHAR(3));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF_CTS
+  (  PNUM   CHAR(3),
+     CITY   CHAR(15),
+     GRADE  DECIMAL(4),
+     EMPNAME CHAR(20));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFFz
+  ( EMPNUM CHAR(3) REFERENCES STAFF3(EMPNUM),
+    SALARY DECIMAL(6) CHECK (SALARY > 0));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE PROJ_DURATION
+  ( MONTHS  INTEGER,
+    TIME_LEFT   INTEGER,
+    EMP_HOURS      INTEGER,
+    CHECK (MONTHS > 0));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE STAFF_CTS2
+  (EMPNUM    CHAR(3) NOT NULL,
+  EMPNAME  CHAR(20),
+  GRADE DECIMAL(4),
+  CITY   CHAR(15));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE EMPLOYEES2
+  (  name     CHAR(10),
+     empno    INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE A
+  (   p   INTEGER,
+      q   INTEGER );
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TT
+  (TTA   INTEGER,
+   TTB   INTEGER,
+   TTC   INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TU
+  (TUD   CHAR(2),
+   TUE   INTEGER);
+0 rows inserted/updated/deleted
+ij> --O  CREATE TABLE TT2
+--O  (TTA INTEGER,
+--O   TTB INTERVAL YEAR TO MONTH,
+--O   TTC DECIMAL(6,0));
+--O
+  CREATE TABLE TV
+  (A   INTEGER,
+   B   CHAR);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TW
+  (D   CHAR,
+   E   INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TX
+  (TX1     INTEGER,
+   TX2     CHARACTER(5),
+   TX3     CHARACTER VARYING (10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE COMP_BUDG
+  (P_REF   CHAR(3) NOT NULL,
+   BUDGET  DECIMAL(20),
+   HOURS   INTEGER,
+   SALARY  DECIMAL(6),
+   FOREIGN KEY (P_REF) REFERENCES CTS2.PROJ_MAN(P_REF));
+ERROR 42Y07: Schema 'CTS2' does not exist
+ij> CREATE TABLE PROJ_STATUS
+  ( MGR    CHAR(15)  REFERENCES CTS2.PROJ_MAN(MGR),
+    P_REF  CHAR(3),
+    ONTIME CHAR,
+    BUDGET DECIMAL(20),
+    COST   DECIMAL(20));
+ERROR 42Y07: Schema 'CTS2' does not exist
+ij> CREATE TABLE DATA_TYPE
+  (  NUM   NUMERIC,
+--O     DEC   DECIMAL,
+     DECI   DECIMAL,
+     ING   INTEGER,
+     SMA   SMALLINT,
+     FLO   FLOAT,
+     REA   REAL,
+     DOU   DOUBLE PRECISION);
+0 rows inserted/updated/deleted
+ij> --O  CREATE TABLE TTIME_BASE
+--O  (PK           INTEGER,
+--O   TT           TIME,
+--O   TS           TIMESTAMP,
+--O   TT2          TIME WITH TIME ZONE,
+--O   TS2          TIMESTAMP WITH TIME ZONE,
+--O   PRIMARY KEY (PK));
+  CREATE TABLE CL_DATA_TYPE
+   (CL_CHAR CHAR(10),
+    CL_NUM NUMERIC,
+    CL_DEC DECIMAL,
+    CL_REAL REAL);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE CL_EMPLOYEE 
+      (EMPNUM  NUMERIC(5) NOT NULL PRIMARY KEY,
+       DEPTNO  CHAR(3),
+       LOC     CHAR(15),
+       EMPNAME CHAR(20),
+       SALARY  DECIMAL(6),
+       GRADE   DECIMAL(4),
+       HOURS   DECIMAL(5));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6740A
+   (TNUM NUMERIC(4),
+    TCHARA CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6740B
+   (TNUM NUMERIC(4),
+    TCHARB CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6740C
+   (TNUMERIC NUMERIC(4),
+    TCHAR CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6840A
+   (NUM_A NUMERIC(4),
+    CH_A CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6840B
+   (NUM_B NUMERIC(4),
+    CH_B CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST6840C
+   (NUM_C1 NUMERIC(4),
+    CH_C1 CHAR(10),
+    NUM_C2 NUMERIC(4),
+    CH_C2 CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TEST12849B
+   (col_num3 NUMERIC(3) NOT NULL,
+    PRIMARY KEY (col_num3));
+0 rows inserted/updated/deleted
+ij> --RESOLVE: we don't support CASCADE
+--O  CREATE TABLE TEST12849A
+--O   (col_num1   NUMERIC(5) PRIMARY KEY,
+--O    col_str1   VARCHAR(15) NOT NULL,
+--O    col_str2   VARCHAR(10),
+--O    col_num2   NUMERIC(5) CONSTRAINT constr_1 REFERENCES TEST12849A,
+--O    col_str3   VARCHAR(25),
+--O    col_num3   NUMERIC(7,2),
+--O    col_num4   NUMERIC(3) NOT NULL
+--O      CONSTRAINT constr_3 REFERENCES TEST12849B
+--O      ON DELETE CASCADE,
+--O    CONSTRAINT constr_2 UNIQUE (col_str1, col_str2));
+  CREATE TABLE T4
+   (STR110 CHAR(110) NOT NULL,
+    NUM6   NUMERIC(6) NOT NULL,
+    COL3   CHAR(10),
+    COL4 CHAR(20),
+    UNIQUE(STR110,NUM6));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE EMPTY740
+(COL_1   CHAR(10),
+ COL_2   VARCHAR(5),
+ COL_3   NUMERIC(5),
+ COL_4   DECIMAL(6),
+ COL_5   TIME);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TABX760
+  ( DEPTNO  NUMERIC(5) UNIQUE NOT NULL,
+  EMPNAME CHAR(20)   UNIQUE NOT NULL, 
+  SALARY  DECIMAL(7));
+0 rows inserted/updated/deleted
+ij> --OCREATE TABLE TABCS
+--O   ( COLUN   NUMERIC(5) UNIQUE,
+--O     COLSTR1 CHAR(10)    CHARACTER SET CS,
+--O     COLSTR2 VARCHAR(10) CHARACTER SET CS);
+  CREATE TABLE CL_STANDARD
+   (
+    COL_NUM1 NUMERIC(4),
+    COL_CH1  CHAR(10),
+    COL_NUM2 NUMERIC(4),
+    COL_CH2  CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TABLE728a 
+   (
+    C1 CHAR(10),
+    C2 CHAR(10));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TABLE728b
+   (
+     COL_1 CHAR(10),
+     COL_2 CHAR(10));
+0 rows inserted/updated/deleted
+ij> --O  CREATE TABLE TAB734
+--O   ( CSTR1 NCHAR(10),
+--O     CSTR2 NCHAR VARYING(12));
+--O-- LATIN1 is not required by SQL-92 DWF 1996-02-21
+--O--  CREATE TABLE TABLATIN1
+--O--  ( COL1 CHARACTER(10) CHARACTER SET LATIN1,
+--O--    COL2 CHAR(12)      CHARACTER SET LATIN1,
+--O--    COL3 VARCHAR(15)   CHARACTER SET LATIN1,
+--O--    COL4 NUMERIC(5));
+  CREATE TABLE ET
+  (col1    CHAR(3),
+   col2    CHAR(20),
+   col3    DECIMAL(4),
+   col4    CHAR(15),
+   col5    INTEGER,
+   col6    INTEGER);
+0 rows inserted/updated/deleted
+ij> CREATE TABLE TTSTORE
+  (numx    INTEGER,
+   colthu  INTEGER,
+   coltmu  INTEGER,
+   TT      TIME);
+0 rows inserted/updated/deleted
+ij> --O  CREATE TABLE TTSTORE2
+--O  (num     INTEGER,
+--O   colthu  INTEGER,
+--O   coltmu  INTEGER,
+--O   TT2     TIME WITH TIME ZONE);
+  CREATE TABLE CONCATBUF (ZZ CHAR(240));
+0 rows inserted/updated/deleted
+ij> CREATE VIEW TESTREPORT AS
+    SELECT TESTNO, RESULT, TESTTYPE
+    FROM HU.TESTREPORT;
+0 rows inserted/updated/deleted
+ij> --OCREATE VIEW TTIME (PK, TT, TS) AS
+--O    SELECT PK, TT, TS
+--O    FROM TTIME_BASE;
+--O
+--OCREATE VIEW TTIME2 (PK, TT2, TS2) AS
+--O    SELECT PK, TT2, TS2
+--O    FROM TTIME_BASE;
+--O
+--OCREATE VIEW TTIME3 (PK, TT, TT2, TS2) AS
+--O    SELECT PK, TT, TT2, TS2
+--O    FROM TTIME_BASE;
+--O
+--O-- ************* create domain statements ***********
+--O
+--O   CREATE DOMAIN esal AS INTEGER 
+--O   CHECK (VALUE > 500);
+--O
+--O   CREATE DOMAIN atom CHARACTER
+--O   CHECK ('a' <= VALUE)
+--O   CHECK ('m' >= VALUE);
+--O
+--O   CREATE DOMAIN smint INTEGER
+--O   CHECK (1<= VALUE)
+--O   CHECK (100 >= VALUE);
+--O
+--O-- ************* grant statements follow *************
+--O
+--O   GRANT ALL PRIVILEGES ON CONCATBUF TO PUBLIC;
+--O
+--O   GRANT SELECT ON CTS1.ECCO TO PUBLIC;
+--O
+--O   GRANT INSERT ON TESTREPORT TO PUBLIC WITH GRANT OPTION;
+--O
+--O   GRANT SELECT ON CTS1.DATA_TYPE TO CTS4;
+--O
+--O-- ************* End of Schema *************
+commit;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5tab.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5tab.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_cts5tab.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,404 @@
+ij> AUTOCOMMIT OFF;
+ij> --O-- MODULE  CTS5TAB  
+--O
+--O-- NIST SQL Test Suite, V6.0, Interactive SQL, cts5tab.sql
+--O-- 59-byte ID
+--O-- TEd Version #
+--O
+--O-- AUTHORIZATION CTS1    
+  CREATE SCHEMA CTS1;
+ERROR X0Y68: Schema 'CTS1' already exists.
+ij> set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O
+--O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> --O-- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O
+--O-- date_time print
+--O
+--O   ROLLBACK WORK;
+--O
+   DELETE FROM CTS1.ECCO;
+0 rows inserted/updated/deleted
+ij> INSERT INTO CTS1.ECCO VALUES ('NL');
+1 row inserted/updated/deleted
+ij> DELETE FROM STAFF;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E1','Alice',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E2','Betty',10,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E3','Carmen',13,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E4','Don',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF VALUES ('E5','Ed',13,'Akron');
+1 row inserted/updated/deleted
+ij> DELETE FROM WORKS;
+0 rows inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P1',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P3',80);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P4',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P5',12);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E1','P6',12);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E2','P1',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E2','P2',80);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E3','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E4','P2',20);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E4','P4',40);
+1 row inserted/updated/deleted
+ij> INSERT INTO WORKS VALUES  ('E4','P5',80);
+1 row inserted/updated/deleted
+ij> DELETE FROM VTABLE;
+0 rows inserted/updated/deleted
+ij> INSERT INTO VTABLE VALUES(10,+20,30,40,10.50);
+1 row inserted/updated/deleted
+ij> INSERT INTO VTABLE VALUES(0,1,2,3,4.25);
+1 row inserted/updated/deleted
+ij> INSERT INTO VTABLE VALUES(100,200,300,400,500.01);
+1 row inserted/updated/deleted
+ij> INSERT INTO VTABLE VALUES(1000,-2000,3000,NULL,4000.00);
+1 row inserted/updated/deleted
+ij> DELETE FROM CTS1.STAFFb;
+0 rows inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (10000,'Fred',40,'P2','Vienna','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (10000,'Fred',40,'P2','Vienna','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (10000,'Fred',40,'P2','Vienna','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (15000,'Carmen',35,'P2','Vienna','F');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (15000,'Carmen',35,'P2','Vienna','F');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (10000,'Alice',40,'P3','Prague','F');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (20000,'Betty',30,'P1','Deale','F');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (20000,'Betty',30,'P1','Deale','F');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (40000,'Don',70,'P3','Prague','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (40000,'Don',70,'P3','Prague','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (40000,'Don',70,'P3','Prague','M');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFb VALUES (10000,'Ed',40,'P1','Deale','M');
+1 row inserted/updated/deleted
+ij> DELETE FROM CTS1.STAFFa;
+0 rows inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (40,10000,'E6',2,'Fred');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (40,10000,'E6',2,'Fred');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (40,10000,'E1',3,'Alice');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (40,10000,'E1',3,'Alice');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (70,40000,'E4',3,'Don');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (70,40000,'E4',3,'Don');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (70,40000,'E4',3,'Don');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (30,20000,'E2',1,'Betty');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (60,45000,'E7',4,'Grace');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (60,45000,'E7',4,'Grace');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (30,8000,'E8',2,'Henry');
+1 row inserted/updated/deleted
+ij> INSERT INTO CTS1.STAFFa VALUES (15,7000,'E9',1,'Imogen');
+1 row inserted/updated/deleted
+ij> DELETE FROM STAFFc;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E1','Alice',12,'Deale',NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E2','Betty',10,'Vienna','E1');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E3','Carmen',13,'Vienna','E2');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E4','Don',12,'Deale','E2');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E5','Don',12,'Deale','E1');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E6','Tom',14,'Gettysburg','E5');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFFc VALUES ('E7','Kingdom',18,'Gettysburg','E7');
+1 row inserted/updated/deleted
+ij> DELETE FROM STAFF_CTS2;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E1','Alice',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E1','Alice',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E2','Betty',10,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E3','Carmen',13,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E3','Carmen',13,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E3','Carmen',13,'Vienna');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E4','Don',12,'Deale');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS2 VALUES ('E6','Don',12,'Deale');
+1 row inserted/updated/deleted
+ij> DELETE FROM STAFF_CTS;
+0 rows inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS VALUES ('P1','Deale',12,'Don');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS VALUES ('P3','Vienna',10,'Betty');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS VALUES ('P3','Vienna',10,'Betty');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS VALUES ('P4','Vienna',13,'Carmen');
+1 row inserted/updated/deleted
+ij> INSERT INTO STAFF_CTS VALUES ('P5','Prague',15,'Ed');
+1 row inserted/updated/deleted
+ij> DELETE FROM EMPLOYEES2;
+0 rows inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Atherton',1);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Botham',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Cowdrey',3);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Dev',4);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Edmunds',5);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Fields',6);
+1 row inserted/updated/deleted
+ij> INSERT INTO EMPLOYEES2 VALUES ('Gower',7);
+1 row inserted/updated/deleted
+ij> DELETE FROM A;
+0 rows inserted/updated/deleted
+ij> INSERT INTO A VALUES (1, 15);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (3, 17);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (7, 11);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (5, 9);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (13, 13);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (9, 5);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (11, 7);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (17, 3);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (15, 1);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (13, 5);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (13, 15);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (11, 1);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (5, 5);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (5, 3);
+1 row inserted/updated/deleted
+ij> INSERT INTO A VALUES (1, 1);
+1 row inserted/updated/deleted
+ij> DELETE FROM TT;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TT (TTA, TTC) VALUES (1, 99);
+1 row inserted/updated/deleted
+ij> INSERT INTO TT (TTA, TTB) VALUES (2, 98);
+1 row inserted/updated/deleted
+ij> INSERT INTO TT VALUES (3, 97, 96);
+1 row inserted/updated/deleted
+ij> INSERT INTO TT (TTA) VALUES (4);
+1 row inserted/updated/deleted
+ij> INSERT INTO TT VALUES (5, 42, 26);
+1 row inserted/updated/deleted
+ij> DELETE FROM TU;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TU VALUES ('ab', 3);
+1 row inserted/updated/deleted
+ij> INSERT INTO TU (TUE) VALUES (5);
+1 row inserted/updated/deleted
+ij> INSERT INTO TU VALUES ('cd', 4);
+1 row inserted/updated/deleted
+ij> INSERT INTO TU (TUE) VALUES (11);
+1 row inserted/updated/deleted
+ij> INSERT INTO TU VALUES ('ef', 12);
+1 row inserted/updated/deleted
+ij> INSERT INTO TU VALUES ('gh', 11);
+1 row inserted/updated/deleted
+ij> --O   DELETE FROM TT2;
+--O   INSERT INTO TT2 VALUES (1,INTERVAL '17-3' YEAR TO MONTH,13);
+--O
+--O   INSERT INTO TT2 (TTA,TTB) VALUES (2,INTERVAL '5-6' YEAR TO MONTH);
+--O
+--O   INSERT INTO TT2 (TTA) VALUES (3);
+--O
+--O   INSERT INTO TT2 (TTA,TTC) VALUES (4,20);
+--O
+--O   INSERT INTO TT2 VALUES (5,INTERVAL '60-2' YEAR TO MONTH,19);
+--O
+   DELETE FROM TV;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TV VALUES (1,'a');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (2,'b');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (3,'c');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (4,'d');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (5,'e');
+1 row inserted/updated/deleted
+ij> DELETE FROM TW;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('b',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('g',1);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('f',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('h',4);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('i',5);
+1 row inserted/updated/deleted
+ij> DELETE FROM TX;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TX (TX1, TX3) VALUES (1, 'Susan');
+1 row inserted/updated/deleted
+ij> INSERT INTO TX (TX1, TX2) VALUES (2, 'lemon');
+1 row inserted/updated/deleted
+ij> INSERT INTO TX VALUES (3, 'apple', '');
+1 row inserted/updated/deleted
+ij> INSERT INTO TX VALUES (4, 'melon', 'Peter');
+1 row inserted/updated/deleted
+ij> INSERT INTO TX VALUES (5, 'peach', 'Matthew');
+1 row inserted/updated/deleted
+ij> DELETE FROM TEST12849B;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TEST12849B VALUES (1);
+1 row inserted/updated/deleted
+ij> INSERT INTO TEST12849B VALUES (2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TEST12849B VALUES (3);
+1 row inserted/updated/deleted
+ij> INSERT INTO TEST12849B VALUES (4);
+1 row inserted/updated/deleted
+ij> DELETE FROM TABX760;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (10,'SPYROS',25000);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (11,'ALEXIS',18000);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (12,'LAMBIS',9000);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (13,'ELENI',4000);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (14,'MARIOS',47000);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABX760 VALUES (15,'NICKOLAS',78000);
+1 row inserted/updated/deleted
+ij> --O   DELETE FROM TABCS;
+--O
+--O   INSERT INTO CTS1.TABCS VALUES (1, _CS 'NICKOS', _CS 'MARIA');
+--O
+--O   INSERT INTO CTS1.TABCS VALUES (2, _CS 'BILL', _CS 'TAKIS');
+--O
+--O   INSERT INTO CTS1.TABCS VALUES (3, _CS 'NICKOS', _CS 'TAKIS');
+--O
+--O   INSERT INTO CTS1.TABCS VALUES (4, _CS 'MARIA', _CS 'TAKIS');
+--O
+--O   DELETE FROM TTIME3;
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES (
+--O     1,TIME( '23:05:00'),TIME( '12:15:00-11:45'),
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:05'));
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES(
+--O     2,TIME( '05:10:00'),TIME( '00:07:00+08:39'), 
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:05'));
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES (
+--O     3,TIME( '12:11:00'),TIME( '23:19:00+10:32'), 
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:16'));
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES (
+--O     4,TIME( '05:10:00'),TIME( '00:07:00+08:39'), 
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:05'));
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES (
+--O     5,TIME( '17:39:00'),TIME( '08:28:00-11:45'), 
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:05'));
+--O
+--O   INSERT INTO CTS1.TTIME3 VALUES (
+--O     6,TIME( '17:39:00'),TIME( '08:28:00-11:45'), 
+--O     TIMESTAMP( 'xxxxxxFILTERED-TIMESTAMPxxxxx:05'));
+   DELETE FROM CL_STANDARD;
+0 rows inserted/updated/deleted
+ij> INSERT INTO CL_STANDARD VALUES (1000,'NICKOS',4000,'ATHENS');
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_STANDARD VALUES (1001,'MARIA',4001,'RHODES');
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_STANDARD VALUES (1002,'MAKIS',4002,'HANIA');
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_STANDARD VALUES (1003,'GEORGE',4003,'ARTA');
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_STANDARD VALUES (1004,'MORRIS',4004,'PARGA');
+1 row inserted/updated/deleted
+ij> DELETE FROM TABLE728a;
+0 rows inserted/updated/deleted
+ij> INSERT INTO TABLE728a VALUES ('NICKOS','GEORGE');
+1 row inserted/updated/deleted
+ij> INSERT INTO TABLE728a VALUES ('HARRY','TANIA');
+1 row inserted/updated/deleted
+ij> INSERT INTO TABLE728a VALUES ('KILLER',NULL);
+1 row inserted/updated/deleted
+ij> INSERT INTO TABLE728a VALUES (NULL,NULL);
+1 row inserted/updated/deleted
+ij> --O   DELETE FROM TAB734;
+--O
+--O   INSERT INTO CTS1.TAB734 VALUES (N'   !',N'*  *');
+--O
+--O   INSERT INTO CTS1.TAB734 VALUES (N' * ',N'+ +');
+--O
+--O   INSERT INTO CTS1.TAB734 VALUES (N'+ +',N'+ +');
+--O
+--O   INSERT INTO CTS1.TAB734 VALUES (NULL,N' + ');
+--O
+   DELETE FROM CL_DATA_TYPE;
+0 rows inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('GEORGE',1,10,100);
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('NICK',2,20,200);
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('PAUL',3,30,300);
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('PETER',4,40,400);
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('KEVIN',5,50,500);
+1 row inserted/updated/deleted
+ij> INSERT INTO CL_DATA_TYPE VALUES ('JASON',6,60,600);
+1 row inserted/updated/deleted
+ij> COMMIT WORK;
+ij> --O-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_schem10.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_schem10.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/temp_schem10.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,46 @@
+ij> AUTOCOMMIT OFF;
+ij> -- SQL Test Suite, V6.0, Schema Definition, schem10.std
+-- 59-byte ID
+-- TEd Version #
+-- date_time print
+-- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID SCHANZLE 
+-- ***************************************************************
+-- This file defines base tables used in the CDR tests.
+-- This is a standard schema definition.
+-- Constraints:  column vs. column
+   create schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> set schema SCHANZLE;
+0 rows inserted/updated/deleted
+ij> CREATE TABLE RET_CATALOG (
+     VENDOR_ID INT,
+     PRODUCT_ID INT,
+     WHOLESALE NUMERIC (10,2),
+     RETAIL NUMERIC (10,2),
+     MARKUP NUMERIC (10,2),
+     EXPORT_CODE CHAR(2),
+     EXPORT_LICNSE_DATE CHAR(20),
+     CHECK (EXPORT_LICNSE_DATE IS NULL OR (
+       EXPORT_CODE = 'F1' OR
+       EXPORT_CODE = 'F2' OR
+       EXPORT_CODE = 'F3'                  )),
+     CHECK (EXPORT_CODE <> 'F2' OR WHOLESALE > 10000.00),
+     CHECK (RETAIL >= WHOLESALE),
+     CHECK (RETAIL = WHOLESALE + MARKUP));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE CPBASE
+      (KC INT NOT NULL,
+       JUNK1 CHAR (10),
+       PRIMARY KEY (KC));
+0 rows inserted/updated/deleted
+ij> CREATE TABLE FOUR_TYPES
+      (T_INT     INTEGER,
+       T_CHAR    CHAR(10),
+       T_DECIMAL DECIMAL(10,2),
+       T_REAL    REAL);
+0 rows inserted/updated/deleted
+ij> commit;
+ij> -- ************* End of Schema *************
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts701.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts701.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts701.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,200 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS701
+-- SQL Test Suite, V6.0, Interactive SQL, xts701.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1              
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7004 Compound char. literal in <comparison predicate>!
+   INSERT INTO T4
+      VALUES
+      ('This is the first compound character literal.',1,NULL,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7004 If 1 row inserted successfully?
+   INSERT INTO T4
+         VALUES('Second character literal.',2,NULL,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7004 If 1 row inserted successfully?
+   INSERT INTO T4
+         VALUES('Third character literal.',3,NULL,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7004 If 1 row inserted successfully?
+   SELECT NUM6
+         FROM   T4
+         WHERE  STR110 = 'This is the compound ' ||
+         'character literal.';
+NUM6   
+-------
+ij> -- PASS:7004 If 0 rows selected - no data condition?
+   SELECT COUNT(*)
+         FROM   T4
+         WHERE  STR110 <> 'This is the first compound ' ||
+         'character literal.';
+1          
+-----------
+2          
+ij> -- PASS:7004 If COUNT = 2?
+   SELECT NUM6
+         FROM   T4
+         WHERE  NUM6 = 2 AND 
+         STR110 <= 'Second character ' || --Comments here
+         'literal.';
+NUM6   
+-------
+2      
+ij> -- PASS:7004 If NUM6 = 2?
+   SELECT NUM6
+         FROM   T4
+         WHERE  STR110 = 'Third character literal.' || --Comments here
+         'second fragment' ||
+         'third fragment.';
+NUM6   
+-------
+ij> -- PASS:7004 If 0 rows selected - no data condition?
+   SELECT NUM6
+         FROM   T4
+         WHERE  STR110 = 'First fragment' ||
+         'another fragment' || --Comments    
+         'Second character literal.' || --Comments here
+         'fourth fragment.';
+NUM6   
+-------
+ij> -- PASS:7004 If 0 rows selected - no data condition?
+   SELECT NUM6
+         FROM   T4
+         WHERE  STR110 <= 'Second '    ||
+         'chara' || --Comments    
+         'cter liter' || --Comments here
+         'al.' || 
+         '     ';
+NUM6   
+-------
+2      
+ij> -- PASS:7004 If NUM6 = 2?
+   SELECT COUNT(*)
+         FROM   T4
+         WHERE  STR110 < 'An indifferent' || --Comments
+         ' charac' ||     
+         'ter literal.';
+1          
+-----------
+0          
+ij> -- PASS:7004 If sum of this COUNT and the next COUNT = 3?
+   SELECT COUNT(*)
+         FROM   T4
+         WHERE  STR110 >= 'An indifferent' || --Comments
+         ' charac'      || 
+         'ter literal.';
+1          
+-----------
+3          
+ij> -- PASS:7004 If sum of this COUNT and the previous COUNT = 3?
+   SELECT NUM6
+         FROM   T4
+         WHERE  STR110 = 'Second '     || 
+         'chara' || --Comments    
+         'cter liter' || --Comments here
+         'al.' || 
+         '     ' || --Comments
+         '      ';
+NUM6   
+-------
+2      
+ij> -- PASS:7004 If NUM6 = 2?
+   SELECT NUM6
+         FROM   T4
+         WHERE  NUM6 = 2 AND STR110 < 'Second '     || 
+         'chara' || --Comments    
+         'cter literal.';
+NUM6   
+-------
+ij> -- PASS:7004 If 0 rows selected - no data condition?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7004 <<< END TEST
+-- *********************************************
+-- TEST:7005 Compound character literal as inserted value!
+   INSERT INTO T4
+     VALUES
+('This is the first fragment of a compound character literal,' || --Comments
+       ' and this is the second part.',11,NULL,'Compound '   || 
+      --Comments   
+       'literal.');
+1 row inserted/updated/deleted
+ij> -- PASS:7005 If 1 row inserted successfully?
+   INSERT INTO T4
+         VALUES('This is a comp' || 
+         'ound character literal,'   ||      
+         ' in the second table row.',12,NULL,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7005 If 1 row inserted successfully?
+   INSERT INTO T4
+         VALUES('This is ' || 
+         'a comp'       || 
+         'ound ' || 
+         'char' || 
+         'acter lit' || -- Comments
+         'eral, '  || 
+     -- Comments        
+         'in the th' || 
+         'ird ' || 
+         'table ' || 
+         'row.',13,NULL,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7005 If 1 row inserted successfully?
+   SELECT STR110, COL4 FROM T4 WHERE NUM6 = 11;
+STR110                                                                                                        |COL4                
+-----------------------------------------------------------------------------------------------------------------------------------
+This is the first fragment of a compound character literal, and this is the second part.                      |Compound literal.   
+ij> -- PASS:7005 If STR110 = 'This is the first fragment of a compound
+--                character literal, and this is the second part.'?
+-- PASS:7005 If COL4 = 'Compound literal.'?
+   SELECT STR110 FROM T4 WHERE  NUM6 = 12;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+This is a compound character literal, in the second table row.                                                
+ij> -- PASS:7005 If STR110 = 'This is a compound character literal, in
+--                        the second table row.'?
+   SELECT STR110
+         FROM   T4
+         WHERE  NUM6 = 13;
+STR110                                                                                                        
+--------------------------------------------------------------------------------------------------------------
+This is a compound character literal, in the third table row.                                                 
+ij> -- PASS:7005 If STR110 = 'This is a compound character literal, in 
+--                        the third table row.'?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7005 <<< END TEST
+-- *********************************************
+-- TEST:7006 Compound character literal in a <select list>!
+   SELECT 'First fragment of a compound character literal, ' || 
+ --Comment1   
+ --Comment2
+     'and second part.',
+'This is the first fragment of a compound character literal,' || --...
+     ' this is the second,' || 
+     ' and this is the third part.'
+--O              FROM   CTS1.ECCO;
+              FROM   ECCO;
+1                                                               |2                                                                                                          
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+First fragment of a compound character literal, and second part.|This is the first fragment of a compound character literal, this is the second, and this is the third part.
+ij> -- PASS:7006 If 1st value = 'First fragment of a compound character 
+--                           literal, and second part.'?
+-- PASS:7006 If 2nd value = 'This is the first fragment of a compound 
+--                         character literal, this is the second, and
+--                         this is the third part.'?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7006 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts729.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts729.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts729.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,199 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  XTS729
+-- SQL Test Suite, V6.0, Interactive SQL, xts729.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+-- date_time print
+   ROLLBACK WORK;
+ij> -- TEST:7029 Column name with 19, 72 and 128 characters!
+-- NOTE:  If long lines are not supported by the ISQL interfac, an
+--        implementation defined line continuation format may be used
+-- Begin 19 character column names
+   CREATE TABLE TESTA6439
+        (COLUMNOFCHARACTERSA CHARACTER(10),
+         columnofcharactersb CHARACTER(10),
+         cOlUmNoFNUMERICss_0 NUMERIC(5),
+         cOlUmNoFNUMERICss_1 NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table created successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO CTS1.TESTA6439
+   INSERT INTO TESTA6439
+         VALUES('ABCD','DCBA',1,9999);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+   COMMIT WORK;
+ij> SELECT COLUMNOFCHARACTERSA, columnofcharactersb,
+                cOlUmNoFNUMERICss_0, cOlUmNoFNUMERICss_1
+--O                FROM CTS1.TESTA6439;
+                FROM TESTA6439;
+COLUMNOFC&|COLUMNOFC&|COLUM&|COLUM&
+-----------------------------------
+ABCD      |DCBA      |1     |9999  
+ij> -- PASS:7029 If COLUMNOFCHARACTERSA = ABCD?
+-- PASS:7029 If columnofcharactersb = DCBA?
+-- PASS:7029 If cOlUmNoFNUMERICss_0 = 1?
+-- PASS:7029 If cOlUmNoFNUMERICss_1 = 9999?
+   COMMIT WORK;
+ij> --O   DROP TABLE TESTA6439 CASCADE;
+   DROP TABLE TESTA6439 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table dropped successfully?
+   COMMIT WORK;
+ij> -- End 19 character column names
+-- Begin 30 character column names
+   CREATE TABLE TESTB6439
+(COLUMNOFCHARACTERDATATYPE123a CHARACTER(3),
+columnofcharacterdatatype123b CHARACTER(3),
+cOlUmNoFNUMERIC123456789012_0 NUMERIC(5),
+CoLuMnOfNUMERIC123456789012_1 NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table created successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('AA','BB',1,2);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('CC','DD',3,4);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('EE','FF',5,6);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('GG','HH',7,8);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('II','KK',9,0);
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   SELECT * FROM CTS1.TESTB6439
+   SELECT * FROM TESTB6439
+          ORDER BY cOlUmNoFNUMERIC123456789012_0;
+COL&|COL&|COLUM&|COLUM&
+-----------------------
+AA  |BB  |1     |2     
+CC  |DD  |3     |4     
+EE  |FF  |5     |6     
+GG  |HH  |7     |8     
+II  |KK  |9     |0     
+ij> -- PASS:7029 If 5 rows selected in the following order?
+--                    ===  ===  === ===
+-- PASS:7029   If      AA   BB   1   2?
+-- PASS:7029   If      CC   DD   3   4?
+-- PASS:7029   If      EE   FF   5   6?
+-- PASS:7029   If      GG   HH   7   8?
+-- PASS:7029   If      II   KK   9   0?
+--O   SELECT  COLUMN_NAME, ORDINAL_POSITION
+--O         FROM INFORMATION_SCHEMA.COLUMNS
+--O         WHERE TABLE_SCHEMA = 'CTS1' AND TABLE_NAME = 'TESTB6439'
+--O         ORDER BY ORDINAL_POSITION;
+-- PASS:7029 If 4 rows are selected in the following order?
+--
+-- PASS:7029 If r1,c1 = COLUMNOFCHARACTERDATATYPE12345678901234567890
+--                         1234567890123456789012345678901234567890
+--                         1234567890123456789012345678901234567890123?
+-- PASS:7029 If row1,col2 = 1?
+-- PASS:7029 If r2,c1 = COLUMNOFCHARACTERDATATYPE12345678901234567890
+--                      1234567890123456789012345678901234567890
+--                      123456789012345678901234567890123456789012B?
+-- PASS:7029 If row2,col2 = 2?
+-- PASS:7029 If r3,c1 = COLUMNOFNUMERIC123456789012345678901234567890
+--                      1234567890123456789012345678901234567890
+--                      12345678901234567890123456789012345678901_0?
+-- PASS:7029 If row3,col2 = 3?
+-- PASS:7029 If r4,c1 = COLUMNOFNUMERIC123456789012345678901234567890
+--                      1234567890123456789012345678901234567890
+--                      12345678901234567890123456789012345678901_1?
+-- PASS:7029 If row4,col2 = 4?
+   COMMIT WORK;
+ij> --O   ALTER TABLE CTS1.TESTB6439
+   ALTER TABLE TESTB6439
+         ADD COLUMN 
+columnofcharacterdatatype123C CHAR(3);
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table altered successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO CTS1.TESTB6439
+   INSERT INTO TESTB6439
+         VALUES('TTT','TTT',100,100,'ADD');
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   SELECT * FROM CTS1.TESTB6439
+   SELECT * FROM TESTB6439
+         WHERE columnofcharacterdatatype123C = 'ADD';
+COL&|COL&|COLUM&|COLUM&|COL&
+----------------------------
+TTT |TTT |100   |100   |ADD 
+ij> -- PASS:7029 If 5 values =  TTT  TTT  100  100  ADD?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE TESTB6439 CASCADE;
+   DROP TABLE TESTB6439 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table dropped successfully?
+   COMMIT WORK;
+ij> -- End 128 character column names
+-- Begin 72 character column names
+   CREATE TABLE TESTC6439 (COLUMNOFCHARACTERSA CHAR(3),
+columnofcharacterdatatype123a
+CHAR(3));
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table created successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO CTS1.TESTC6439
+   INSERT INTO TESTC6439
+         VALUES('aaa','bbb');
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTC6439
+   INSERT INTO TESTC6439
+         VALUES  ('ccc','ddd');
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.TESTC6439
+   INSERT INTO TESTC6439
+         VALUES('eee','fff');
+1 row inserted/updated/deleted
+ij> -- PASS:7029 If 1 row inserted successfully?
+--O   SELECT * FROM CTS1.TESTC6439
+   SELECT * FROM TESTC6439
+         ORDER BY COLUMNOFCHARACTERSA;
+COL&|COL&
+---------
+aaa |bbb 
+ccc |ddd 
+eee |fff 
+ij> -- PASS:7029 If 3 rows selected in the following order?
+--                 ===    ===
+-- PASS:7029 If    aaa    bbb?
+-- PASS:7029 If    ccc    ddd?
+-- PASS:7029 If    eee    fff? 
+   COMMIT WORK;
+ij> --O   DROP TABLE TESTC6439 CASCADE;
+   DROP TABLE TESTC6439 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7029 If table dropped successfully?
+   COMMIT WORK;
+ij> -- End 72 character column names
+-- END TEST >>> 7029 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts730.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts730.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts730.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,106 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS730
+-- SQL Test Suite, V6.0, Interactive SQL, xts730.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema HU;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7030 Table name with 19 characters - delimited!
+   CREATE TABLE "LONGIDENTIFIERSAAAA" (TNUM NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE "longidentifiersaaab" (TNUM NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE "0""LONGIDENTIFIERS_1" (TNUM NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE "0""LONGIDENTIFIERS_2" (TNUM NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE "lngIDENTIFIER% .,()" (TNUM NUMERIC(5));
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table created successfully?
+   COMMIT WORK;
+ij> --O   SELECT  COUNT(*)  
+   SELECT   tablename 
+--O         FROM INFORMATION_SCHEMA.TABLES
+	from sys.systables
+--O         WHERE TABLE_SCHEMA = 'CTS1' 
+	where
+--O         AND TABLE_TYPE = 'BASE TABLE'
+          TABLETYPE = 'T'
+--O         AND ( TABLE_NAME = 'LONGIDENTIFIERSAAAA'
+--O            OR TABLE_NAME = 'longidentifiersaaab'
+--O            OR TABLE_NAME = '0"LONGIDENTIFIERS_1'
+--O            OR TABLE_NAME = '0"LONGIDENTIFIERS_2'
+--O            OR TABLE_NAME = 'lngIDENTIFIER% .,()' );
+         AND ( TABLENAME = 'LONGIDENTIFIERSAAAA'
+            OR TABLENAME = 'longidentifiersaaab'
+            OR TABLENAME = '0"LONGIDENTIFIERS_1'
+            OR TABLENAME = '0"LONGIDENTIFIERS_2'
+            OR TABLENAME = 'lngIDENTIFIER% .,()' );
+TABLENAME                                                                                                                       
+--------------------------------------------------------------------------------------------------------------------------------
+LONGIDENTIFIERSAAAA                                                                                                             
+longidentifiersaaab                                                                                                             
+0"LONGIDENTIFIERS_1                                                                                                             
+0"LONGIDENTIFIERS_2                                                                                                             
+lngIDENTIFIER% .,()                                                                                                             
+ij> -- PASS:7030 If COUNT = 5?
+--O   SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES
+--O         WHERE TABLE_SCHEMA = 'CTS1' AND TABLE_TYPE = 'BASE TABLE'
+--O         AND ( TABLE_NAME = 'LONGIDENTIFIERSAAAA'
+--O            OR TABLE_NAME = 'longidentifiersaaab'
+--O            OR TABLE_NAME = '0"LONGIDENTIFIERS_1'
+--O            OR TABLE_NAME = '0"LONGIDENTIFIERS_2'
+--O            OR TABLE_NAME = 'lngIDENTIFIER% .,()' )
+--O         ORDER BY TABLE_NAME;
+-- PASS:7030 If 5 rows are selected in following order?
+--                    table_name
+--                    ==========
+-- PASS:7030 If   0"LONGIDENTIFIERS_1?
+-- PASS:7030 If   0"LONGIDENTIFIERS_2?
+-- PASS:7030 If   LONGIDENTIFIERSAAAA?
+-- PASS:7030 If   lngIDENTIFIER% .,()?
+-- PASS:7030 If   longidentifiersaaab?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE "LONGIDENTIFIERSAAAA" CASCADE;
+   DROP TABLE "LONGIDENTIFIERSAAAA" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table dropped successfully?
+--O   DROP TABLE "longidentifiersaaab" CASCADE;
+   DROP TABLE "longidentifiersaaab" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table dropped successfully?
+--O   DROP TABLE "0""LONGIDENTIFIERS_1" CASCADE;
+   DROP TABLE "0""LONGIDENTIFIERS_1" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table dropped successfully?
+--O   DROP TABLE "0""LONGIDENTIFIERS_2" CASCADE;
+   DROP TABLE "0""LONGIDENTIFIERS_2" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table dropped successfully?
+--O   DROP TABLE "lngIDENTIFIER% .,()" CASCADE;
+   DROP TABLE "lngIDENTIFIER% .,()" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7030 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 7030 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts731.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts731.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts731.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,155 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS731
+-- SQL Test Suite, V6.0, Interactive SQL, xts731.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7031 View name with 69 and 128 characters - deliminited!
+-- NOTE:  If long lines are not supported by the ISQL interface, an
+--        implementation defined line continuation format may be used
+-- Begin 128 character view names
+   CREATE VIEW "LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAA" AS SELECT * FROM STAFF;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW "longidentifiersaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaab" AS SELECT * FROM WORKS;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_1" AS SELECT * FROM VTABLE;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_2" AS SELECT * FROM STAFF_CTS;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> CREATE VIEW "longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,()" AS SELECT CITY FROM STAFF;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> --O   SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS
+--O               WHERE TABLE_SCHEMA = 'CTS1'
+--O               AND (TABLE_NAME = 'LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAA'
+--O                 OR TABLE_NAME = 'longidentifiersaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaab'
+--O                 OR TABLE_NAME = '0"LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_1'
+--O                 OR TABLE_NAME = '0"LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_2'
+--O                 OR TABLE_NAME = 'longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,()' )
+--O                 ORDER BY TABLE_NAME;
+-- PASS:7031 If 5 rows are selected in the following order?
+--                
+-- PASS:7031 If TABLE_NAME = '0"LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBB
+--                CCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFF
+--                GGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_1'?
+-- PASS:7031 If TABLE_NAME = '0"LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBB
+--                CCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFF
+--                GGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_2'?
+-- PASS:7031 If TABLE_NAME = 'LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCC
+--                DDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGG
+--                HHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAA'?
+-- PASS:7031 If TABLE_NAME = 'longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBB
+--                CCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFF
+--                GGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,()'?
+-- PASS:7031 If TABLE_NAME = 'longidentifiersaaaaabbbbbbbbbbcccccccccc
+--                ddddddddddeeeeeeeeeeffffffffffgggggggggg
+--                hhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaab'?
+--O   SELECT  COUNT(*) FROM INFORMATION_SCHEMA.VIEWS
+--O         WHERE TABLE_SCHEMA = 'CTS1'
+--O         AND TABLE_NAME = 'LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAa';
+-- PASS:7031 If COUNT = 0?
+--O   SELECT  COUNT(*) FROM INFORMATION_SCHEMA.VIEWS
+--O         WHERE TABLE_SCHEMA = 'CTS1'
+--O         AND TABLE_NAME = 'longidentifiersaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaaX';
+-- PASS:7031 If COUNT = 0?
+--O   SELECT  COUNT(*) FROM INFORMATION_SCHEMA.VIEWS
+--O           WHERE TABLE_SCHEMA = 'CTS1'
+--O           AND TABLE_NAME = '0"LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_3';
+-- PASS:7031 If COUNT = 0?
+--O   SELECT  COUNT(*) FROM INFORMATION_SCHEMA.VIEWS
+--O           WHERE TABLE_SCHEMA = 'CTS1'
+--O           AND TABLE_NAME = 'longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,((';
+-- PASS:7031 If COUNT = 0?
+   ROLLBACK WORK;
+ij> --O   DROP VIEW "LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAA" CASCADE;
+   DROP VIEW "LONGIDENTIFIERSAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJKKKKKKKKKKAAAAAAAA" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP VIEW "longidentifiersaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaab" CASCADE;
+   DROP VIEW "longidentifiersaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjkkkkkkkkkkaaaaaaab" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_1" CASCADE;
+   DROP VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_1" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_2" CASCADE;
+   DROP VIEW "0""LONGIDENTIFIERSWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWWWWWW_2" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP VIEW "longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,()" CASCADE;
+   DROP VIEW "longIDENTIFIERSWWWWWAAAAAAAAAABBBBBBBBBBCCCCCCCCCCDDDDDDDDDDEEEEEEEEEEFFFFFFFFFFGGGGGGGGGGHHHHHHHHHHIIIIIIIIIIJJJJJJJJJJWW% .,()" ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> -- End 128 character view names
+-- Begin 69 character view names
+   CREATE VIEW 
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69W"
+   (MYCOUNT) AS SELECT COUNT (*) FROM WORKS;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> SELECT * FROM
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69W"
+   ;
+MYCOUNT    
+-----------
+12         
+ij> -- PASS:7031 If MYCOUNT = 12?
+   COMMIT WORK;
+ij> CREATE VIEW 
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69S"
+   (MYCOUNT) AS SELECT COUNT (*) FROM STAFF;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view created successfully?
+   COMMIT WORK;
+ij> SELECT * FROM
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69S"
+   ;
+MYCOUNT    
+-----------
+5          
+ij> -- PASS:7031 If MYCOUNT = 5? 
+   COMMIT WORK;
+ij> DROP VIEW
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69W"
+   ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> DROP VIEW
+"ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ""69S"
+   ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7031 If view dropped successfully?
+   COMMIT WORK;
+ij> -- End 69 character view names
+-- END TEST >>> 7031 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts740.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts740.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts740.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,112 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS740
+-- SQL Test Suite, V6.0, Interactive SQL, xts740.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7040 COUNT(ALL <column name>) with Nulls in column!
+   DELETE FROM EMPTY740;
+0 rows inserted/updated/deleted
+ij> -- PASS:7040 If delete completed successfully?
+   SELECT COUNT(ALL COL_1) 
+         FROM EMPTY740;
+1          
+-----------
+0          
+ij> -- PASS:7040 If COUNT = 0?
+   SELECT COUNT(COL_2) 
+         FROM EMPTY740;
+1          
+-----------
+0          
+ij> -- PASS:7040 If COUNT = 0?
+   SELECT COUNT(COL_3) 
+         FROM EMPTY740;
+1          
+-----------
+0          
+ij> -- PASS:7040 If COUNT = 0?
+   SELECT COUNT(COL_4) 
+         FROM EMPTY740;
+1          
+-----------
+0          
+ij> -- PASS:7040 If COUNT = 0?
+   SELECT COUNT(ALL COL_5)
+         FROM EMPTY740;
+1          
+-----------
+0          
+ij> -- PASS:7040 If COUNT = 0?
+   INSERT INTO EMPTY740 
+         VALUES('NICKOS','NICK',NULL,116,TIME('09:30:30'));
+1 row inserted/updated/deleted
+ij> -- PASS:7040 If 1 row inserted successfully?
+   INSERT INTO EMPTY740 
+         VALUES('MARIA',NULL,NULL,NULL,TIME('15:43:52'));
+1 row inserted/updated/deleted
+ij> -- PASS:7040 If 1 row inserted successfully?
+   INSERT INTO EMPTY740 
+         VALUES('KILLER','BUCK',NULL,127,TIME('15:43:52'));
+1 row inserted/updated/deleted
+ij> -- PASS:7040 If 1 row inserted successfully?
+   INSERT INTO EMPTY740 
+         VALUES('JOYCE',NULL,NULL,17,TIME('12:53:13'));
+1 row inserted/updated/deleted
+ij> -- PASS:7040 If 1 row inserted successfully?
+   INSERT INTO EMPTY740 
+         VALUES('ANGIE','TREE',NULL,7,TIME('16:29:22'));
+1 row inserted/updated/deleted
+ij> -- PASS:7040 If 1 row inserted successfully?
+   COMMIT WORK;
+ij> SELECT COUNT(COL_1) FROM EMPTY740;
+1          
+-----------
+5          
+ij> -- PASS:7040 If COUNT = 5?
+   SELECT COUNT(ALL COL_2) FROM EMPTY740;
+1          
+-----------
+3          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7040 If   COUNT = 3 and                                     ?
+-- PASS:7040      WARNING - null value eliminated in set function   ?
+   SELECT COUNT(ALL COL_3) FROM EMPTY740;
+1          
+-----------
+0          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7040 If   COUNT = 0 and                                     ?
+-- PASS:7040      WARNING - null value eliminated in set function   ?
+   SELECT COUNT(ALL COL_4) FROM EMPTY740;
+1          
+-----------
+4          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7040 If   COUNT = 4 and                                     ?
+-- PASS:7040      WARNING - null value eliminated in set function   ?
+   SELECT COUNT(ALL COL_5) FROM EMPTY740;
+1          
+-----------
+5          
+ij> -- PASS:7040 If COUNT = 5?
+   ROLLBACK WORK;
+ij> DELETE FROM EMPTY740;
+5 rows inserted/updated/deleted
+ij> -- PASS:7040 If deleted completed successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 7040 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts742.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts742.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts742.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,59 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS742
+-- SQL Test Suite, V6.0, Interactive SQL, xts742.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7042 COUNT ALL <literal>!
+   SELECT COUNT(ALL 115.5), COUNT(ALL 'ATHINA'), COUNT(ALL 255), 
+         COUNT(*) FROM CL_DATA_TYPE;
+1          |2          |3          |4          
+-----------------------------------------------
+6          |6          |6          |6          
+ij> -- PASS:7042 If COUNTs are 6, 6, 6, 6?
+--O   INSERT INTO CTS1.CL_DATA_TYPE VALUES(NULL,55,225,10);
+   INSERT INTO CL_DATA_TYPE VALUES(NULL,55,225,10);
+1 row inserted/updated/deleted
+ij> -- PASS:7042 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.CL_DATA_TYPE VALUES(NULL,15,140,NULL);
+   INSERT INTO CL_DATA_TYPE VALUES(NULL,15,140,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7042 If 1 row inserted successfully?
+   SELECT COUNT(*),COUNT(ALL 119), COUNT(ALL 'GIORGOS') ,
+         COUNT(CL_CHAR),
+         COUNT(CL_REAL) FROM CL_DATA_TYPE;
+1          |2          |3          |4          |5          
+-----------------------------------------------------------
+8          |8          |8          |6          |7          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7042 If COUNTs are 8, 8, 8, 6, 7?
+-- PASS:7042 If WARNING - null value eliminated in set function?
+--O   INSERT INTO CTS1.CL_DATA_TYPE VALUES(NULL,0,0,NULL);
+   INSERT INTO CL_DATA_TYPE VALUES(NULL,0,0,NULL);
+1 row inserted/updated/deleted
+ij> -- PASS:7042 If 1 row inserted successfully?
+   SELECT COUNT(*), COUNT(ALL 1000), COUNT(ALL 'STEFOS'),
+         COUNT(CL_CHAR),
+         COUNT(CL_REAL) FROM CL_DATA_TYPE;
+1          |2          |3          |4          |5          
+-----------------------------------------------------------
+9          |9          |9          |6          |7          
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7042 If COUNTs = 9, 9, 9, 6, 7?
+-- PASS:7042 If WARNING - null value eliminated in set function?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7042 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts752.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts752.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts752.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,85 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS752
+-- SQL Test Suite, V6.0, Interactive SQL, xts752.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:7052 ALTER TABLE ADD TABLE CONSTRAINT!
+   CREATE TABLE TAB752a
+         (COL1 NUMERIC(5) NOT NULL,
+          COL2 CHAR(15) NOT NULL UNIQUE,
+          COL3 CHAR(15));
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table created successfully?
+   COMMIT WORK;
+ij> CREATE TABLE TAB752b
+         (C1 NUMERIC(5) NOT NULL PRIMARY KEY,
+          C2 CHAR(15),
+          C3 CHAR(15));
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table created successfully?
+   COMMIT WORK;
+ij> --O   ALTER TABLE CTS1.TAB752a 
+   ALTER TABLE TAB752a 
+         ADD CONSTRAINT TA752a_PRKEY PRIMARY KEY(COL1);
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table altered successfully?
+   COMMIT WORK;
+ij> --O   SELECT COUNT(*) 
+--O         FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
+--O         WHERE TABLE_SCHEMA = 'CTS1' AND TABLE_NAME = 'TA752A'
+--O         AND CONSTRAINT_NAME = 'TA752A_PRKEY' AND COLUMN_NAME = 'COL1';
+-- PASS:7052 If COUNT = 1?
+--O   COMMIT WORK;
+   ALTER TABLE TAB752b
+      ADD CONSTRAINT TA752b_FKEY FOREIGN KEY(C2) 
+      REFERENCES TAB752a(COL2);
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table altered successfully?
+--O   COMMIT WORK;
+--O   SELECT COUNT(*) FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
+--O       WHERE TABLE_SCHEMA = 'CTS1'
+--O       AND TABLE_NAME = 'TAB752B' 
+--O       AND CONSTRAINT_NAME = 'TA752B_FKEY' 
+--O       AND COLUMN_NAME = 'C2';
+-- PASS:7052 If COUNT = 1?
+--O   COMMIT WORK;
+   ALTER TABLE TAB752a
+     ADD CONSTRAINT COL3_CHECK CHECK 
+     (COL3 IN ('ATHENS','CORFU','PYLOS'));
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table altered successfully?
+   COMMIT WORK;
+ij> INSERT INTO TAB752a VALUES(1000,'KILLER','PAROS');
+ERROR 23513: The check constraint 'COL3_CHECK' was violated while performing an INSERT or UPDATE on table 'CTS1.TAB752A'.
+ij> -- PASS:7052 If ERROR - integrity constraint violation?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE TAB752a CASCADE;
+--
+--HACK: we need to drop b before a since
+-- we don't support cascade on drop table
+--
+-- PASS:7052 If table dropped successfully?
+   COMMIT WORK;
+ij> --O   DROP TABLE TAB752b CASCADE;
+   DROP TABLE TAB752b ;
+0 rows inserted/updated/deleted
+ij> DROP TABLE TAB752a ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7052 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 7052 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts753.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts753.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts753.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,71 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS753
+-- SQL Test Suite, V6.0, Interactive SQL, xts753.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+--O   ROLLBACK WORK;
+-- date_time print
+-- TEST:7053 ALTER TABLE ADD COLUMN WITH <data type>!
+   CREATE TABLE TAB753
+         (COL1 DECIMAL(4),
+          COL2 CHAR(10),
+          COL3 CHAR(10));
+0 rows inserted/updated/deleted
+ij> -- PASS:7053 If table created successfully?
+   COMMIT WORK;
+ij> ALTER TABLE TAB753 ADD COLUMN COL4 NUMERIC(7);
+0 rows inserted/updated/deleted
+ij> -- PASS:7053 If table altered successfully?
+   COMMIT WORK;
+ij> --O   SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
+--O         WHERE TABLE_SCHEMA = 'CTS1' AND TABLE_NAME = 'TAB753'
+--O         AND COLUMN_NAME = 'COL4';
+-- PASS:7053 If COUNT = 1?
+--O   COMMIT WORK;
+   ALTER TABLE TAB753 ADD COLUMN COL5 CHAR(7);
+0 rows inserted/updated/deleted
+ij> -- PASS:7053 If table altered successfully?
+   COMMIT WORK;
+ij> --O   SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
+--O         WHERE TABLE_SCHEMA = 'CTS1' AND TABLE_NAME = 'TAB753'
+--O         AND COLUMN_NAME = 'COL5';
+-- PASS:7053 If COUNT = 1?
+   INSERT INTO TAB753 VALUES(1000,'PHONE','NICKOS',12000,'blue');
+1 row inserted/updated/deleted
+ij> -- PASS:7053 If 1 row inserted?
+   INSERT INTO TAB753 VALUES(1001,'HULME','CHEADLE',12001,'velvet');
+1 row inserted/updated/deleted
+ij> -- PASS:7053 If 1 row inserted?
+   COMMIT WORK;
+ij> SELECT COL1,COL2,COL3,COL4,COL5
+         FROM TAB753
+         ORDER BY COL1;
+COL1 |COL2      |COL3      |COL4    |COL5   
+--------------------------------------------
+1000 |PHONE     |NICKOS    |12000   |blue   
+1001 |HULME     |CHEADLE   |12001   |velvet 
+ij> -- PASS:7053 If 2 rows are selected in the following order?
+--               col1   col2    col3    col4     col5
+--               ====   ====    ====    ====     ====
+-- PASS:7053 If  1000   PHONE   NICKOS  12000    blue?
+-- PASS:7053 If  1001   HULME   CHEADLE 12001    velvet?
+   ROLLBACK WORK;
+ij> --O   DROP TABLE TAB753 CASCADE;
+   DROP TABLE TAB753 ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7053 If table dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 7053 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts760.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts760.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/xts760.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,40 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE   XTS760
+-- SQL Test Suite, V6.0, Interactive SQL, xts760.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7060 MAX of column derived from <set function specification>!
+   CREATE VIEW V000V AS
+  SELECT DEPTNO, AVG(SALARY) AS AVSAL
+--O  FROM CTS1.TABX760 GROUP BY DEPTNO;
+  FROM TABX760 GROUP BY DEPTNO;
+0 rows inserted/updated/deleted
+ij> -- PASS:7060 If view created successfully?
+   COMMIT WORK;
+ij> SELECT MAX(AVSAL) FROM V000V;
+1              
+---------------
+78000.0000     
+ij> -- PASS:7060 If MAX(avsal) is 78000?
+   COMMIT WORK;
+ij> --O   DROP VIEW V000V CASCADE;
+   DROP VIEW V000V ;
+0 rows inserted/updated/deleted
+ij> -- PASS:7060 If view dropped successfully?
+   COMMIT WORK;
+ij> -- END TEST >>> 7060 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts796.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts796.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts796.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,39 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS796  
+-- SQL Test Suite, V6.0, Interactive SQL, yts796.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7530 <scalar subquery> as first operand in <comp pred>!
+--O   SELECT EMPNAME FROM STAFF WHERE
+--O    (SELECT EMPNUM FROM WORKS WHERE PNUM = 'P3')
+   SELECT EMPNAME FROM HU.STAFF WHERE
+    (SELECT EMPNUM FROM HU.WORKS WHERE PNUM = 'P3')
+     = EMPNUM;
+EMPNAME             
+--------------------
+Alice               
+ij> -- PASS:7530 If empname = 'Alice'?
+--O   SELECT EMPNAME FROM STAFF WHERE 
+--O     (SELECT EMPNUM FROM WORKS WHERE PNUM = 'P4')
+   SELECT EMPNAME FROM HU.STAFF WHERE 
+     (SELECT EMPNUM FROM HU.WORKS WHERE PNUM = 'P4')
+     = EMPNUM;
+ERROR 21000: Scalar subquery is only allowed to return a single row.
+ij> -- PASS:7530 If ERROR - cardinality violation?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7530 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts797.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts797.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts797.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,101 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS797  
+-- SQL Test Suite, V6.0, Interactive SQL, yts797.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1              
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7558 <scalar subquery> in SET of searched update!
+   DELETE FROM TV;
+5 rows inserted/updated/deleted
+ij> INSERT INTO TV VALUES (1,'a');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (2,'b');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (3,'c');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (4,'d');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (5,'e');
+1 row inserted/updated/deleted
+ij> DELETE FROM TW;
+5 rows inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('b',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('g',1);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('f',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('h',4);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('i',5);
+1 row inserted/updated/deleted
+ij> --O   UPDATE TV AS X
+   UPDATE TV 
+     SET B =
+--O         (SELECT D FROM TV AS Y, TW AS Z
+         (SELECT D FROM TV  Y, TW  Z
+              WHERE Y.A = Z.E
+              AND TV.A = Y.A);
+ERROR 21000: Scalar subquery is only allowed to return a single row.
+ij> -- PASS:7558 If ERROR - cardinality violation?
+--N new error messages are temporarily valid, till we implement this kind of update properly
+--O   UPDATE TV AS X
+   UPDATE TV  
+     SET B =
+--O         (SELECT D FROM TV AS Y, TW AS Z
+         (SELECT D FROM TV  Y, TW  Z
+              WHERE Y.A = Z.E AND Z.E <> 2
+              AND TV.A = Y.A);
+5 rows inserted/updated/deleted
+ij> -- PASS:7558 If UPDATE completed successfully?
+   SELECT B 
+     FROM CTS1.TV
+     WHERE A = 1;
+B   
+----
+g   
+ij> -- PASS:7558 If B = 'g'?
+   SELECT B 
+     FROM CTS1.TV
+     WHERE A = 2;
+B   
+----
+NULL
+ij> -- PASS:7558 If B = NULL?
+   SELECT B 
+     FROM CTS1.TV
+     WHERE A = 3;
+B   
+----
+NULL
+ij> -- PASS:7558 If B = NULL?
+   SELECT B 
+     FROM CTS1.TV
+     WHERE A = 4;
+B   
+----
+h   
+ij> -- PASS:7558 If B = 'h'?
+   SELECT B 
+     FROM CTS1.TV
+     WHERE A = 5;
+B   
+----
+i   
+ij> -- PASS:7558 If B = 'i'?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7558 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts798.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts798.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts798.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,80 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS798  
+-- SQL Test Suite, V6.0, Interactive SQL, yts798.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1              
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> DELETE FROM TV;
+5 rows inserted/updated/deleted
+ij> INSERT INTO TV VALUES (1,'a');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (2,'b');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (3,'c');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (4,'d');
+1 row inserted/updated/deleted
+ij> INSERT INTO TV VALUES (5,'e');
+1 row inserted/updated/deleted
+ij> DELETE FROM TW;
+5 rows inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('b',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('g',1);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('f',2);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('h',4);
+1 row inserted/updated/deleted
+ij> INSERT INTO TW VALUES ('i',5);
+1 row inserted/updated/deleted
+ij> -- date_time print
+-- TEST:7559 <scalar subquery> in <select list> of single-row select!
+   SELECT DISTINCT A,
+            (SELECT D FROM TW
+             WHERE E = X.A)
+--O             FROM TV AS X, TW AS Y
+             FROM TV  X, TW  Y
+--O             WHERE 1 <
+--O                     (SELECT COUNT (*) FROM TV, TW
+             WHERE exists
+                     (SELECT * FROM TV, TW
+                      WHERE A = X.A
+                      AND A = E);
+ERROR 21000: Scalar subquery is only allowed to return a single row.
+ij> -- PASS:7559 If ERROR - cardinality violation?
+   SELECT DISTINCT A,
+              (SELECT D FROM TW
+               WHERE E = X.A)
+--O         FROM TV AS X, TW AS Y
+         FROM TV  X, TW  Y
+         WHERE A = 1;
+A          |2   
+----------------
+1          |g   
+ij> -- PASS:7559 If A = 1 and D = 'g'?
+   SELECT DISTINCT A,
+             (SELECT D FROM TW
+              WHERE E = X.A)
+--O         FROM TV AS X, TW AS Y
+         FROM TV  X, TW  Y
+         WHERE A = 3;
+A          |2   
+----------------
+3          |NULL
+ij> -- PASS:7559 If A = 3 and D = NULL?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7559 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts799.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts799.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts799.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,76 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS799  
+-- SQL Test Suite, V6.0, Interactive SQL, yts799.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1              
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7531 <subquery> as <row val constr> in <null predicate>!
+   SELECT TTA, TTB, TTC FROM CTS1.TT
+     WHERE (SELECT TUD FROM TU WHERE TU.TUE = TT.TTA)
+     IS NULL ORDER BY TTA DESC;
+TTA        |TTB        |TTC        
+-----------------------------------
+5          |42         |26         
+2          |98         |NULL       
+1          |NULL       |99         
+ij> -- PASS:7531 If 3 rows are selected in the following order?
+--                  col1     col2     col3
+--                  ====     ====     ====
+-- PASS:7531 If     5        42       26  ?
+-- PASS:7531 If     2        98       NULL?
+-- PASS:7531 If     1        NULL     99  ?
+   SELECT TTA, TTB, TTC FROM CTS1.TT
+     WHERE (SELECT TUD FROM TU WHERE TU.TUE = TT.TTA)
+     IS NOT NULL ORDER BY TTA;
+TTA        |TTB        |TTC        
+-----------------------------------
+3          |97         |96         
+4          |NULL       |NULL       
+ij> -- PASS:7531 If 2 rows are selected in the following order?
+--                 col1     col1     col3
+--                 ====     ====     ====
+-- PASS:7531 If    3        97       96  ? 
+-- PASS:7531 If    4        NULL     NULL?
+--O   SELECT COUNT (*) FROM CTS1.TT
+   SELECT * FROM CTS1.TT
+     WHERE TTB IS NULL OR TTC IS NULL;
+TTA        |TTB        |TTC        
+-----------------------------------
+1          |NULL       |99         
+2          |98         |NULL       
+4          |NULL       |NULL       
+ij> -- PASS:7531 If COUNT = 3?
+--O   SELECT COUNT (*) FROM CTS1.TT
+   SELECT * FROM CTS1.TT
+     WHERE TTB IS NOT NULL AND TTC IS NOT NULL;
+TTA        |TTB        |TTC        
+-----------------------------------
+3          |97         |96         
+5          |42         |26         
+ij> -- PASS:7531 If COUNT = 2?
+--O   SELECT COUNT (*) FROM CTS1.TT
+   SELECT * FROM CTS1.TT
+     WHERE NOT (TTB IS NULL AND TTC IS NULL);
+TTA        |TTB        |TTC        
+-----------------------------------
+1          |NULL       |99         
+2          |98         |NULL       
+3          |97         |96         
+5          |42         |26         
+ij> -- PASS:7531 If COUNT = 4?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7531 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts811.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts811.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts811.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,99 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS811  
+-- SQL Test Suite, V6.0, Interactive SQL, yts811.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7568 WHERE <search condition> referencing column!
+   CREATE VIEW V_DATA_TYPE AS
+     SELECT SUM(NUM) AS VT1, ING AS VT2, SMA AS VT3
+     FROM DATA_TYPE
+     GROUP BY ING, SMA;
+0 rows inserted/updated/deleted
+ij> -- PASS:7568 If view created successfully?
+   COMMIT WORK;
+ij> --O   INSERT INTO CTS1.DATA_TYPE (ING, SMA) VALUES
+   INSERT INTO DATA_TYPE (ING, SMA) VALUES
+     (1,1);
+1 row inserted/updated/deleted
+ij> -- PASS:7568 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.DATA_TYPE (NUM, ING, SMA)
+   INSERT INTO DATA_TYPE (NUM, ING, SMA)
+     VALUES (2,2,3);
+1 row inserted/updated/deleted
+ij> -- PASS:7568 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.DATA_TYPE (NUM, ING, SMA)
+   INSERT INTO DATA_TYPE (NUM, ING, SMA)
+     VALUES (3,4,5);
+1 row inserted/updated/deleted
+ij> -- PASS:7568 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.DATA_TYPE (NUM, ING, SMA)
+   INSERT INTO DATA_TYPE (NUM, ING, SMA)
+     VALUES (2,2,3);
+1 row inserted/updated/deleted
+ij> -- PASS:7568 If 1 row inserted successfully?
+--O   INSERT INTO CTS1.DATA_TYPE (NUM, ING, SMA)
+   INSERT INTO DATA_TYPE (NUM, ING, SMA)
+     VALUES (5,4,3);
+1 row inserted/updated/deleted
+ij> -- PASS:7568 If 1 row inserted successfully?
+   SELECT VT1, VT2, VT3
+     FROM V_DATA_TYPE
+     WHERE NOT VT1 = 0
+     ORDER BY VT2, VT3;
+VT1        |VT2        |VT3   
+------------------------------
+4          |2          |3     
+WARNING 01003: Null values were eliminated from the argument of a column function.
+5          |4          |3     
+3          |4          |5     
+ij> -- PASS:7568 If WARNING - null value eliminated in set function?
+-- PASS:7568 If 3 rows are returned in the following order?
+--                VT1     VT2     VT3
+--                ===     ===     ===
+-- PASS:7568 If   4       2       3  ?
+-- PASS:7568 If   5       4       3  ?
+-- PASS:7568 If   3       4       5  ?
+   SELECT VT1, VT2, VT3
+     FROM V_DATA_TYPE WHERE VT2 = 1;
+VT1        |VT2        |VT3   
+------------------------------
+NULL       |1          |1     
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7568 If WARNING - null value eliminated in set function?
+-- PASS:7568 If  NULL, 1, 1?
+   SELECT SUM(NUM) 
+     FROM DATA_TYPE
+     WHERE NUM IS NOT NULL;
+1          
+-----------
+12         
+ij> -- PASS:7568 If SUM = 12?
+   SELECT SUM(VT1) AS SUNTA1 
+     FROM V_DATA_TYPE AS TB3;
+SUNTA1               
+---------------------
+12                   
+WARNING 01003: Null values were eliminated from the argument of a column function.
+WARNING 01003: Null values were eliminated from the argument of a column function.
+ij> -- PASS:7568 If WARNING - null value eliminated in set function?
+-- PASS:7568 If SUM = 12?
+   ROLLBACK WORK;
+ij> DROP VIEW V_DATA_TYPE;
+0 rows inserted/updated/deleted
+ij> COMMIT WORK;
+ij> -- END TEST >>> 7568 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts812.out
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts812.out?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/yts812.out	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,42 @@
+ij> AUTOCOMMIT OFF;
+ij> -- MODULE  YTS812  
+-- SQL Test Suite, V6.0, Interactive SQL, yts812.sql
+-- 59-byte ID
+-- TEd Version #
+-- AUTHORIZATION CTS1              
+   set schema CTS1;
+0 rows inserted/updated/deleted
+ij> --O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+1                                                                                                                               
+--------------------------------------------------------------------------------------------------------------------------------
+CTS1                                                                                                                            
+ij> -- RERUN if USER value does not match preceding AUTHORIZATION comment
+   ROLLBACK WORK;
+ij> -- date_time print
+-- TEST:7569 <null predicate> with concatenation in <row value constructor>!
+--O   SELECT COUNT (*)
+   SELECT *
+     FROM TX
+     WHERE TX2 || TX3 IS NOT NULL;
+TX1        |TX2  |TX3       
+----------------------------
+3          |apple|          
+4          |melon|Peter     
+5          |peach|Matthew   
+ij> -- PASS:7569 If COUNT = 3?
+   SELECT TX1 FROM TX
+     WHERE TX3 || TX2 IS NULL;
+TX1        
+-----------
+1          
+2          
+ij> -- PASS:7569 If 2 rows returned in any order?
+-- PASS:7569 If TX1 = 1?
+-- PASS:7569 If TX1 = 2?
+   ROLLBACK WORK;
+ij> -- END TEST >>> 7569 <<< END TEST
+-- *********************************************
+-- *************************************************////END-OF-MODULE
+;
+ij> 

Modified: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties?view=diff&rev=126534&p1=incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties&r1=126533&p2=incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties&r2=126534
==============================================================================
--- incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties	(original)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/derbyall.properties	Wed Jan 26 11:42:09 2005
@@ -1,3 +1,3 @@
-suites=derbylang derbynetmats storeall xa derbytools jdbc20 jdk14 jdbcapi encryption
+suites=derbylang derbynetmats storeall xa derbytools jdbc20 jdk14 jdbcapi encryption nist
 derby.debug.true=enableBtreeConsistencyCheck
 derby.stream.error.logSeverityLevel=0

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,5 @@
+db2j.database.mode=DB2
+usesystem=nist
+useprocess=false
+keepfiles=true
+shutdownurl=jdbc:derby:wombat;shutdown=true;user=HU;password=HUPWD

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.runall
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.runall?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/suites/nist.runall	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,126 @@
+nist/schema1.sql
+nist/basetab.sql
+nist/schema5.sql
+nist/schema8.sql
+nist/temp_schem10.sql
+nist/temp_cts5sch2.sql
+nist/temp_cts5tab.sql
+nist/flattab.sql
+nist/dml012.sql
+nist/dml013.sql
+nist/dml018.sql
+nist/dml022.sql
+nist/dml025.sql
+nist/dml044.sql
+nist/dml045.sql
+nist/dml051.sql
+nist/dml059.sql
+nist/dml061.sql
+nist/dml073.sql
+nist/dml087.sql
+nist/dml090.sql
+nist/dml106.sql
+nist/dml108.sql
+nist/dml114.sql
+nist/dml141.sql
+nist/dml144.sql
+nist/dml162.sql
+nist/dml177.sql
+nist/dml010.sql
+nist/dml015.sql
+nist/dml020.sql
+nist/dml037.sql
+nist/dml038.sql
+nist/dml042.sql
+nist/dml043.sql
+nist/dml047.sql
+nist/dml056.sql
+nist/dml065.sql
+nist/dml076.sql
+nist/sdl012.sql
+nist/dml029.sql
+nist/yts796.sql
+nist/dml075.sql
+nist/dml024.sql
+nist/dml070.sql
+nist/dml147.sql
+nist/dml009.sql
+nist/dml008.sql
+nist/dml014.sql
+nist/dml016.sql
+nist/dml021.sql
+nist/dml034.sql
+nist/dml023.sql
+nist/dml026.sql
+nist/dml033.sql
+nist/dml039.sql
+nist/dml050.sql
+nist/dml052.sql
+nist/dml053.sql
+nist/dml055.sql
+nist/dml057.sql
+nist/dml058.sql
+nist/dml155.sql
+nist/xts729.sql
+nist/xts730.sql
+nist/yts797.sql
+nist/yts798.sql
+nist/dml069.sql
+nist/dml080.sql
+nist/dml081.sql
+nist/dml083.sql
+nist/dml085.sql
+nist/dml132.sql
+nist/dml099.sql
+nist/dml049.sql
+nist/dml173.sql
+nist/dml174.sql
+nist/dml179.sql
+nist/yts812.sql
+nist/dml001.sql
+nist/dml004.sql
+nist/dml035.sql
+nist/dml046.sql
+nist/dml060.sql
+nist/dml068.sql
+nist/yts799.sql
+nist/dml001.sql
+nist/dml079.sql
+nist/dml165.sql
+nist/dml104.sql
+nist/dml112.sql
+nist/dml148.sql
+nist/dml019.sql
+nist/dml149.sql
+nist/dml168.sql
+nist/dml170.sql
+nist/xts752.sql
+nist/xts753.sql
+nist/cdr002.sql
+nist/cdr003.sql
+nist/cdr004.sql
+nist/cdr005.sql
+nist/cdr006.sql
+nist/cdr007.sql
+nist/cdr027.sql
+nist/cdr030.sql
+nist/dml134.sql
+nist/dml005.sql
+nist/dml011.sql
+nist/dml027.sql
+nist/dml082.sql
+nist/dml091.sql
+nist/dml119.sql
+nist/dml130.sql
+nist/dml158.sql
+nist/dml178.sql
+nist/dml181.sql
+nist/dml182.sql
+nist/xts701.sql
+nist/xts731.sql
+nist/xts740.sql
+nist/xts742.sql
+nist/xts760.sql
+nist/yts811.sql
+nist/dml160.sql
+nist/schema4.sql
\ No newline at end of file

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/basetab.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/basetab.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/basetab.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,105 @@
+AUTOCOMMIT OFF;
+
+-- ***************************************************************
+-- ****** THIS FILE SHOULD BE RUN UNDER AUTHORIZATION ID HU ******
+-- ***************************************************************
+-- MODULE BASETAB
+
+-- SQL Test Suite, V6.0, Interactive SQL, basetab.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+
+--0   SELECT USER FROM HU.ECCO;
+   VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+--   This routine initializes the contents of tables:
+--        STAFF, PROJ, WORKS, STAFF3, VTABLE, and UPUNIQ
+--   This routine may be run at any time to re-initialize tables.
+
+   DELETE FROM HU.ECCO;
+   INSERT INTO HU.ECCO VALUES ('NL');
+      DELETE FROM HU.STAFF;
+      DELETE FROM HU.PROJ;
+      DELETE FROM HU.WORKS;
+
+      INSERT INTO HU.STAFF VALUES ('E1','Alice',12,'Deale');
+      INSERT INTO HU.STAFF VALUES ('E2','Betty',10,'Vienna');
+      INSERT INTO HU.STAFF VALUES ('E3','Carmen',13,'Vienna');
+      INSERT INTO HU.STAFF VALUES ('E4','Don',12,'Deale');
+      INSERT INTO HU.STAFF VALUES ('E5','Ed',13,'Akron');
+
+      INSERT INTO HU.PROJ VALUES  ('P1','MXSS','Design',10000,'Deale');
+      INSERT INTO HU.PROJ VALUES  ('P2','CALM','Code',30000,'Vienna');
+      INSERT INTO HU.PROJ VALUES  ('P3','SDP','Test',30000,'Tampa');
+      INSERT INTO HU.PROJ VALUES  ('P4','SDP','Design',20000,'Deale');
+      INSERT INTO HU.PROJ VALUES  ('P5','IRM','Test',10000,'Vienna');
+      INSERT INTO HU.PROJ VALUES  ('P6','PAYR','Design',50000,'Deale');
+
+      INSERT INTO HU.WORKS VALUES  ('E1','P1',40);
+      INSERT INTO HU.WORKS VALUES  ('E1','P2',20);
+      INSERT INTO HU.WORKS VALUES  ('E1','P3',80);
+      INSERT INTO HU.WORKS VALUES  ('E1','P4',20);
+      INSERT INTO HU.WORKS VALUES  ('E1','P5',12);
+      INSERT INTO HU.WORKS VALUES  ('E1','P6',12);
+      INSERT INTO HU.WORKS VALUES  ('E2','P1',40);
+      INSERT INTO HU.WORKS VALUES  ('E2','P2',80);
+      INSERT INTO HU.WORKS VALUES  ('E3','P2',20);
+      INSERT INTO HU.WORKS VALUES  ('E4','P2',20);
+      INSERT INTO HU.WORKS VALUES  ('E4','P4',40);
+      INSERT INTO HU.WORKS VALUES  ('E4','P5',80);
+
+      COMMIT WORK;
+
+--O      SELECT COUNT(*) FROM HU.PROJ;
+      SELECT * FROM HU.PROJ;
+-- PASS:Setup if count = 6?
+
+--O      SELECT COUNT(*) FROM HU.STAFF;
+      SELECT * FROM HU.STAFF;
+-- PASS:Setup if count = 5?
+
+--O      SELECT COUNT(*) FROM HU.WORKS;
+      SELECT * FROM HU.WORKS;
+-- PASS:Setup if count = 12?
+
+
+      DELETE FROM HU.STAFF3;
+      DELETE FROM HU.VTABLE;
+      DELETE FROM HU.UPUNIQ;
+
+      INSERT INTO HU.STAFF3
+              SELECT * 
+              FROM HU.STAFF;
+
+      INSERT INTO HU.VTABLE VALUES(10,+20,30,40,10.50);
+      INSERT INTO HU.VTABLE VALUES(0,1,2,3,4.25);
+      INSERT INTO HU.VTABLE VALUES(100,200,300,400,500.01);
+      INSERT INTO HU.VTABLE VALUES(1000,-2000,3000,NULL,4000.00);
+
+      INSERT INTO HU.UPUNIQ VALUES(1,'A');
+      INSERT INTO HU.UPUNIQ VALUES(2,'B');
+      INSERT INTO HU.UPUNIQ VALUES(3,'C');
+      INSERT INTO HU.UPUNIQ VALUES(4,'D');
+      INSERT INTO HU.UPUNIQ VALUES(6,'F');
+      INSERT INTO HU.UPUNIQ VALUES(8,'H');
+
+      COMMIT WORK;
+
+--O      SELECT COUNT(*) FROM HU.STAFF3;
+      SELECT * FROM HU.STAFF3;
+-- PASS:Setup if count = 5?
+
+--O      SELECT COUNT(*) FROM HU.VTABLE;
+-- PASS:Setup if count = 4?
+
+--O      SELECT COUNT(*) FROM HU.UPUNIQ;
+      SELECT * FROM HU.UPUNIQ;
+-- PASS:Setup if count = 6?
+-- *************************************************////END-OF-MODULE
+disconnect;
+exit;

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/build.xml
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/build.xml?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/build.xml	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+
+<!-- ==================================================================== -->
+<!--                       Derby build file                          -->
+<!-- ==================================================================== -->
+
+<project default="FTOtestsubdir" basedir="../../../../../../../.." >
+
+<!-- ==================================================================== -->
+<!--                           Set properties                             -->
+<!-- ==================================================================== -->
+
+  <!-- User settings -->
+  <property file="${user.home}/ant.properties"/>
+
+  <!-- Set property lib dir -->
+  <property name="properties.dir" value="tools/ant/properties" />
+
+  <!-- Significant dirs -->
+  <property file="${properties.dir}/dirs.properties"/>
+  <property file="${properties.dir}/derbytesting.properties"/>
+
+  <!-- Compiler settings -->
+  <property file="${properties.dir}/sane${sanity}.properties"/>
+  <property file="${properties.dir}/defaultcompiler.properties"/>
+  <property file="${properties.dir}/${build.compiler}.properties"/>
+
+  <!-- Parser properties -->
+  <!--property file="${properties.dir}/parser.properties"/-->
+
+  <!-- Compile-time classpath properties files -->
+  <property file="${properties.dir}/extrapath.properties"/>
+  <property file="${properties.dir}/compilepath.properties"/>
+
+  <!-- Release and Version info -->
+  <property file="${properties.dir}/release.properties"/>
+
+  <!-- derby testing specific properties files -->
+  <property file="${ant.home}/properties/derbytesting.properties"/>
+  <property file="${user.home}/properties/derbytesting.properties"/>
+  <property name="this.dir" value="${derby.testing.functest.dir}/tests/tools"/>
+
+<!--             ============ Begin Targets ==============                -->
+ 
+  <target name="FTOtestsubdir" depends="copyfiles"/>
+
+  <!-- mkdir / init target may not be necessary, just here for reference... -->
+  <target name="init">
+    <mkdir dir="${out.dir}/${derby.testing.functest.dir}/tests/nist"/>
+  </target>
+
+  <target name="copyfiles">
+    <copy todir="${out.dir}/${derby.testing.functest.dir}/tests/nist">
+      <fileset dir="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/nist" 
+        includesfile="${derby.testing.src.dir}/${derby.testing.functest.dir}/tests/nist/copyfiles.ant"/>  
+    </copy>
+  </target> 
+
+
+<!--             ============= End Targets ==============                -->
+
+<!--             ============= End Project ==============                -->
+
+</project>
+

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,124 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR002
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr002.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0302 CHECK <comp. predicate> in <tab. cons.>, insert!
+
+-- setup
+  DELETE FROM SUN.STAFF5;
+
+  INSERT INTO SUN.STAFF5
+        VALUES('E1','Alice',0,'Deale');
+-- PASS:0302 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO SUN.STAFF5
+        VALUES('E3','Susan',11,'Hawaii');
+
+  INSERT INTO SUN.STAFF5
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0302 If ERROR, check constraint, 0 rows inserted?
+
+  SELECT COUNT(*) FROM SUN.STAFF5;
+-- PASS:0302 If count = 1?
+
+-- restore
+  ROLLBACK WORK;
+
+-- END TEST >>> 0302 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0303 CHECK <comp. predicate> in <col. cons.>, insert!
+
+-- setup
+  DELETE FROM SUN.STAFF6;
+
+  INSERT INTO SUN.STAFF6
+        VALUES('E1','Alice',0,'Deale');
+-- PASS:0303 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO SUN.STAFF6
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0303 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO SUN.STAFF6
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT GRADE FROM SUN.STAFF6
+        WHERE GRADE > 10;
+-- PASS:0303 If 1 row selected and GRADE = 11?
+
+-- restore
+  ROLLBACK WORK;
+
+-- END TEST >>> 0303 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0304 CHECK <between predicate> in <tab. cons.>, insert!
+
+-- setup
+  DELETE FROM SUN.STAFF7;
+
+  INSERT INTO SUN.STAFF7
+        VALUES('E1','Alice',0,'Deale');
+-- PASS:0304 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO SUN.STAFF7
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0304 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO SUN.STAFF7
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT COUNT(*)
+        FROM SUN.STAFF7;
+-- PASS:0304 If count = 1?
+
+-- restore
+  ROLLBACK WORK;
+
+-- END TEST >>> 0304 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0305 CHECK <null predicate> in <tab. cons.>, insert!
+
+-- setup
+  DELETE FROM SUN.STAFF8;
+
+  INSERT INTO SUN.STAFF8
+        VALUES('E1','Alice',34,'Deale');
+
+  SELECT COUNT(*) FROM SUN.STAFF8;
+-- PASS:0305 If count = 1?
+
+  INSERT INTO SUN.STAFF8
+        VALUES('E2',NULL,34,'Newyork');
+-- PASS:0305 If ERROR, check constraint, 0 rows inserted?
+
+  SELECT COUNT(*) FROM SUN.STAFF8;
+-- PASS:0305 If count = 1?
+
+
+  COMMIT WORK;
+ 
+-- END TEST >>> 0305 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr002_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,121 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR003
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr003.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0306 CHECK X IS NOT NULL, NOT X IS NULL are equivalent!
+
+-- setup
+  DELETE FROM STAFF13;
+
+  INSERT INTO STAFF13
+        VALUES('E1','Alice',36,'Deale');
+
+  SELECT COUNT(*) FROM STAFF13;
+-- PASS:0306 If count = 1?
+
+  INSERT INTO STAFF13
+        VALUES('E2',NULL,36,'Newyork');
+-- PASS:0306 If ERROR, check constraint, 0 rows inserted?
+
+  SELECT COUNT(*) FROM STAFF13;
+-- PASS:0306 If count = 1?
+
+-- END TEST >>> 0306 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0307 CHECK <like predicate> in <tab. cons>, insert!
+
+-- setup
+  DELETE FROM STAFF9;
+
+  INSERT INTO STAFF9
+        VALUES('E1','Thomas',0,'Deale');
+-- PASS:0307 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF9
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0307 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF9
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT COUNT(*) FROM STAFF9;
+-- PASS:0307 If count = 1?
+
+
+-- END TEST >>> 0307 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0308 CHECK <in predicate> in <tab. cons.>, insert!
+
+-- setup
+  DELETE FROM STAFF10;
+
+  INSERT INTO STAFF10
+        VALUES('E1','Thomas',5,'Deale');
+-- PASS:0308 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF10
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0308 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF10
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT COUNT(*) FROM STAFF10;
+-- PASS:0308 If count = 1?
+
+-- END TEST >>> 0308 <<< END TEST
+
+-- *************************************************
+
+-- NO_TEST:0373 insert with embeded var. & indic. var. CHECK clause!
+
+-- Testing Embedded Variable & Indicator Variable
+
+-- *************************************************
+
+
+-- TEST:0374 computation in update, CHECK clause!
+
+-- setup
+  DELETE FROM STAFF5;
+
+  INSERT INTO STAFF5
+        VALUES('R9','Alice',15,'Deale');
+
+  SELECT COUNT(*) FROM STAFF5;
+-- PASS:0374 If count = 1?
+
+  UPDATE STAFF5
+         SET GRADE = 10 * 10 / 5 + 1
+         WHERE EMPNUM = 'R9';
+-- PASS:0374 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF5
+      WHERE GRADE = 15;
+-- PASS:0374 If count = 1?
+
+-- restore
+  ROLLBACK WORK;
+
+-- END TEST >>> 0374 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr003_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,114 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR004
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr004.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0309 CHECK combination predicates in <tab. cons.>, insert!
+
+-- setup
+  DELETE FROM STAFF11;
+
+  INSERT INTO STAFF11
+        VALUES('E1','Thomas',0,'Deale');
+-- PASS:0309 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF11
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0309 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF11
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT COUNT(*) FROM STAFF11;
+-- PASS:0309 If count = 1?
+
+
+-- END TEST >>> 0309 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0310 CHECK if X NOT IN, NOT X IN equivalent, insert!
+
+-- setup
+  DELETE FROM STAFF12;
+
+  INSERT INTO STAFF12
+        VALUES('E1','Thomas',0,'Deale');
+-- PASS:0310 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF12
+        VALUES('E2','Tom',22,'Newyork');
+-- PASS:0310 If ERROR, check constraint, 0 rows inserted?
+
+  INSERT INTO STAFF12
+        VALUES('E3','Susan',11,'Hawaii');
+
+  SELECT COUNT(*) FROM STAFF12;
+-- PASS:0310 If count = 1?
+
+-- END TEST >>> 0310 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0311 CHECK NOT NULL in col.cons., insert, null explicit!
+
+-- setup
+  DELETE FROM STAFF15;
+
+  INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+
+  SELECT COUNT(*) FROM STAFF15;
+-- PASS:0311 If count = 1?
+
+  INSERT INTO STAFF15
+        VALUES('E2',NULL,52,'Newyork');
+-- PASS:0311 If ERROR, check constraint, 0 rows inserted?
+
+  SELECT COUNT(*) FROM STAFF15;
+-- PASS:0311 If count = 1?
+
+
+-- END TEST >>> 0311 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0312 CHECK NOT NULL in col.cons., insert, null implicit!
+
+-- setup
+  DELETE FROM STAFF15;
+
+  INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+
+  SELECT COUNT(*) FROM STAFF15;
+-- PASS:0312 If count = 1?
+
+  INSERT INTO STAFF15(EMPNUM,GRADE,CITY)
+        VALUES('E2',52,'Newyork');
+-- PASS:0312 If ERROR, check constraint, 0 rows inserted?
+
+  SELECT COUNT(*) FROM STAFF15;
+-- PASS:0312 If count = 1?
+
+
+  COMMIT WORK;
+ 
+-- END TEST >>> 0312 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr004_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,82 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR005
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr005.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0313 CHECK <comp. predicate> in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF5;
+
+  INSERT INTO STAFF5
+        VALUES('E2','Tom',14,'Newyork');
+
+  UPDATE STAFF5
+        SET GRADE = 20;
+-- PASS:0313 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF5
+        WHERE GRADE = 14;
+-- PASS:0313 If count = 1?
+
+
+-- END TEST >>> 0313 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0314 CHECK <comp. predicate> in <col. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF6;
+
+  INSERT INTO STAFF6
+        VALUES('E2','Tom',14,'Newyork');
+
+  UPDATE STAFF6
+        SET GRADE = 20;
+-- PASS:0314 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF6
+        WHERE GRADE = 14;
+-- PASS:0314 If count = 1?
+
+-- END TEST >>> 0314 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0315 CHECK <between predicate> in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF7;
+
+  INSERT INTO STAFF7
+        VALUES('E2','Tom',14,'Newyork');
+
+  UPDATE STAFF7
+        SET GRADE = 21;
+-- PASS:0315 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF7
+        WHERE GRADE = 14;
+-- PASS:0315 If count = 1?
+
+
+  COMMIT WORK;
+ 
+-- END TEST >>> 0315 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr005_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,87 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR006
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr006.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0316 CHECK <null predicate> in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF8;
+
+  INSERT INTO STAFF8
+        VALUES('E1','Alice',34,'Deale');
+
+  UPDATE STAFF8
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+-- PASS:0316 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF8
+        WHERE EMPNAME = 'Alice';
+-- PASS:0316 If count = 1?
+
+-- END TEST >>> 0316 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0317 CHECK X IS NOT NULL, NOT X IS NULL same, by update!
+
+-- setup
+  DELETE FROM STAFF13;
+
+  INSERT INTO STAFF13
+        VALUES('E1','Alice',36,'Deale');
+
+  UPDATE STAFF13
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+-- PASS:0317 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*)
+        FROM STAFF13
+        WHERE EMPNAME = 'Alice';
+-- PASS:0317 If count = 1?
+
+
+-- END TEST >>> 0317 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0318 CHECK <like predicate> in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF9;
+
+  INSERT INTO STAFF9
+        VALUES('E3','Susan',11,'Hawaii');
+
+  UPDATE STAFF9
+        SET EMPNAME = 'Thomas'
+        WHERE EMPNUM = 'E3';
+-- PASS:0318 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*)
+        FROM STAFF9
+        WHERE EMPNAME = 'Susan';
+-- PASS:0318 If count = 1?
+
+  COMMIT WORK;
+ 
+-- END TEST >>> 0318 <<< END TEST
+
+-- *************************************************////END-OF-MODULE
+

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr006_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,113 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR007
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr007.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0319 CHECK <in predicate> in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF10;
+
+  INSERT INTO STAFF10
+        VALUES('E3','Susan',11,'Hawaii');
+
+  UPDATE STAFF10
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+-- PASS:0319 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF10
+        WHERE GRADE = 11;
+-- PASS:0319 If count = 1?
+
+
+-- END TEST >>> 0319 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0320 CHECK combination pred. in <tab. cons.>, update!
+
+-- setup
+  DELETE FROM STAFF11;
+
+  INSERT INTO STAFF11
+        VALUES('E3','Susan',11,'Hawaii');
+
+  UPDATE STAFF11
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+-- PASS:0320 If ERROR, check constraint, 0 rows updated?
+
+  UPDATE STAFF11
+        SET EMPNAME = 'Tom'
+        WHERE EMPNUM = 'E3';
+-- PASS:0320 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF11
+        WHERE EMPNAME = 'Susan' AND GRADE = 11;
+-- PASS:0320 If count = 1?
+
+-- END TEST >>> 0320 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0321 CHECK if X NOT LIKE/IN, NOT X LIKE/IN same, update!
+
+-- setup
+  DELETE FROM STAFF12;
+
+  INSERT INTO STAFF12
+        VALUES('E3','Susan',11,'Hawaii');
+
+  UPDATE STAFF12
+        SET GRADE = 5
+        WHERE EMPNUM = 'E3';
+-- PASS:0321 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF12
+        WHERE GRADE = 11;
+-- PASS:0321 If count = 1?
+
+
+-- END TEST >>> 0321 <<< END TEST
+
+-- *************************************************
+
+
+-- TEST:0322 CHECK <null predicate> in <col. cons>, update!
+
+-- setup
+  DELETE FROM STAFF15;
+
+  INSERT INTO STAFF15
+        VALUES('E1','Alice',52,'Deale');
+
+  UPDATE STAFF15
+        SET EMPNAME = NULL
+        WHERE EMPNUM = 'E1';
+-- PASS:0322 If ERROR, check constraint, 0 rows updated?
+
+  SELECT COUNT(*) FROM STAFF15
+        WHERE EMPNAME = 'Alice';
+-- PASS:0322 If count = 1?
+
+
+  COMMIT WORK;
+ 
+-- END TEST >>> 0322 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr007_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,200 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR027
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr027.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM SUN.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+
+-- TEST:0446 Table CHECK constraint allows unknown (NULL)!
+
+   DELETE FROM STAFF5;
+
+   INSERT INTO STAFF5 VALUES('E7','Mimi',NULL,'Miami');
+-- PASS:0446 If 1 row inserted?
+
+   INSERT INTO STAFF5 VALUES('E8','Joe',NULL,'Boston'); 
+-- PASS:0446 If 1 row inserted?
+
+   INSERT INTO STAFF5(EMPNUM) VALUES('E9');
+-- PASS:0446 If 1 row inserted?
+
+--O   UPDATE STAFF
+   UPDATE HU.STAFF
+       SET GRADE = NULL
+       WHERE EMPNUM = 'E1';
+-- PASS:0446 If 1 row updated?
+
+   INSERT INTO STAFF5 
+        SELECT *
+--O         FROM STAFF;
+         FROM HU.STAFF;
+-- PASS:0446 If 5 rows inserted?
+
+   UPDATE STAFF5 
+       SET GRADE = NULL
+       WHERE EMPNUM = 'E2';
+-- PASS:0446 If 1 row updated?
+
+   UPDATE STAFF5
+       SET GRADE = NULL 
+       WHERE EMPNUM = 'E4';
+-- PASS:0446 If 1 row updated?
+
+   SELECT COUNT(*)
+       FROM STAFF5;
+-- PASS:0446 If count = 8?
+
+   SELECT COUNT(*)
+       FROM STAFF5
+       WHERE GRADE IS NULL;
+-- PASS:0446 If count = 6?
+
+   ROLLBACK WORK;
+
+-- END TEST >>> 0446 <<< END TEST
+-- *********************************************
+
+-- TEST:0447 NULLs with check constraint and check option!
+
+   DELETE FROM STAFF6;
+
+--O   INSERT INTO STAFF6_WITH_GRADES
+--O       VALUES('X1','Vicki',NULL,'Houston');
+-- PASS:0447 If ERROR, view check constraint, 0 rows inserted?
+
+   INSERT INTO STAFF6
+       VALUES('X2','Tina',NULL,'Orlando');
+-- PASS:0447 If 1 row inserted?
+
+--O   SELECT COUNT(*)
+--O       FROM STAFF6_WITH_GRADES;
+-- PASS:0447 If count = 0?
+
+   SELECT COUNT(*)
+      FROM STAFF6;
+-- PASS:0447 If count = 1?
+
+   SELECT EMPNAME
+       FROM STAFF6
+       WHERE GRADE IS NULL;
+-- PASS:0447 If EMPNAME is Tina?
+
+   ROLLBACK WORK;
+
+-- END TEST >>> 0447 <<< END TEST
+-- *********************************************
+
+-- TEST:0448 PRIMARY KEY implies UNIQUE!
+
+   DELETE FROM STAFF9;
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('D1','Muddley');
+-- PASS:0448 If 1 row inserted?
+
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('D1','Muddley');
+-- PASS:0448 If ERROR, unique constraint, 0 rows inserted?
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('d1','Muddley');
+-- PASS:0448 If 1 row inserted?
+
+   SELECT COUNT(*)
+       FROM STAFF9;
+-- PASS:0448 If count = 2?
+
+   ROLLBACK WORK;
+
+-- END TEST >>> 0448 <<< END TEST
+-- *********************************************
+
+-- TEST:0449 Constraint definition is case sensitive!
+
+   DELETE FROM STAFF9;
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z1','Tina');
+-- PASS:0449 If ERROR, check constraint, 0 rows inserted?
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z2','tina');
+-- PASS:0449 If 1 row inserted?
+
+   INSERT INTO STAFF9(EMPNUM,EMPNAME)
+       VALUES('Z3','ANTHONY');
+-- PASS:0449 If 1 row inserted?
+
+   SELECT COUNT(*)
+        FROM STAFF9;
+-- PASS:0449 If count = 2?
+
+   ROLLBACK WORK;
+
+-- END TEST >>> 0449 <<< END TEST
+-- *********************************************
+
+-- TEST:0450 Referential integrity is case sensitive!
+
+   INSERT INTO DEPT
+       VALUES(11,'VOLLEYBALL','VICKI');
+-- PASS:0450 If 1 row inserted?
+
+   INSERT INTO DEPT 
+       VALUES(10,'volleyball','vicki');
+-- PASS:0450 If 1 row inserted?
+-- NOTE:0450 insert lower case value of above.
+
+   SELECT COUNT(*) FROM DEPT WHERE DNO = 10;
+-- PASS:0450 If count = 1?
+
+--O   INSERT INTO EMP
+--O       VALUES(13,'MARY','Dancer',15,'VOLLEYBALL',010101);
+-- PASS:0450 If 1 row inserted?
+
+   DELETE FROM DEPT
+       WHERE DNO = 10;
+-- PASS:0450 If 1 row deleted?
+
+--O   UPDATE DEPT
+--O       SET DNAME = 'EDUCATION'
+--O       WHERE DNAME = 'Education';
+-- PASS:0450 If RI ERROR, children exist, 0 rows updated?
+
+--O   SELECT * FROM DEPT ORDER BY DNO;
+-- PASS:0450 If 5 rows selected?
+-- PASS:0450 If DNO values are 11, 12, 13, 14, 15?
+-- PASS:0450 If DNAME = 'Education' (not 'EDUCATION') for DNO = 14?
+
+--O   INSERT INTO EMP
+--O       VALUES(28,'BARBARA','Jogger',14,'EDUCATION',010101);
+-- PASS:0450 If RI ERROR, parent missing, 0 rows inserted?
+
+--O   UPDATE EMP
+--O       SET DNAME = 'PHYSICS'
+--O       WHERE ENO = 25;
+-- PASS:0450 If RI ERROR, parent missing, 0 rows updated?
+
+--O   SELECT ENO, ENAME, DNO, DNAME 
+--O       FROM EMP ORDER BY ENO;
+-- PASS:0450 If 8 rows selected?
+-- PASS:0450 If ENO values are 13, 21 through 27?
+-- PASS:0450 If DNAME = 'Physics' (not 'PHYSICS') for ENO = 25?
+
+   ROLLBACK WORK;
+
+-- END TEST >>> 0450 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr027_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,8 @@
+#
+# 
+#
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,108 @@
+AUTOCOMMIT OFF;
+
+-- MODULE CDR030  
+
+-- SQL Test Suite, V6.0, Interactive SQL, cdr030.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SUN
+   set schema SUN;
+
+--O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- NOTE Direct support for SQLCODE or SQLSTATE is not required
+-- NOTE    in Interactive Direct SQL, as defined in FIPS 127-2.
+-- NOTE   ********************* instead ***************************
+-- NOTE If a statement raises an exception condition,
+-- NOTE    then the system shall display a message indicating that
+-- NOTE    the statement failed, giving a textual description
+-- NOTE    of the failure.
+-- NOTE If a statement raises a completion condition that is a
+-- NOTE    "warning" or "no data", then the system shall display
+-- NOTE    a message indicating that the statement completed,
+-- NOTE    giving a textual description of the "warning" or "no data."
+
+-- TEST:0516 SQLSTATE 23502: integrity constraint violation!
+
+--O   INSERT INTO EMP 
+--O         VALUES (41,'Tom','China Architecture',
+--O                 20,'Architecture',040553);
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows inserted?
+-- PASS:0516 OR RI ERROR, parent missing, 0 rows inserted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+--O   DELETE FROM EMP
+--O         WHERE ENO = 21;
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows deleted?
+-- PASS:0516 OR RI ERROR, children exist, 0 rows deleted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+--O   UPDATE EMP
+--O         SET ENAME = 'Thomas'
+--O         WHERE ENO = 21;
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR RI ERROR, chldren exist, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+-- setup 
+   DELETE FROM STAFF7;
+
+-- PRIMARY KEY (EMPNUM)
+   INSERT INTO STAFF7 (EMPNUM) 
+         VALUES ('XXX');
+-- PASS:0516 If 1 row inserted?
+
+   INSERT INTO STAFF7 (EMPNUM) 
+         VALUES ('XXX');
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows inserted?
+-- PASS:0516 OR ERROR, unique constraint, 0 rows inserted?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+-- setup
+   DELETE FROM PROJ3;
+
+-- UNIQUE (PNUM)
+   INSERT INTO PROJ3 (PNUM) VALUES ('787');
+
+   INSERT INTO PROJ3 (PNUM) VALUES ('789');
+-- PASS:0516 If 1 row inserted?
+
+   UPDATE PROJ3          SET PNUM = '787' 
+                       WHERE PNUM = '789';
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, unique constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+-- setup
+   DELETE FROM STAFF11;
+
+   INSERT INTO STAFF11
+         VALUES('E3','Susan',11,'Hawaii');
+-- PASS:0516 If 1 row inserted?
+
+-- (CHECK GRADE NOT IN (5,22))
+   UPDATE STAFF11
+         SET GRADE = 5
+         WHERE EMPNUM = 'E3';
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, check constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+-- (CHECK NOT EMPNAME LIKE 'T%')
+   UPDATE STAFF11
+         SET EMPNAME = 'Tom'
+         WHERE EMPNUM = 'E3';
+-- PASS:0516 If ERROR, integrity constraint violation, 0 rows updated?
+-- PASS:0516 OR ERROR, check constraint, 0 rows updated?
+-- PASS:0516 OR SQLSTATE = 23502 OR SQLCODE < 0?
+
+-- restore
+   ROLLBACK WORK;
+
+-- END TEST >>> 0516 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/cdr030_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,7 @@
+#
+# 
+#
+database=jdbc:derby:wombat;user=SUN;password=SUNPWD
+derby.infolog.append=true
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/copyfiles.ant
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/copyfiles.ant?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/copyfiles.ant	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,193 @@
+basetab.sql
+cdr002.sql
+cdr002_app.properties
+cdr003.sql
+cdr003_app.properties
+cdr004.sql
+cdr004_app.properties
+cdr005.sql
+cdr005_app.properties
+cdr006.sql
+cdr006_app.properties
+cdr007.sql
+cdr007_app.properties
+cdr027.sql
+cdr027_app.properties
+cdr030.sql
+cdr030_app.properties
+default_app.properties
+default_derby.properties
+dml001.sql
+dml004.sql
+dml005.sql
+dml008.sql
+dml009.sql
+dml010.sql
+dml011.sql
+dml012.sql
+dml013.sql
+dml014.sql
+dml015.sql
+dml016.sql
+dml016_app.properties
+dml018.sql
+dml019.sql
+dml020.sql
+dml021.sql
+dml022.sql
+dml023.sql
+dml024.sql
+dml025.sql
+dml026.sql
+dml027.sql
+dml029.sql
+dml033.sql
+dml034.sql
+dml035.sql
+dml037.sql
+dml038.sql
+dml039.sql
+dml042.sql
+dml043.sql
+dml044.sql
+dml045.sql
+dml046.sql
+dml047.sql
+dml049.sql
+dml050.sql
+dml051.sql
+dml052.sql
+dml053.sql
+dml055.sql
+dml056.sql
+dml057.sql
+dml058.sql
+dml059.sql
+dml060.sql
+dml061.sql
+dml065.sql
+dml068.sql
+dml069.sql
+dml070.sql
+dml073.sql
+dml075.sql
+dml076.sql
+dml079.sql
+dml080.sql
+dml080_app.properties
+dml081.sql
+dml081_app.properties
+dml082.sql
+dml082_app.properties
+dml083.sql
+dml083_app.properties
+dml085.sql
+dml085_app.properties
+dml087.sql
+dml087_app.properties
+dml090.sql
+dml091.sql
+dml091_app.properties
+dml099.sql
+dml099_app.properties
+dml104.sql
+dml104_app.properties
+dml106.sql
+dml106_app.properties
+dml108.sql
+dml108_app.properties
+dml112.sql
+dml112_app.properties
+dml114.sql
+dml114_app.properties
+dml119.sql
+dml119_app.properties
+dml130.sql
+dml130_app.properties
+dml132.sql
+dml132_app.properties
+dml134.sql
+dml134_app.properties
+dml141.sql
+dml141_app.properties
+dml144.sql
+dml144_app.properties
+dml147.sql
+dml147_app.properties
+dml148.sql
+dml148_app.properties
+dml149.sql
+dml149_app.properties
+dml155.sql
+dml155_app.properties
+dml158.sql
+dml160.sql
+dml160_app.properties
+dml162.sql
+dml162_app.properties
+dml165.sql
+dml165_app.properties
+dml168.sql
+dml168_app.properties
+dml170.sql
+dml170_app.properties
+dml173.sql
+dml173_app.properties
+dml174.sql
+dml174_app.properties
+dml177.sql
+dml177_app.properties
+dml178.sql
+dml178_app.properties
+dml179.sql
+dml179_app.properties
+dml181.sql
+dml181_app.properties
+dml182.sql
+dml182_app.properties
+flattab.sql
+flattab_app.properties
+schema1.sql
+schema1_app.properties
+schema4.sql
+schema4_app.properties
+schema5.sql
+schema5_app.properties
+schema8.sql
+schema8_app.properties
+sdl012.sql
+temp_cts5sch2.sql
+temp_cts5tab.sql
+temp_cts5tab_app.properties
+temp_schem10.sql
+xts701.sql
+xts701_app.properties
+xts701a_app.properties
+xts729.sql
+xts729_app.properties
+xts730.sql
+xts730_app.properties
+xts731.sql
+xts731_app.properties
+xts740.sql
+xts740_app.properties
+xts742.sql
+xts742_app.properties
+xts752.sql
+xts752_app.properties
+xts753.sql
+xts753_app.properties
+xts760.sql
+xts760_app.properties
+yts796.sql
+yts796_app.properties
+yts797.sql
+yts797_app.properties
+yts798.sql
+yts798_app.properties
+yts799.sql
+yts799_app.properties
+yts811.sql
+yts811_app.properties
+yts812.sql
+yts812_app.properties

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,17 @@
+#
+# This is the default system properties file for JSQL and JAVA tests.
+#
+# It will get handed to the test on the command line in a -p <filename>
+# argument.
+#
+# This causes ij (or the GUI on ij) to load the driver and make an
+# initial connection to the database.
+#
+# If you want to alter these to use a different driver, connect to a different
+# database, or to not be used, override this file by creating
+# a file <testname>.sysprop to be used instead of this file.
+#
+ij.defaultResourcePackage=/org/apache/derbyTesting/functionTests/tests/nist/
+ij.database=jdbc:derby:wombat;autocommit=false;user=HU;password=HUPWD
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_derby.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_derby.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/default_derby.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,14 @@
+# no statement cacheing is the default.
+derby.language.defaultIsolationLevel=serializable
+derby.infolog.append=true
+derby.connection.requireAuthentication=true
+derby.user.HU=HUPWD
+derby.user.FLATER=FLATERPWD
+derby.user.SUN=SUNPWD
+derby.user.CTS1=CTS1PWD
+derby.user.SULLIVAN1=SULLIVAN1PWD
+derby.user.SCHANZLE=SCHANZLEPWD
+derby.database.users.wombat=HU,FLATER,SUN,CTS1,SULLIVAN1,SCHANZLE
+derby.locks.deadlockTimeout=2
+derby.locks.waitTimeout=4
+

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml001.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml001.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml001.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,142 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML001
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml001.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
+
+
+-- TEST:0001 SELECT with ORDER BY DESC!
+
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM='P2'
+                     ORDER BY EMPNUM DESC;
+
+-- PASS:0001 If 4 rows selected and last EMPNUM = 'E1'?
+
+-- END TEST >>> 0001 <<< END TEST
+-- *********************************************
+
+-- TEST:0002 SELECT with ORDER BY integer ASC!
+
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM='P2'
+                     ORDER BY 2 ASC;
+
+-- PASS:0002 If 4 rows selected and last HOURS = 80?
+
+-- END TEST >>> 0002 <<< END TEST
+-- *********************************************
+
+-- TEST:0003 SELECT with ORDER BY DESC integer, named column!
+
+                SELECT EMPNUM,HOURS
+                     FROM WORKS
+                     WHERE PNUM = 'P2'
+                     ORDER BY 2 DESC,EMPNUM DESC;
+
+-- PASS:0003 If 4 rows selected and last EMPNUM = 'E1'?
+
+-- END TEST >>> 0003 <<< END TEST
+-- *********************************************
+
+-- TEST:0004 SELECT with UNION, ORDER BY integer DESC!
+
+                SELECT WORKS.EMPNUM 
+                     FROM WORKS
+                     WHERE WORKS.PNUM = 'P2'
+            UNION
+                SELECT STAFF.EMPNUM  
+                     FROM STAFF
+                     WHERE STAFF.GRADE=13 
+                     ORDER BY 1 DESC;
+
+-- PASS:0004 If 5 rows selected and last EMPNUM = 'E1'?
+
+-- END TEST >>> 0004 <<< END TEST
+-- *********************************************
+
+-- TEST:0005 SELECT with UNION ALL!
+
+                SELECT WORKS.EMPNUM 
+                     FROM WORKS
+                     WHERE WORKS.PNUM = 'P2'
+            UNION ALL    
+                SELECT STAFF.EMPNUM  
+                     FROM STAFF
+                     WHERE STAFF.GRADE = 13;
+
+-- PASS:0005 If 6 rows selected?
+
+-- END TEST >>> 0005 <<< END TEST
+-- *********************************************
+
+-- TEST:0158 SELECT with UNION and NOT EXISTS subquery!
+
+                SELECT EMPNAME,PNUM,HOURS
+                     FROM STAFF,WORKS
+                     WHERE STAFF.EMPNUM = WORKS.EMPNUM
+            UNION
+                SELECT EMPNAME,PNUM,HOURS
+                     FROM STAFF,WORKS
+                     WHERE NOT EXISTS
+                       (SELECT HOURS 
+                             FROM WORKS
+                             WHERE STAFF.EMPNUM = WORKS.EMPNUM);
+
+-- PASS:0158 If 21 rows selected?
+
+-- END TEST >>> 0158 <<< END TEST
+-- *********************************************
+
+-- TEST:0159 SELECT with 2 UNIONs, ORDER BY 2 integers!
+
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=80
+         UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=40
+         UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=20
+                  ORDER BY 3,1;
+
+-- PASS:0159 If 10 rows selected?
+
+-- END TEST >>> 0159 <<< END TEST
+-- *********************************************
+
+-- TEST:0160 SELECT with parenthesized UNION, UNION ALL!
+
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=12
+             UNION ALL 
+            (SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+             UNION
+             SELECT PNUM,EMPNUM,HOURS
+                  FROM WORKS
+                  WHERE HOURS=80)
+                  ORDER BY 2,1;
+
+-- PASS:0160 If 14 rows selected?
+
+-- END TEST >>> 0160 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml004.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml004.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml004.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,70 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML004
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml004.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
+
+-- TEST:0008 SQLCODE 100:SELECT on empty table !
+     SELECT EMPNUM,HOURS
+          FROM WORKS
+          WHERE PNUM = 'P8'
+          ORDER BY EMPNUM DESC;
+
+-- PASS:0008 If 0 rows selected, SQLCODE = 100, end of data?
+
+-- END TEST >>> 0008 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0009 SELECT NULL value!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E9','P9',NULL);
+-- PASS:0009 If 1 row is inserted?
+
+     SELECT EMPNUM
+          FROM WORKS
+          WHERE HOURS IS NULL;
+-- PASS:0009 If EMPNUM = 'E9'?
+
+          SELECT EMPNUM, HOURS
+               FROM WORKS
+               WHERE PNUM = 'P9'
+               ORDER BY EMPNUM DESC;
+
+-- PASS:0009 If EMPNUM = 'E9' and HOURS is NULL?
+
+-- restore
+     ROLLBACK WORK;
+
+
+-- END TEST >>> 0009 <<< END TEST
+-- ******************************************************************
+
+-- NO_TEST:0161 FETCH NULL value without indicator, SQLCODE < 0!
+
+-- Testing Indicators
+
+-- **********************************************************
+
+-- NO_TEST:0162 FETCH NULL value with indicator syntax!
+
+-- Testing indicators
+
+-- ****************************************************************
+
+-- NO_TEST:0010 FETCH truncated CHAR column with indicator!
+
+-- Testing indicators
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml005.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml005.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml005.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,37 @@
+-- MODULE DML005
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml005.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
+
+-- TEST:0011 FIPS sizing - DECIMAL (15)!
+-- FIPS sizing TEST
+
+-- setup
+--O     DELETE FROM LONGINT;
+     DELETE FROM LONGINTTAB;
+
+-- setup
+--O     INSERT INTO LONGINT
+     INSERT INTO LONGINTTAB
+            VALUES(123456789012345.);
+-- PASS:0011 If 1 row is inserted?
+
+     SELECT LONG_INT, LONG_INT /1000000, LONG_INT - 123456789000000.
+--O          FROM LONGINT;
+          FROM LONGINTTAB;
+
+-- PASS:0011 If values are (123456789012345, 123456789, 12345), but?
+-- PASS:0011 Second value may be between 123456788 and 123456790?
+
+-- END TEST >>> 0011 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml008.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml008.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml008.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,95 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML008
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml008.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
+
+-- TEST:0016 SELECT ALL syntax!
+     SELECT ALL EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+
+-- PASS:0016 If 2 rows are selected and both EMPNUMs are 'E1'?
+
+-- END TEST >>> 0016 <<< END TEST
+-- *************************************************************
+
+-- TEST:0164 SELECT:default is ALL, not DISTINCT!
+     SELECT EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+
+-- PASS:0164 If 2 rows are selected and both EMPNUMs are 'E1'?
+
+-- END TEST >>> 0164 <<< END TEST
+-- ************************************************************
+
+-- TEST:0017 SELECT:checks DISTINCT!
+     SELECT DISTINCT EMPNUM
+          FROM WORKS
+          WHERE HOURS = 12;
+
+-- PASS:0017 If 1 row is selected and EMPNUM = 'E1'?
+
+-- END TEST >>> 0017 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0018 SQLCODE = 100, SELECT with no data!
+     SELECT EMPNUM,PNUM
+          FROM WORKS
+          WHERE EMPNUM = 'E16';
+
+-- PASS:0018 If 0 rows selected, SQLCODE = 100, end of data?
+
+-- END TEST >>> 0018 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0019 SQLCODE = 0, SELECT with data!
+     SELECT EMPNUM,HOURS
+          FROM WORKS
+          WHERE EMPNUM = 'E1' AND PNUM = 'P4';
+
+-- PASS:0019 If HOURS = 20 ?
+
+-- END TEST >>> 0019 <<< END TEST
+-- **********************************************************
+
+-- TEST:0020 SELECT NULL value !
+
+-- setup
+     INSERT INTO WORKS
+         VALUES('E18','P18',NULL);
+-- PASS:0020 If 1 row is inserted?
+
+      SELECT EMPNUM,HOURS  
+           FROM   WORKS
+          WHERE  EMPNUM='E18' AND PNUM='P18';
+-- PASS:0020 If EMPNUM = 'E18' and HOURS is NULL?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0020 <<< END TEST
+-- **********************************************************
+
+-- NO_TEST:0021 SELECT CHAR(m) column into shorter var, get indic = m!
+
+-- Testing indicators
+
+-- ***********************************************************
+
+-- NO_TEST:0165 Truncate CHAR column SELECTed into shorter var!
+
+-- Testing host identifiers
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml009.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml009.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml009.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,126 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML009
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml009.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
+
+-- TEST:0022 INSERT(column list) VALUES(literals and NULL)!
+
+-- setup
+     INSERT INTO WORKS(PNUM,EMPNUM,HOURS)
+            VALUES ('P22','E22',NULL);
+-- PASS:0022 If 1 row inserted?
+
+      SELECT EMPNUM,PNUM
+           FROM   WORKS
+           WHERE  HOURS IS NULL;
+-- PASS:0022 If EMPNUM = 'E22'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0022 <<< END TEST
+-- **************************************************************
+
+-- TEST:0023 DEC precision >= col.def.: ERROR if left-truncate!
+
+-- setup
+     DELETE FROM TEMP_S;
+   
+     COMMIT WORK;
+
+-- setup
+     INSERT INTO TEMP_S(EMPNUM,GRADE,CITY)
+          VALUES('E23',2323.4,'China');
+-- PASS:0023 If 1 row inserted?
+
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM TEMP_S;
+-- PASS:0023 If count = 1?
+
+-- setup
+     INSERT INTO TEMP_S
+            VALUES('E23',23234,'China');
+-- PASS:0023 If 1 row inserted or ?
+-- PASS:0023 insert fails due to precision of 23234?
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM TEMP_S;
+-- PASS:0023 If count = 1 or 2 (depending on previous insertion)?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0023 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0024 INSERT:<query spec.> is empty: SQLCODE = 100!
+
+-- setup
+     INSERT INTO TEMP_S
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 13;
+-- PASS:0024 If 0 rows selected, SQLCODE = 100, end of data?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0024 <<< END TEST
+-- *************************************************************
+
+-- TEST:0025 INSERT:<query spec.> is not empty!
+     DELETE FROM TEMP_S;
+
+-- setup
+     INSERT INTO TEMP_S(EMPNUM,GRADE,CITY)
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 12;
+-- PASS:0025 If 2 rows are inserted?
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM TEMP_S;
+-- PASS:0025 If count = 2?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0025 <<< END TEST
+-- *************************************************************
+
+-- TEST:0026 INSERT into view with check option and unique violation!
+
+--0     SELECT COUNT(*) FROM STAFF;
+-- PASS:0026 If count = 5?
+
+-- setup
+--0     INSERT INTO TEMP_SS
+--0            SELECT EMPNUM,GRADE,CITY
+--0                 FROM STAFF3
+--0                 WHERE GRADE = 10;
+-- PASS:0026 If ERROR, view check constraint, 0 rows inserted  OR ?
+-- PASS:0026 If ERROR, unique constraint, 0 rows inserted?
+
+--0     SELECT COUNT(*) FROM STAFF;
+-- PASS:0026 If count = 5?
+
+-- restore
+--0     ROLLBACK WORK;
+
+-- END TEST >>> 0026 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml010.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml010.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml010.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,71 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML010
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml010.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
+
+-- TEST:0027 INSERT short string in long col -- space padding !
+
+-- setup 
+     INSERT INTO TMP (T1, T2, T3) 
+            VALUES ( 'xxxx',23,'xxxx');
+-- PASS:0027 If 1 row inserted?
+ 
+      SELECT *
+           FROM TMP
+           WHERE T2 = 23 AND T3 = 'xxxx      ';
+-- PASS:0027 If T1 = 'xxxx      ' ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0027 <<< END TEST
+-- ************************************************************* 
+
+-- TEST:0028 Insert String that fits Exactly in Column!
+
+-- setup
+     INSERT INTO TMP (T1, T2, T3) 
+            VALUES ('xxxxxxxxxx', 23,'xxxxxxxxxx'); 
+-- PASS:0028 If 1 row inserted?
+
+      SELECT *
+           FROM TMP
+           WHERE T2 = 23;
+-- PASS:0028 If T1 = 'xxxxxxxxxx'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0028 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0031 INSERT(column list) VALUES(NULL and literals)!
+
+-- setup
+     INSERT INTO TMP (T2, T3, T1) 
+            VALUES (NULL,'zz','z'); 
+-- PASS:0031 If 1 row inserted?
+
+      SELECT *
+           FROM   TMP
+           WHERE  T2 IS NULL;
+-- PASS:0031 If T1 = 'z         '?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0031 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml011.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml011.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml011.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,94 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML011
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml011.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
+
+-- TEST:0033 UPDATE view without <WHERE clause>!
+
+-- setup
+--O     UPDATE TEMP_SS
+--O          SET GRADE = 15;
+-- PASS:0033 If 2 rows are updated ?
+
+--O     SELECT COUNT(*)
+--O          FROM TEMP_SS
+--O          WHERE GRADE = 15;
+-- PASS:0033 If count = 2?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0033 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0034 UPDATE table with SET column in <WHERE clause>!
+
+-- setup
+     UPDATE STAFF
+          SET GRADE = 2*GRADE
+          WHERE GRADE = 13;
+-- PASS:0034 If 2 rows are updated?
+
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE GRADE = 26;
+-- PASS:0034 If count = 2?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0034 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0035 UPDATE with correlated subquery in <WHERE clause>!
+
+-- setup
+     UPDATE STAFF
+          SET GRADE=10*STAFF.GRADE
+          WHERE STAFF.EMPNUM NOT IN
+                (SELECT WORKS.EMPNUM
+                      FROM WORKS
+                      WHERE STAFF.EMPNUM = WORKS.EMPNUM);
+-- PASS:0035 If 1 row is updated?
+
+     SELECT COUNT(*)
+          FROM   STAFF
+          WHERE  GRADE=130;
+-- PASS:0035 If count = 1?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0035 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0036 UPDATE view globally with check option violation!
+
+     SELECT COUNT(*) FROM STAFF WHERE GRADE = 11;
+-- PASS:0036 If count = 0?
+
+--O     UPDATE TEMP_SS
+--O          SET GRADE = 11;
+-- PASS:0036 If ERROR, view check constraint, 0 rows updated?
+
+     SELECT COUNT(*) FROM STAFF WHERE GRADE = 11;
+-- PASS:0036 If count = 0?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0036 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml012.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml012.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml012.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,67 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML012
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml012.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0037 DELETE without WHERE clause!
+     SELECT COUNT(*)
+          FROM STAFF;
+-- PASS:0037 If count = 5?
+
+      DELETE FROM STAFF;
+-- PASS:0037 If 5 rows deleted?
+
+      SELECT COUNT(*)
+           FROM STAFF;
+-- PASS:0037 If count = 0?
+
+-- restore
+     ROLLBACK WORK;
+
+-- Testing Rollback
+      SELECT COUNT(*)
+           FROM STAFF;
+-- PASS:0037 If count = 5?
+
+-- END TEST >>> 0037 <<< END TEST
+-- **************************************************************
+
+-- TEST:0038 DELETE with correlated subquery in WHERE clause!
+     SELECT COUNT(*)
+          FROM WORKS;
+-- PASS:0038 If count = 12?
+
+     DELETE FROM WORKS
+           WHERE WORKS.PNUM IN
+                 (SELECT PROJ.PNUM
+                       FROM PROJ
+                       WHERE PROJ.PNUM=WORKS.PNUM
+                       AND PROJ.CITY='Tampa');
+-- PASS:0038 If 1 row deleted?
+
+      SELECT COUNT(*)
+           FROM WORKS;
+-- PASS:0038 If count = 11?
+
+-- restore
+      ROLLBACK WORK;
+
+-- Testing Rollback
+      SELECT COUNT(*)
+           FROM WORKS;
+-- PASS:0038 If count = 12?
+
+-- END TEST >>> 0038 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml013.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml013.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml013.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,150 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML013
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml013.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0039 COUNT DISTINCT function!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+-- PASS:0039 If 1 row inserted?
+
+     SELECT COUNT(DISTINCT HOURS)
+          FROM WORKS;
+-- PASS:0039 If count = 4?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0039 <<< END TEST
+-- ************************************************************
+
+-- TEST:0167 SUM ALL function!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+-- PASS:0167 If 1 row is inserted?
+
+     SELECT SUM(ALL HOURS)
+          FROM WORKS;
+-- PASS:0167 If SUM(ALL HOURS) = 464?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0167 <<< END TEST
+-- ************************************************************
+
+-- TEST:0168 SUM function!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+-- PASS:0168 If 1 row is inserted?
+
+     SELECT SUM(HOURS)
+          FROM WORKS;
+-- PASS:0168 If SUM(HOURS) = 464?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0168 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0169 COUNT(*) function !
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E5','P5',NULL);
+-- PASS:0169 If 1 row is inserted?
+
+     SELECT COUNT(*)
+          FROM WORKS;
+-- PASS:0169 If count = 13?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0169 <<< END TEST
+-- *************************************************************
+
+-- TEST:0040 SUM function with WHERE clause!
+     SELECT SUM(HOURS)
+          FROM WORKS
+          WHERE PNUM = 'P2';
+-- PASS:0040 If SUM(HOURS) = 140?
+
+-- END TEST >>> 0040 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0170 SUM DISTINCT function with WHERE clause!
+     SELECT SUM(DISTINCT HOURS)
+          FROM WORKS
+          WHERE PNUM = 'P2';
+-- PASS:0170 If SUM(DISTINCT HOURS) = 100?
+
+-- END TEST >>> 0170 <<< END TEST
+-- **************************************************************
+
+-- TEST:0171 SUM(column) + value!
+     SELECT SUM(HOURS)+10
+          FROM WORKS
+          WHERE PNUM = 'P2';
+
+-- PASS:0171 If SUM(HOURS)+10 = 150?
+
+-- END TEST >>> 0171 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0041 MAX function in subquery!
+     SELECT EMPNUM
+          FROM STAFF
+          WHERE GRADE = (SELECT MAX(GRADE) FROM STAFF)
+          ORDER BY EMPNUM;
+-- PASS:0041 If 2 rows are selected and EMPNUMs = 'E3' and 'E5'?
+
+-- END TEST >>> 0041 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0042 MIN function in subquery!
+     SELECT EMPNUM
+          FROM STAFF
+          WHERE GRADE =
+               (SELECT MIN(GRADE) FROM STAFF);
+-- PASS:0042 If EMPNUM = 'E2'?
+
+-- END TEST >>> 0042 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0043 AVG function!
+     SELECT AVG(GRADE)
+          FROM STAFF;
+-- PASS:0043 If AVG(GRADE) = 12?
+
+-- END TEST >>> 0043 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0044 AVG function - empty result NULL value!
+     DELETE FROM TEMP_S;
+
+    SELECT AVG(GRADE)
+         FROM   TEMP_S;
+-- PASS:0044 If AVG(GRADE) is NULL?
+
+-- END TEST >>> 0044 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml014.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml014.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml014.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,268 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML014
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml014.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
+
+-- TEST:0045 BETWEEN predicate!
+     SELECT PNUM
+          FROM PROJ
+          WHERE BUDGET BETWEEN 40000 AND 60000;
+-- PASS:0045 If PNUM = 'P6'?
+ 
+     SELECT PNUM
+          FROM PROJ
+          WHERE BUDGET >= 40000 AND BUDGET <= 60000;
+-- PASS:0045 If PNUM = 'P6'?
+
+-- END TEST >>> 0045 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0046 NOT BETWEEN predicate   !
+     SELECT CITY
+          FROM STAFF
+          WHERE GRADE NOT BETWEEN 12 AND 13;
+-- PASS:0046 If CITY = 'Vienna'?
+
+      SELECT CITY
+           FROM STAFF
+           WHERE NOT(GRADE BETWEEN 12 AND 13);
+-- PASS:0046 If CITY = 'Vienna'?
+
+-- END TEST >>> 0046 <<< END TEST
+-- *************************************************************
+
+-- TEST:0047 IN predicate!
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE STAFF.EMPNUM IN
+                  (SELECT WORKS.EMPNUM
+                        FROM WORKS
+                        WHERE WORKS.PNUM IN
+                              (SELECT PROJ.PNUM
+                                    FROM PROJ
+                                    WHERE PROJ.CITY='Tampa'));
+-- PASS:0047 If EMPNAME = 'Alice'?
+
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE STAFF.EMPNUM = ANY
+                 (SELECT WORKS.EMPNUM
+                       FROM WORKS
+                       WHERE WORKS.PNUM IN
+                            (SELECT PROJ.PNUM
+                                  FROM PROJ
+                                  WHERE PROJ.CITY='Tampa'));
+-- PASS:0047 If EMPNAME = 'Alice'?
+
+-- END TEST >>> 0047 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0048 NOT IN predicate!
+     SELECT WORKS.HOURS
+          FROM WORKS
+          WHERE WORKS.PNUM NOT IN 
+                  (SELECT PROJ.PNUM
+                        FROM PROJ
+                        WHERE PROJ.BUDGET BETWEEN 5000 AND 40000);
+-- PASS:0048 If HOURS = 12?
+
+     SELECT WORKS.HOURS
+          FROM WORKS
+          WHERE NOT (WORKS.PNUM IN 
+                 (SELECT PROJ.PNUM
+                       FROM PROJ
+                       WHERE PROJ.BUDGET BETWEEN 5000 AND 40000));
+-- PASS:0048 If HOURS = 12?
+
+-- END TEST >>> 0048 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0049 IN predicate value list!
+     SELECT HOURS
+          FROM WORKS
+          WHERE PNUM NOT IN 
+                 (SELECT PNUM
+                       FROM WORKS
+                       WHERE PNUM IN ('P1','P2','P4','P5','P6'));
+-- PASS:0049 If HOURS = 80?
+
+     SELECT HOURS
+          FROM WORKS
+          WHERE NOT (PNUM IN 
+                 (SELECT PNUM
+                       FROM WORKS
+                       WHERE PNUM IN ('P1','P2','P4','P5','P6')));
+-- PASS:0049 If HOURS = 80?
+
+-- END TEST >>> 0049 <<< END TEST
+-- **************************************************************
+
+-- TEST:0050 LIKE predicate -- %!
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE EMPNAME LIKE 'Al%';
+-- PASS:0050 If EMPNAME = 'Alice'?
+
+-- END TEST >>> 0050 <<< END TEST
+-- **************************************************************
+
+-- TEST:0051 LIKE predicate -- underscore!
+     SELECT CITY
+          FROM STAFF
+          WHERE EMPNAME LIKE 'B__t%';
+-- PASS:0051 If CITY = 'Vienna'?
+
+-- END TEST >>> 0051 <<< END TEST
+-- *************************************************************
+
+-- TEST:0052 LIKE predicate -- ESCAPE character!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,'Xi_an%');
+-- PASS:0052 If 1 row is inserted?
+
+--O     SELECT CITY
+--O          FROM STAFF
+--O          WHERE CITY LIKE 'XiS___S%%'
+--O          ESCAPE 'S';
+-- PASS:0052 If CITY = 'Xi_an%' ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0052 <<< END TEST
+-- **************************************************************
+
+-- TEST:0053 NOT LIKE predicate!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,'Xi_an%');
+-- PASS:0053 If 1 row is inserted?
+
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE EMPNUM  NOT LIKE '_36';
+-- PASS:0053 If count = 5?
+
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE NOT(EMPNUM  LIKE '_36');
+-- PASS:0053 If count = 5?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0053 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0054 IS NULL predicate!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,NULL);
+-- PASS:0054 If 1 row is inserted?
+
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE CITY IS NULL;
+-- PASS:0054 If EMPNAME = 'Huyan'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0054 <<< END TEST
+-- ************************************************************
+
+-- TEST:0055 NOT NULL predicate!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E36','Huyan',36,NULL);
+-- PASS:0055 If 1 row is inserted?
+
+     SELECT COUNT(*)
+          FROM STAFF;
+-- PASS:0055 If count = 6?
+
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE CITY IS NOT NULL;
+-- PASS:0055 If count = 5?
+
+     SELECT COUNT(*)
+          FROM STAFF
+          WHERE NOT (CITY IS NULL);
+-- PASS:0055 If count = 5?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0055 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0056 NOT EXISTS predicate!
+     SELECT STAFF.EMPNAME
+          FROM STAFF
+          WHERE NOT EXISTS
+                 (SELECT *
+                       FROM PROJ
+                       WHERE NOT EXISTS
+                             (SELECT *
+                                   FROM WORKS
+                                   WHERE STAFF.EMPNUM = WORKS.EMPNUM
+                                   AND WORKS.PNUM=PROJ.PNUM));
+-- PASS:0056 If EMPNAME = 'Alice'?
+
+-- END TEST >>> 0056 <<< END TEST
+-- ************************************************************
+
+-- TEST:0057 ALL quantifier !
+     SELECT CITY
+          FROM PROJ
+          WHERE BUDGET > ALL
+                 (SELECT BUDGET
+                       FROM PROJ
+                       WHERE CITY='Vienna');
+-- PASS:0057 If CITY = 'Deale'?
+
+-- END TEST >>> 0057 <<< END TEST
+-- **************************************************************
+
+-- TEST:0058 SOME quantifier!
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE GRADE < SOME
+                 (SELECT BUDGET/1000 - 39 
+                       FROM PROJ
+                       WHERE CITY='Deale');
+-- PASS:0058 If EMPNAME = 'Betty'?
+
+-- END TEST >>> 0058 <<< END TEST
+-- *************************************************************
+
+-- TEST:0059 ANY quantifier !
+     SELECT EMPNAME
+          FROM STAFF
+          WHERE GRADE < ANY
+                 (SELECT BUDGET/1000 - 39 
+                       FROM PROJ
+                       WHERE CITY = 'Deale');
+-- PASS:0059 If EMPNAME = 'Betty'?
+
+-- END TEST >>> 0059 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml015.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml015.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml015.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,74 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML015
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml015.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:0060 COMMIT work closes CURSORs!
+
+-- Testing cursors
+  
+-- ************************************************************
+
+-- TEST:0061 COMMIT work keeps changes to database!
+
+     INSERT INTO TEMP_S
+           SELECT EMPNUM, GRADE, CITY
+                FROM STAFF;
+-- PASS:0061 If 5 rows are inserted?
+
+     COMMIT WORK;
+ 
+-- verify previous COMMIT keeps changes
+     ROLLBACK WORK;
+
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM TEMP_S;
+-- PASS:0061 If count = 5?
+
+-- END TEST >>> 0061 <<< END TEST
+-- ************************************************************
+
+-- TEST:0062 ROLLBACK work cancels changes to database!
+-- NOTE:0062 uses data created by TEST 0061
+
+     DELETE FROM TEMP_S
+           WHERE EMPNUM = 'E5';
+-- PASS:0062 If 1 row is deleted?
+
+--O        SELECT COUNT(*)
+        SELECT *
+             FROM TEMP_S;
+-- PASS:0062 If count = 4?
+
+-- restore
+     ROLLBACK WORK;
+ 
+--O     SELECT COUNT(*)
+        SELECT *
+          FROM TEMP_S;
+-- PASS:0062 If count = 5?
+
+-- restore
+     DELETE FROM TEMP_S;
+     COMMIT WORK;
+
+-- END TEST >>> 0062 <<< END TEST
+-- ***********************************************************
+
+-- NO_TEST:0063 ROLLBACK work closes CURSORs!
+
+-- Testing cursors
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,59 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML016
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml016.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION SULLIVAN
+   create schema SULLIVAN;
+   set schema SULLIVAN;
+
+--O   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0064 SELECT USER!
+
+     SELECT USER, PNAME
+          FROM HU.PROJ;
+-- PASS:0064 If 6 rows are selected and each USER = 'SULLIVAN' ?
+
+-- END TEST >>> 0064 <<< END TEST
+-- ***********************************************************
+
+-- NO_TEST:0172 SELECT USER into short variable!
+-- Tests Host Variable
+
+-- **********************************************************
+
+-- TEST:0065 SELECT CHAR literal and term with numeric literal!
+
+     SELECT 'USER',PNAME
+          FROM HU.PROJ;
+-- PASS:0065 If 6 rows are selected and first column is value 'USER'?
+
+     SELECT PNUM,'BUDGET IN GRAMS IS ',BUDGET * 5
+          FROM HU.PROJ
+          WHERE PNUM = 'P1';
+-- PASS:0065 If values are 'P1', 'BUDGET IN GRAMS IS ', 50000?
+
+-- END TEST >>> 0065 <<< END TEST
+-- ************************************************************
+
+-- TEST:0066 SELECT numeric literal!
+     SELECT EMPNUM,10
+          FROM HU.STAFF
+          WHERE GRADE = 10;
+-- PASS:0066 If 1 row with values 'E2' and 10?
+
+     SELECT EMPNUM, 10
+          FROM HU.STAFF;
+-- PASS:0066 If 5 rows are selected with second value always = 10?
+-- PASS:0066 and EMPNUMs are 'E1', 'E2', 'E3', 'E4', 'E5'?
+
+-- END TEST >>> 0066 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016_app.properties
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016_app.properties?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml016_app.properties	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,7 @@
+#
+# schema4 runs against the schema1 database in autocommit mode
+# creates the db if it must ... when just running multiuser
+#
+database=jdbc:derby:wombat;user=SULLIVAN1;password=SULLIVAN1PWD
+ij.showNoConnectionsAtStart=true
+ij.showNoCountForSelect=true

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml018.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml018.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml018.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,73 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML018
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml018.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0069 HAVING COUNT with WHERE, GROUP BY!
+     SELECT PNUM
+          FROM WORKS
+          WHERE PNUM > 'P1'
+          GROUP BY PNUM
+          HAVING COUNT(*) > 1;
+-- PASS:0069 If 3 rows are selected with PNUMs = 'P2', 'P4', 'P5'?
+
+-- END TEST >>> 0069 <<< END TEST
+-- ***********************************************************
+   
+-- TEST:0070 HAVING COUNT with GROUP BY!
+     SELECT PNUM
+          FROM WORKS
+          GROUP BY PNUM
+          HAVING COUNT(*) > 2;
+-- PASS:0070 If PNUM = 'P2'?
+
+-- END TEST >>> 0070 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0071 HAVING MIN, MAX with GROUP BY 3 columns!
+     SELECT EMPNUM, PNUM, HOURS
+          FROM WORKS
+          GROUP BY PNUM, EMPNUM, HOURS
+          HAVING MIN(HOURS) > 12 AND MAX(HOURS) < 80;
+-- PASS:0071 If 7 rows are selected: EMPNUM/PNUMs are 'E1'/'P1',?
+-- PASS:0071      'E1'/'P2','E1'/'P4', 'E2'/'P1',?
+-- PASS:0071      'E3'/'P2', 'E4'/'P2', 'E4'/'P4'?
+
+-- END TEST >>> 0071 <<< END TEST
+-- *************************************************************
+
+-- TEST:0072 Nested HAVING IN with no outer reference!
+     SELECT WORKS.PNUM
+          FROM WORKS
+          GROUP BY WORKS.PNUM
+          HAVING WORKS.PNUM IN (SELECT PROJ.PNUM
+                    FROM PROJ
+                    GROUP BY PROJ.PNUM
+                    HAVING SUM(PROJ.BUDGET) > 25000)
+-- Derby change to standardize order for diff
+	order by works.pnum;
+-- PASS:0072 If 3 rows are selected: WORKS.PNUMs are 'P2', 'P3', 'P6'?
+
+-- END TEST >>> 0072 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0073 HAVING MIN with no GROUP BY!
+     SELECT SUM(HOURS)
+          FROM WORKS
+          HAVING MIN(PNUM) > 'P0';
+-- PASS:0073 If 1 row is selected with SUM(HOURS) = 464?
+
+-- END TEST >>> 0073 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml019.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml019.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml019.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,95 @@
+-- MODULE DML019
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml019.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
+
+-- TEST:0074 GROUP BY col with SELECT col., SUM!
+     SELECT PNUM, SUM(HOURS)                 
+          FROM WORKS                              
+          GROUP BY PNUM;
+-- PASS:0074 If 6 rows are selected?
+-- PASS:0074 If PNUMs: 'P1', 'P2', 'P3', 'P4', 'P5', 'P6'?
+-- PASS:0074 If SUM(HOURS) for 'P2' is 140 ?
+
+-- END TEST >>> 0074 <<< END TEST
+-- **********************************************************
+
+-- TEST:0075 GROUP BY clause!
+     SELECT EMPNUM                           
+          FROM WORKS                              
+          GROUP BY EMPNUM
+-- Derby change to standardize order for diff
+	order by empnum;
+-- PASS:0075 If 4 rows are selected with EMPNUMs: 'E1','E2','E3','E4'?
+
+-- END TEST >>> 0075 <<< END TEST
+-- ************************************************************
+
+-- TEST:0076 GROUP BY 2 columns!
+     SELECT EMPNUM,HOURS                     
+          FROM WORKS                              
+          GROUP BY EMPNUM,HOURS
+-- Derby change to standardize order for diff
+	order by empnum, hours;
+-- PASS:0076 If 10 rows are selected and EMPNUM = 'E1' in 4 rows ?
+-- PASS:0076 for 1 row EMPNUM = 'E1' and HOURS = 12?
+
+-- END TEST >>> 0076 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0077 GROUP BY all columns with SELECT * !
+     SELECT *                    
+          FROM WORKS                              
+          GROUP BY PNUM,EMPNUM,HOURS;
+-- PASS:0077 If 12 rows are selected ?
+
+-- END TEST >>> 0077 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0078 GROUP BY three columns, SELECT two!
+     SELECT PNUM,EMPNUM                      
+          FROM WORKS                              
+          GROUP BY EMPNUM,PNUM,HOURS;
+-- PASS:0078 If 12 rows are selected  ?
+
+-- END TEST >>> 0078 <<< END TEST
+-- *********************************************************
+
+-- TEST:0079 GROUP BY NULL value!
+
+-- setup
+     INSERT INTO STAFF(EMPNUM,EMPNAME,GRADE)
+            VALUES('E6','WANG',40);
+-- PASS:0079 If 1 row is inserted?
+
+     INSERT INTO STAFF(EMPNUM,EMPNAME,GRADE)
+            VALUES('E7','SONG',50);
+-- PASS:0079 If 1 row is inserted?
+              
+     SELECT SUM(GRADE)                       
+          FROM STAFF                            
+          WHERE CITY IS NULL                     
+          GROUP BY CITY;
+-- PASS:0079 If SUM(GRADE) = 90?
+
+-- restore
+   DELETE FROM STAFF WHERE CITY IS NULL;
+-- PASS:0079 If 2 rows deleted?
+
+--O   SELECT COUNT(*) FROM STAFF;
+   SELECT * FROM STAFF;
+-- PASS:0079 If count = 5?
+
+-- END TEST >>> 0079 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml020.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml020.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml020.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,62 @@
+-- MODULE DML020
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml020.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
+
+-- TEST:0080 Simple two-table join!
+     SELECT EMPNUM,EMPNAME,GRADE,STAFF.CITY, PNAME, PROJ.CITY          
+          FROM STAFF, PROJ                                                   
+          WHERE STAFF.CITY = PROJ.CITY
+		ORDER BY EMPNUM, EMPNAME, GRADE, STAFF.CITY, PNAME;
+-- PASS:0080 If 10 rows are selected with EMPNAMEs:'Alice', 'Betty', ?
+-- PASS:0080 'Carmen', and 'Don' but not 'Ed'?
+
+-- END TEST >>> 0080 <<< END TEST
+-- **************************************************************
+
+-- TEST:0081 Simple two-table join with filter!
+--
+-- Added ORDER BY clause to get stable results across platforms - Jeff
+     SELECT EMPNUM,EMPNAME,GRADE,STAFF.CITY,PNUM,PNAME,         
+                                PTYPE,BUDGET,PROJ.CITY                        
+          FROM STAFF, PROJ                                                  
+          WHERE STAFF.CITY = PROJ.CITY                                       
+          AND GRADE <> 12
+		ORDER BY EMPNUM, EMPNAME, GRADE, STAFF.CITY, PNUM, PNAME;
+-- PASS:0081 If 4 rows selected with EMPNAMEs 'Betty' and 'Carmen' ?
+
+-- END TEST >>> 0081 <<< END TEST
+-- ************************************************************** 
+
+-- TEST:0082 Join 3 tables!
+     SELECT DISTINCT STAFF.CITY, PROJ.CITY                                
+          FROM STAFF, WORKS, PROJ                                            
+          WHERE STAFF.EMPNUM = WORKS.EMPNUM                                 
+          AND WORKS.PNUM = PROJ.PNUM
+		ORDER BY STAFF.CITY, PROJ.CITY;
+-- PASS:0082 If 5 distinct rows are selected ?
+
+-- END TEST >>> 0082 <<< END TEST
+-- ************************************************************
+
+-- TEST:0083 Join a table with itself!
+     SELECT FIRST1.EMPNUM, SECOND2.EMPNUM                               
+          FROM STAFF FIRST1, STAFF SECOND2                                   
+          WHERE FIRST1.CITY = SECOND2.CITY                                  
+          AND FIRST1.EMPNUM < SECOND2.EMPNUM
+		ORDER BY FIRST1.EMPNUM, SECOND2.EMPNUM;
+-- PASS:0083 If 2 rows are selected and ?
+-- PASS:0083 If EMPNUM pairs are 'E1'/'E4' and 'E2'/'E3'?
+
+-- END TEST >>> 0083 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml021.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml021.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml021.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,223 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML021
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml021.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
+
+-- TEST:0084 Data type CHAR(20)!
+
+-- setup
+     INSERT INTO AA
+            VALUES('abcdefghijklmnopqrst');
+-- PASS:0084 If 1 row is inserted?
+                                                             
+     SELECT CHARTEST                                                   
+          FROM   AA;
+-- PASS:0084 If CHARTEST = 'abcdefghijklmnopqrst' ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0084 <<< END TEST
+-- *************************************************************
+
+-- TEST:0173 Data type CHAR!
+
+-- setup
+     INSERT INTO BB
+            VALUES('a');
+-- PASS:0173 If 1 row is inserted?
+
+     SELECT CHARTEST                                                    
+          FROM BB;
+-- PASS:0173 If CHARTEST = 'a'?
+
+-- restore
+     ROLLBACK WORK;                                                         
+
+-- END TEST >>> 0173 <<< END TEST
+-- *****************************************************************
+
+-- TEST:0085 Data type CHARACTER(20)!
+
+-- setup
+     INSERT INTO CC
+            VALUES('abcdefghijklmnopqrst');
+-- PASS:0085 If 1 row is inserted?
+
+     SELECT CHARTEST                                                   
+          FROM CC;
+-- PASS:0085 If CHARTEST = 'abcdefghijklmnopqrst'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0085 <<< END TEST
+-- *************************************************************
+
+-- TEST:0174 Data type CHARACTER!
+
+-- setup
+     INSERT INTO DD
+            VALUES('a');
+-- PASS:0174 If 1 row is inserted?
+           
+     SELECT CHARTEST                                                    
+          FROM DD;
+-- PASS:0174 If CHARTEST = 'a'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0174 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0086 Data type INTEGER!
+
+-- setup
+     INSERT INTO EE
+            VALUES(123456);
+-- PASS:0086 If 1 row is inserted?
+                       
+     SELECT INTTEST                                                     
+          FROM EE;
+-- PASS:0086 If INTTEST = 123456?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0086 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0087 Data type INT!
+
+-- setup 
+     INSERT INTO FF
+            VALUES(123456);
+-- PASS:0087 If 1 row is inserted?
+                
+     SELECT INTTEST  
+          FROM FF;
+-- PASS:0087 If INTTEST = 123456?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0087 <<< END TEST
+-- **************************************************************
+
+-- TEST:0089 Data type SMALLINT!
+
+-- setup
+     INSERT INTO HH
+            VALUES(123);
+-- PASS:0089 If 1 row is inserted?
+
+     SELECT *
+          FROM HH;  
+-- PASS:0089 If SMALLTEST = 123?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0089 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0175 Data type NUMERIC!
+
+-- setup
+     INSERT INTO MM
+            VALUES(7);
+-- PASS:0175 If 1 row is inserted?
+
+     SELECT *
+          FROM MM;
+-- PASS:0175 If NUMTEST = 7?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0175 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0176 Data type NUMERIC(9), SELECT *!
+
+-- making sure table is empty
+     DELETE FROM NN;
+
+-- setup
+     INSERT INTO NN
+            VALUES(123456789);
+-- PASS:0176 If 1 row is inserted?
+
+     SELECT *
+          FROM NN;
+-- PASS:0176 If NUMTEST = 123456789 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0176 <<< END TEST
+-- *****************************************************************
+
+-- TEST:0177 Data type NUMERIC(9), SELECT column!
+
+-- setup
+     INSERT INTO OO
+            VALUES(123456789);
+-- PASS:0177 If 1 row is inserted ?
+
+     SELECT NUMTEST
+          FROM OO;
+-- PASS:0177 If NUMTEST = 123456789?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0177 <<< END TEST
+-- **************************************************************
+
+-- TEST:0178 Data type DECIMAL!
+
+-- setup
+     INSERT INTO QQ
+            VALUES(56);
+-- PASS:0178 If 1 row is inserted?
+
+     SELECT *
+          FROM QQ;
+-- PASS:0178 If NUMTEST = 56?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0178 <<< END TEST
+-- **************************************************************
+
+-- TEST:0179 Data type DECIMAL(8)!
+
+-- setup
+     INSERT INTO RR
+            VALUES(12345678);
+-- PASS:0179  If 1 row is inserted?
+
+     SELECT *
+          FROM RR;
+-- PASS:0179 If NUMTEST = 12345678?
+
+-- restore
+     ROLLBACK WORK; 
+
+-- END TEST >>> 0179 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml022.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml022.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml022.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,122 @@
+-- MODULE DML022
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml022.sql
+-- 59-byte ID
+-- TEd Version #
+                                                                           
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+                                
+-- TEST:0096 Subquery with MAX in < comparison predicate!
+     SELECT EMPNUM                                                         
+          FROM STAFF                                                           
+          WHERE GRADE <                                                        
+             (SELECT MAX(GRADE)                                                
+              FROM STAFF);
+-- PASS:0096 If 3 rows selected with EMPNUMs:'E1', 'E2', 'E4'?
+
+-- END TEST >>> 0096 <<< END TEST
+-- **********************************************************
+
+-- TEST:0097 Subquery with AVG - 1 in <= comparison predicate!
+     SELECT *                                                            
+          FROM STAFF                                                          
+          WHERE GRADE <=                                                    
+             (SELECT AVG(GRADE)-1                                           
+              FROM STAFF);
+-- PASS:0097 If EMPNUM = 'E2' and EMPNAME = 'Betty'?
+
+-- END TEST >>> 0097 <<< END TEST
+-- *******************************************************************
+
+-- TEST:0098 IN predicate with simple subquery!
+     SELECT EMPNAME                                                     
+          FROM STAFF                                                         
+          WHERE EMPNUM IN                                                   
+             (SELECT EMPNUM                                                  
+              FROM WORKS                                                   
+              WHERE PNUM = 'P2')
+     ORDER BY EMPNAME;
+-- PASS:0098 If 4 rows selected and first EMPNAME = 'Alice'?
+
+-- END TEST >>> 0098 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0099 Nested IN predicate - 2 levels!
+     SELECT EMPNAME                                                     
+          FROM STAFF                                                      
+          WHERE EMPNUM IN 
+             (SELECT EMPNUM                                                 
+              FROM WORKS                                                     
+              WHERE PNUM IN                                                   
+                 (SELECT PNUM                                                 
+                  FROM PROJ                                                  
+                  WHERE PTYPE = 'Design'));
+-- PASS:0099 If 3 rows selected with EMPNAMEs:'Alice', 'Betty', 'Don'?
+
+-- END TEST >>> 0099 <<< END TEST
+-- *****************************************************************
+
+-- TEST:0100 Nested IN predicate - 6 levels!
+     SELECT EMPNUM, EMPNAME                                             
+          FROM STAFF
+          WHERE EMPNUM IN                                                   
+             (SELECT EMPNUM                                                 
+              FROM WORKS                                                     
+              WHERE PNUM IN                                                    
+                 (SELECT PNUM                                                
+                  FROM PROJ                                                
+                  WHERE PTYPE IN                                              
+                     (SELECT PTYPE                                           
+                      FROM PROJ                                              
+                      WHERE PNUM IN                                          
+                         (SELECT PNUM                                          
+                          FROM WORKS
+                          WHERE EMPNUM IN                                    
+                             (SELECT EMPNUM                                   
+                              FROM WORKS                                     
+                              WHERE PNUM IN                                  
+                                 (SELECT PNUM                                
+                                  FROM PROJ                                  
+                                  WHERE PTYPE = 'Design'))))))
+     ORDER BY EMPNUM;
+-- PASS:0100 If 4 rows selected and first EMPNUM = 'E1'?
+-- PASS:0100 and first EMPNAME = 'Alice'?
+
+-- END TEST >>> 0100 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0101 Quantified predicate <= ALL with AVG in GROUP BY!
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                       
+          WHERE  HOURS <= ALL                                                 
+               (SELECT AVG(HOURS)                                            
+                FROM   WORKS                                                 
+                GROUP BY PNUM);
+-- PASS:0101 If 2 rows selected and each EMPNUM = 'E1'?
+
+-- END TEST >>> 0101 <<< END TEST
+-- *******************************************************************
+
+-- TEST:0102 Nested NOT EXISTS with correlated subquery and DISTINCT!
+     SELECT DISTINCT EMPNUM                                             
+          FROM WORKS WORKSX                                               
+          WHERE NOT EXISTS                                                    
+             (SELECT *                                                        
+              FROM WORKS WORKSY                                              
+              WHERE EMPNUM = 'E2'                                            
+              AND NOT EXISTS                                                
+                  (SELECT *                                                 
+                   FROM WORKS WORKSZ                                         
+                   WHERE WORKSZ.EMPNUM = WORKSX.EMPNUM
+                   AND WORKSZ.PNUM = WORKSY.PNUM));                       
+-- PASS:0102 If 2 rows selected with EMPNUMs:'E1', 'E2'?
+
+-- END TEST >>> 0102 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml023.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml023.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml023.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,131 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML023
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml023.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
+
+-- TEST:0103 Subquery with comparison predicate!
+     SELECT PNUM                                                        
+          FROM PROJ                                                            
+          WHERE PROJ.CITY =                                                  
+             (SELECT STAFF.CITY                                              
+              FROM STAFF                                                     
+              WHERE EMPNUM = 'E1');
+-- PASS:0103 If 3 rows are selected with PNUMs:'P1','P4','P6?
+
+-- END TEST >>> 0103 <<< END TEST
+-- **************************************************************
+
+-- TEST:0104 SQLCODE < 0, subquery with more than 1 value!
+     SELECT PNUM                                                       
+          FROM PROJ                                                          
+          WHERE PROJ.CITY =                                                  
+             (SELECT STAFF.CITY                                              
+              FROM STAFF                                                    
+              WHERE EMPNUM > 'E1' );
+
+-- PASS:0104 If ERROR, SELECT returns more than 1 row in subquery?
+-- PASS:0104 If 0 rows are selected?
+ 
+-- END TEST >>> 0104 <<< END TEST
+-- ************************************************************
+
+-- TEST:0105 Subquery in comparison predicate is empty!
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF
+          WHERE STAFF.CITY =
+              (SELECT PROJ.CITY
+                    FROM PROJ
+                    WHERE PNUM > 'P7');
+-- PASS:0105 If count = 0?
+
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF
+          WHERE NOT (STAFF.CITY =
+                  (SELECT PROJ.CITY
+                        FROM PROJ
+                        WHERE PNUM > 'P7' ));
+-- PASS:0105 If count = 0?
+
+-- END TEST >>> 0105 <<< END TEST
+-- *************************************************************
+
+-- TEST:0106 Comparison predicate <> !
+     SELECT PNUM                                                         
+          FROM PROJ                                                          
+          WHERE CITY <> 'Deale';
+-- PASS:0106 If 3 rows are selected with PNUMs:'P2','P3','P5'?
+
+-- END TEST >>> 0106 <<< END TEST
+-- *************************************************************
+
+-- TEST:0107 Comp predicate with short string logically blank padded!
+--O     SELECT COUNT(*)
+     SELECT empnum
+          FROM WORKS
+          WHERE EMPNUM = 'E1';
+-- PASS:0107 If count = 6 ?
+
+--O     SELECT COUNT(*)
+     SELECT empnum
+          FROM WORKS
+          WHERE EMPNUM = 'E1' AND EMPNUM = 'E1 ';
+-- PASS:0107 If count = 6?
+
+-- END TEST >>> 0107 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0180 NULLs sort together in ORDER BY!
+
+-- setup
+     UPDATE STAFF
+          SET GRADE = NULL
+          WHERE EMPNUM = 'E1' OR EMPNUM = 'E3' OR EMPNUM = 'E5';
+-- PASS:0180 If 3 rows are updated?
+                                                                     
+     SELECT EMPNUM,GRADE                                                 
+          FROM   STAFF                                                        
+          ORDER  BY GRADE,EMPNUM;
+-- PASS:0180 If 5 rows are selected with NULLs together ?
+-- PASS:0180 If first EMPNUM is either 'E1' or 'E2'?
+-- PASS:0180 If last EMPNUM is either 'E4' or 'E5?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0180 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0181 NULLs are equal for DISTINCT!
+
+-- setup
+     UPDATE STAFF
+          SET GRADE = NULL
+          WHERE EMPNUM = 'E1' OR EMPNUM = 'E3' OR EMPNUM = 'E5';
+-- PASS:0181 If 3 rows are updated?
+                                                                     
+     SELECT DISTINCT USER, GRADE                                               
+          FROM   STAFF                                                        
+          ORDER  BY GRADE;
+-- PASS:0181 If 3 rows are selected with GRADEs:10, 12, NULL ?
+-- PASS:0181 GRADE 10 precedes GRADE 12?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0181 <<< END TEST
+                                                                       
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml024.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml024.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml024.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,121 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML024
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml024.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
+
+-- TEST:0108 Search condition true OR NOT(true)!
+     SELECT EMPNUM,CITY                                                 
+          FROM   STAFF                                                        
+          WHERE  EMPNUM='E1' OR NOT(EMPNUM='E1');
+-- PASS:0108 If 5 rows are selected ?
+
+-- END TEST >>> 0108 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0109 Search condition true AND NOT(true)!
+     SELECT EMPNUM,CITY                                                  
+          FROM   STAFF                                                       
+          WHERE  EMPNUM='E1' AND NOT(EMPNUM='E1');
+-- PASS:0109 If 0 rows are selected ?
+
+-- END TEST >>> 0109 <<< END TEST
+-- **************************************************************
+
+-- TEST:0110 Search condition unknown OR NOT(unknown)!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+-- PASS:0110 If 1 row is inserted?
+                                                   
+     SELECT EMPNUM,PNUM                                                  
+          FROM   WORKS                                                       
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                     
+          OR NOT(HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8'));
+-- PASS:0110 If 0 rows are selected ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0110 <<< END TEST
+-- *************************************************************
+
+-- TEST:0111 Search condition unknown AND NOT(unknown)!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+-- PASS:0111 If 1 row is inserted?
+                                                   
+     SELECT EMPNUM,PNUM                                                
+          FROM   WORKS                                                       
+          WHERE HOURS < (SELECT HOURS FROM WORKS                            
+                    WHERE EMPNUM = 'E8')                                     
+          AND NOT(HOURS< (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8'));
+
+-- PASS:0111 If 0 rows are selected?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0111 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0112 Search condition unknown AND true!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+-- PASS:0112 If 1 row is inserted?
+                                                           
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                      
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                      
+          AND   HOURS IN (SELECT HOURS FROM WORKS);
+
+-- PASS:0112 If 0 rows are selected?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0112 <<< END TEST
+-- *************************************************************
+
+-- TEST:0113 Search condition unknown OR true!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E8','P8',NULL);
+-- PASS:0113 If 1 row is inserted?
+                                                  
+     SELECT EMPNUM,PNUM                                                 
+          FROM   WORKS                                                        
+          WHERE HOURS < (SELECT HOURS FROM WORKS                              
+                    WHERE EMPNUM = 'E8')                                     
+          OR    HOURS IN (SELECT HOURS FROM WORKS)
+          ORDER BY EMPNUM;
+
+-- PASS:0113 If 12 rows are selected?
+-- PASS:0113 If first EMPNUM = 'E1'?
+
+-- restore
+     ROLLBACK WORK;                                                  
+
+-- END TEST >>> 0113 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml025.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml025.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml025.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,55 @@
+-- MODULE DML025
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml025.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0114 Set functions without GROUP BY returns 1 row!
+     SELECT SUM(HOURS),AVG(HOURS),MIN(HOURS),MAX(HOURS)                 
+          FROM    WORKS                                                      
+          WHERE   EMPNUM='E1';
+-- PASS:0114 If SUM(HOURS) = 184 and AVG(HOURS) is 30 to 31?
+-- PASS:0114 If MIN(HOURS) = 12 and MAX(HOURS) = 80 ?
+
+-- END TEST >>> 0114 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0115 GROUP BY col, set function: 0 groups returns empty table!
+     SELECT PNUM,AVG(HOURS),MIN(HOURS),MAX(HOURS)                        
+          FROM    WORKS                                                        
+          WHERE   EMPNUM='E8'                                                
+          GROUP BY PNUM;
+-- PASS:0115 If 0 rows are selected ?
+
+-- END TEST >>> 0115 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0116 GROUP BY set functions: zero groups returns empty table!
+     SELECT SUM(HOURS),AVG(HOURS),MIN(HOURS),MAX(HOURS)
+          FROM    WORKS                                                      
+          WHERE   EMPNUM='E8'                                                
+          GROUP BY PNUM;
+-- PASS:0116 If 0 rows are selected?
+
+-- END TEST >>> 0116 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0117 GROUP BY column, set functions with several groups!
+     SELECT PNUM,AVG(HOURS),MIN(HOURS),MAX(HOURS)                       
+          FROM    WORKS                                                      
+          GROUP BY PNUM
+          ORDER BY PNUM;
+-- PASS:0117 If 6 rows are selected and first PNUM = 'P1'?
+-- PASS:0117 and first MAX(HOURS) = 40?
+
+-- END TEST >>> 0117 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml026.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml026.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml026.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,114 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML026
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml026.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
+
+-- TEST:0118 Monadic arithmetic operator +!
+
+      SELECT +MAX(DISTINCT HOURS)
+              FROM WORKS;
+-- PASS:0118 If +MAX(DISTINCT HOURS) = 80?
+
+-- END TEST >>> 0118 <<< END TEST
+-- *********************************************************
+
+-- TEST:0119 Monadic arithmetic operator -!
+
+      SELECT -MAX(DISTINCT HOURS)
+              FROM WORKS;
+-- PASS:0119 If -MAX(DISTINCT HOURS) = -80?
+
+-- END TEST >>> 0119 <<< END TEST
+-- *********************************************************
+
+-- TEST:0120 Value expression with NULL primary IS NULL!
+
+-- setup
+     INSERT INTO WORKS1
+            SELECT * 
+                 FROM WORKS;
+-- PASS:0120 If 12 rows are inserted ?
+
+-- setup
+     INSERT INTO WORKS1
+            VALUES('E9','P1',NULL);
+-- PASS:0120 If 1 row is inserted?
+
+      SELECT EMPNUM
+           FROM WORKS1
+           WHERE HOURS IS NULL;
+-- PASS:0120 If EMPNUM = 'E9'?
+
+-- NOTE:0120 we insert into WORKS from WORKS1
+
+-- setup
+     INSERT INTO WORKS
+            SELECT EMPNUM,'P9',20+HOURS
+                 FROM WORKS1
+                 WHERE EMPNUM='E9';
+-- PASS:0120 If 1 row is inserted?
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM WORKS
+           WHERE EMPNUM='E9';
+-- PASS:0120 If count = 1      ?
+
+--O      SELECT COUNT(*)
+      SELECT *
+              FROM WORKS
+              WHERE HOURS IS NULL;
+-- PASS:0120 If count = 1 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0120 <<< END TEST
+-- **********************************************************
+
+-- TEST:0121 Dyadic operators +, -, *, /!
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM VTABLE;
+-- PASS:0121 If count = 4 ?
+
+      SELECT +COL1+COL2 - COL3*COL4/COL1
+              FROM VTABLE
+              WHERE COL1=10;
+-- PASS:0121 If answer is -90?
+
+-- END TEST >>> 0121 <<< END TEST
+-- *********************************************************
+
+-- TEST:0122 Divisor shall not be zero!
+
+      SELECT COL2/COL1+COL3
+              FROM VTABLE
+              WHERE COL4=3;
+-- PASS:0122 If ERROR Number not Divisible by Zero?
+
+-- END TEST >>> 0122 <<< END TEST
+-- **********************************************************
+
+-- TEST:0123 Evaluation order of expression!
+
+      SELECT (-COL2+COL1)*COL3 - COL3/COL1
+              FROM VTABLE
+              WHERE COL4 IS NULL;
+-- PASS:0123 If Answer is 8999997 (plus or minus 0.5)?
+
+-- END TEST >>> 0123 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml027.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml027.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml027.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,51 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML027
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml027.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
+
+-- TEST:0124 UPDATE UNIQUE column (key = key + 1) interim conflict!
+
+-- setup
+     UPDATE UPUNIQ
+          SET NUMKEY = NUMKEY + 1;
+-- PASS:0124 If 6 rows updated?
+
+      SELECT COUNT(*),SUM(NUMKEY)
+           FROM UPUNIQ;
+-- PASS:0124 If count = 6 and SUM(NUMKEY) = 30?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0124 <<< END TEST
+-- ********************************************************
+
+-- TEST:0125 UPDATE UNIQUE column (key = key + 1) no interim conflit!
+
+-- setup
+     UPDATE UPUNIQ
+          SET NUMKEY = NUMKEY + 1
+          WHERE NUMKEY >= 4;
+-- PASS:0125 If 3 rows are updated?
+
+      SELECT COUNT(*),SUM(NUMKEY)
+           FROM UPUNIQ;
+-- PASS:0125 If count = 6 and SUM(NUMKEY) = 27?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0125 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml029.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml029.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml029.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,91 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML029
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml029.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
+
+-- TEST:0129 Double quote work in character string literal!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E8','Yang Ling',15,'Xi''an');
+-- PASS:0129 If 1 row is inserted?
+
+      SELECT GRADE,CITY
+           FROM STAFF
+           WHERE EMPNUM = 'E8';
+-- PASS:0129 If GRADE = 15 and CITY = 'Xi'an'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0129 <<< END TEST
+-- ************************************************************
+
+-- TEST:0130 Approximate numeric literal <mantissa>E<exponent>!
+
+-- setup
+     INSERT INTO JJ
+            VALUES(123.456E3);
+-- PASS:0130 If 1 row is inserted?
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM JJ
+           WHERE FLOATTEST > 123455 AND FLOATTEST < 123457;
+-- PASS:0130 If count = 1 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0130 <<< END TEST
+-- ***************************************************************
+
+-- TEST:0131 Approximate numeric literal with negative exponent!
+
+-- setup
+     INSERT INTO JJ
+            VALUES(123456E-3);
+-- PASS:0131 If 1 row is inserted?
+
+--O      SELECT COUNT(*)
+      SELECT *
+           FROM JJ
+           WHERE FLOATTEST > 122 AND FLOATTEST < 124;
+-- PASS:0131 If count = 1 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0131 <<< END TEST
+-- ********************************************************
+
+-- TEST:0182 Approx numeric literal with negative mantissa & exponent!
+
+-- setup
+     INSERT INTO JJ
+            VALUES(-123456E-3);
+-- PASS:0182 If 1 row is inserted?
+
+--O     SELECT COUNT(*)
+     SELECT *
+           FROM JJ
+           WHERE FLOATTEST > -124 AND FLOATTEST < -122;
+-- PASS:0182 If count = 1 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0182 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml033.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml033.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml033.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,38 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML033
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml033.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
+
+-- TEST:0135 Upper and loer case letters are distinct!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('UPP','low',100);
+-- PASS:0135 If 1 row is inserted?
+
+      SELECT EMPNUM,PNUM
+           FROM WORKS
+           WHERE EMPNUM='UPP' AND PNUM='low';
+-- PASS:0135 If EMPNUM = 'UPP' and PNUM = 'low'?
+
+      SELECT EMPNUM,PNUM
+           FROM WORKS
+           WHERE EMPNUM='upp' OR PNUM='LOW';
+-- PASS:0135 If 0 rows are selected - out of data?
+
+-- restore
+     ROLLBACK WORK;
+-- END TEST >>> 0135 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml034.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml034.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml034.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,167 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML034
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml034.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
+
+-- TEST:0088 Data type REAL!
+
+-- setup
+     INSERT INTO GG
+            VALUES(123.4567E-2);
+-- PASS:0088 If 1 row is inserted?
+
+     SELECT REALTEST                                                    
+          FROM GG;
+-- PASS:0088 If REALTEST = 1.234567 ?
+-- PASS:0088 OR  is between 1.234562 and 1.234572 ?
+
+     SELECT * 
+        FROM GG    
+        WHERE REALTEST > 1.234561 and REALTEST < 1.234573;
+-- PASS:0088 If 1 row selected?
+
+-- restore                                                                 
+     ROLLBACK WORK;
+
+-- END TEST >>> 0088 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0090 Data type DOUBLE PRECISION!
+
+-- setup
+     INSERT INTO II
+            VALUES(0.123456123456E6);
+-- PASS:0090 If 1 row is inserted?
+
+     SELECT DOUBLETEST                                                  
+          FROM II;
+-- PASS:0090 If DOUBLETEST = 123456.123456 ?
+-- PASS:0090 OR  is between 123456.123451 and 123456.123461 ?
+
+     SELECT * 
+       FROM II 
+       WHERE DOUBLETEST > 123456.123450 and DOUBLETEST < 123456.123462;
+-- PASS:0090 If 1 row selected?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0090 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0091 Data type FLOAT!
+
+-- setup
+     INSERT INTO JJ
+            VALUES(12.345678);
+-- PASS:0091 If 1 row is inserted?
+                                                                               
+     SELECT FLOATTEST                                                  
+          FROM JJ;
+-- PASS:0091 If FLOATTEST = 12.345678 ?
+-- PASS:0091 OR  is between 12.345673 and 12.345683 ?
+
+     SELECT * 
+       FROM JJ
+       WHERE FLOATTEST > 12.345672 and FLOATTEST < 12.345684;
+-- PASS:0091 If 1 row selected?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0091 <<< END TEST
+-- **********************************************************
+
+-- TEST:0092 Data type FLOAT(32)!
+
+-- setup
+     INSERT INTO KK
+            VALUES(123.456123456E+3);
+-- PASS:0092 If 1 row is inserted?
+                                                                                
+     SELECT FLOATTEST                                                   
+          FROM KK;
+-- PASS:0092 If FLOATTEST = 123456.123456 ?
+-- PASS:0092 OR  is between 123456.1233 and 123456.1236 ?
+
+     SELECT * 
+       FROM KK
+       WHERE FLOATTEST > 123456.123450 and FLOATTEST < 123456.123462;
+-- PASS:0092 If 1 row selected?
+
+-- restore
+     ROLLBACK WORK;                                                           
+
+-- END TEST >>> 0092 <<< END TEST
+-- *************************************************************
+
+-- TEST:0093 Data type NUMERIC(13,6)!
+
+-- setup
+     INSERT INTO LL
+            VALUES(123456.123456);
+-- PASS:0093 If 1 row is inserted?
+ 
+     SELECT *
+          FROM LL;
+-- PASS:0093 If NUMTEST = 123456.123456 ?
+-- PASS:0093 OR  is between 123456.123451 and 123456.123461 ?
+
+     SELECT * 
+       FROM LL
+       WHERE NUMTEST > 123456.123450 and NUMTEST < 123456.123462;
+-- PASS:0093 If 1 row selected?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0093 <<< END TEST
+-- *************************************************************
+
+-- TEST:0094 Data type DECIMAL(13,6)!
+
+-- setup
+     INSERT INTO PP
+             VALUES(123456.123456);
+-- PASS:0094 If 1 row is inserted?
+
+     SELECT *
+          FROM PP;
+-- PASS:0094 If NUMTEST = 123456.123456 ?
+-- PASS:0094 OR  is between 123456.123451 and 123456.123461 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0094 <<< END TEST
+-- **************************************************************
+
+-- TEST:0095 Data type DEC(13,6)!
+
+-- setup
+     INSERT INTO SS
+            VALUES(123456.123456);
+-- PASS:0095 If 1 row is inserted?
+
+     SELECT *
+          FROM SS;
+-- PASS:0095 If NUMTEST = 123456.123456 ?
+-- PASS:0095 OR  is between 123456.123451 and 123456.123461 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0095 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml035.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml035.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml035.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,44 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML035
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml035.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
+
+-- TEST:0157 ORDER BY approximate numeric!
+
+-- setup
+     INSERT INTO JJ VALUES(66.2);
+-- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-44.5);
+-- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(0.2222);
+-- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(66.3);
+-- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-87);
+-- PASS:0157 If 1 row is inserted?
+     INSERT INTO JJ VALUES(-66.25);
+-- PASS:0157 If 1 row is inserted?
+
+     SELECT FLOATTEST
+          FROM JJ
+          ORDER BY FLOATTEST DESC;
+-- PASS:0157 If 6 rows are selected ?
+-- PASS:0157 If last FLOATTEST = -87 OR  is between -87.5 and -86.5 ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0157 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml037.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml037.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml037.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,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

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml038.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml038.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml038.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,23 @@
+-- MODULE DML038
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml038.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
+
+-- TEST:0205 Cartesian product is produced without WHERE clause!
+
+     SELECT GRADE, HOURS, BUDGET
+          FROM STAFF, WORKS, PROJ order by GRADE, HOURS, BUDGET;
+-- PASS:0205 If 360 rows are selected ?
+
+-- END TEST >>> 0205 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml039.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml039.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml039.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,43 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML039
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml039.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
+
+-- TEST:0208 Upper and lower case in LIKE predicate!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E7', 'yanping',26,'China');
+-- PASS:0208 If 1 row is inserted?
+
+     INSERT INTO STAFF
+            VALUES('E8','YANPING',30,'NIST');
+-- PASS:0208 If 1 row is inserted?
+
+      SELECT CITY
+           FROM STAFF
+           WHERE EMPNAME LIKE 'yan____%';
+-- PASS:0208 If CITY = 'China'?
+
+      SELECT CITY
+           FROM STAFF
+           WHERE EMPNAME LIKE 'YAN____%';
+-- PASS:0208 If CITY = 'NIST'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0208 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml042.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml042.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml042.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,35 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML042
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml042.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
+
+-- TEST:0213 FIPS sizing -- 100 columns in a row!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T100(C1,C21,C41,C61,C81,C100)
+            VALUES(' 1','21','41','61','81','00');
+-- PASS:0213 If 1 row is inserted?
+
+      SELECT C1,C21,C41,C61,C81,C100
+           FROM T100;
+-- PASS:0213 If C1 = ' 1' and C100 = '00' ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0213 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml043.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml043.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml043.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,51 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML043
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml043.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
+
+-- TEST:0214 FIPS sizing -- 2000-byte row!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T2000(STR110,STR200,STR216)
+            VALUES
+               ('STR11111111111111111111111111111111111111111111111',
+                'STR22222222222222222222222222222222222222222222222',
+                'STR66666666666666666666666666666666666666666666666');
+
+-- PASS:0214 If 1 row is inserted?
+
+      UPDATE T2000
+           SET STR140 =
+           'STR44444444444444444444444444444444444444444444444';
+-- PASS:0214 If 1 row is updated?
+
+      UPDATE T2000
+           SET STR180 =
+           'STR88888888888888888888888888888888888888888888888';
+-- PASS:0214 If 1 row is updated?
+
+      SELECT STR110,STR180,STR216
+           FROM T2000;
+-- PASS:0214 If STR180 = ?
+-- PASS:0214   'STR88888888888888888888888888888888888888888888888'?
+-- PASS:0214 If STR216 = ?
+-- PASS:0214   'STR66666666666666666666666666666666666666666666666'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0214 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml044.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml044.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml044.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,70 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML044
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml044.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0215 FIPS sizing -- 6 columns in a UNIQUE constraint!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T8
+            VALUES('th','seco','third3','fourth_4','fifth_colu',
+                'sixth_column','seventh_column','last_column_of_t');
+-- PASS:0215 If 1 row is inserted?
+
+     INSERT INTO T8
+            VALUES('th','seco','third3','fourth_4','fifth_colu',
+                'sixth_column','column_seventh','column_eighth_la');
+-- PASS:0215 If ERROR, unique constraint, 0 rows inserted?
+
+      SELECT COL1,COL2,COL3,COL4,COL5,COL6,COL7,COL8
+           FROM T8;
+-- PASS:0215 If COL1 = 'th'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0215 <<< END TEST
+-- **************************************************************
+
+-- TEST:0216 FIPS sizing -- 120 bytes in a UNIQUE constraint!
+-- FIPS sizing TEST
+
+-- setup
+     DELETE FROM T4;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO T4 VALUES (
+'This test is trying to test the limit on the total length of an index',
+                 -123456, 'which is','not less than 120'); 
+-- PASS:0216 If 1 row is inserted?
+
+      INSERT INTO T4 VALUES (
+'This test is trying to test the limit on the total length of an index',
+                 -123456,'which is','not less than 120');
+-- PASS:0216 If ERROR, unique constraint, 0 rows inserted?
+
+      SELECT STR110
+           FROM T4;
+-- PASS:0216 If STR110 starts with 'This test is trying to test the '?
+-- PASS:0216 and ends with 'limit on the total length of an index'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0216 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml045.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml045.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml045.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,103 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML045
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml045.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0218 FIPS sizing -- 6 columns in GROUP BY!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',44,48);
+-- PASS:0218 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',11,12);
+-- PASS:0218 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',22,24);
+-- PASS:0218 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888888','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',33,36);
+-- PASS:0218 If 1 row is inserted?
+
+     SELECT COUNT(*)
+                FROM  T12;
+-- PASS:0218 If count = 4?
+
+     SELECT COL6,SUM(COL11),MAX(COL12)
+          FROM T12
+          GROUP BY COL1,COL5,COL3,COL6,COL2,COL4
+          ORDER BY COL6 DESC;
+-- PASS:0218 If 2 rows are selected and second COL6 = 0101010101 and ?
+-- PASS:0218 second SUM(COL11) = 77 and second MAX(COL12) = 48?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0218 <<< END TEST
+-- ****************************************************************
+
+-- TEST:0219 FIPS sizing -- 120 bytes in GROUP BY!
+-- FIPS sizing TEST
+
+-- setup
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888888','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',111,112);
+-- PASS:0219 If 1 row is inserted?
+
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888889','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',333,336);
+-- PASS:0219 If 1 row is inserted?
+
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888889','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',444,448);
+-- PASS:0219 If 1 row is inserted?
+
+    INSERT INTO T12
+    VALUES('1','22','4444','666666','88888888','1010101010',
+    '20202020202020202020','303030303030303030303030303030',
+    '4040404040404040404040404040404040404040', '5050...50',222,224);
+-- PASS:0219 If 1 row is inserted?
+
+     SELECT COUNT(*)
+                FROM  T12;
+-- PASS:0219 If count = 4?
+
+     SELECT COL5,SUM(COL11),MAX(COL12)
+          FROM T12
+          GROUP BY COL9,COL5,COL7,COL4,COL3,COL8
+          ORDER BY COL5 DESC;
+-- PASS:0219 If 2 rows are selected ?
+-- PASS:0219 If row #1 COL5=88888889, SUM(COL11)=777, MAX(COL12)=448?
+-- PASS:0219 If row #2 COL5=88888888, SUM(COL11)=333, MAX(COL12)=224?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0219 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml046.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml046.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml046.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,102 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML046
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml046.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
+
+-- TEST:0220 FIPS sizing -- 6 column in ORDER BY!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888884','1010101010',
+               '2020...20','3030...30','4040...40','5050...50',11,12);
+-- PASS:0220 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888883','1010101010',
+                '2020...20','3030...30','4040...40','5050...50',22,24);
+-- PASS:0220 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888882','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',33,36);
+-- PASS:0220 If 1 row is inserted?
+
+     INSERT INTO T12
+            VALUES('1','22','4444','666666','88888881','0101010101',
+                '2020...20','3030...30','4040...40','5050...50',44,48);
+-- PASS:0220 If 1 row is inserted?
+
+--O     SELECT COUNT(*)
+     SELECT COL5
+                FROM  T12;
+-- PASS:0220 If count = 4?
+
+     SELECT COL5,COL6,COL11,COL3,COL4,COL7,COL8
+          FROM T12
+          ORDER BY COL7,COL8,COL3,COL4,COL6,COL5 DESC;
+-- PASS:0220 If 4 rows are selected and first row?
+-- PASS:0220 COL5 = 88888882, COL6 = 0101010101 and COL11 = 33?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0220 <<< END TEST
+-- **************************************************************
+
+-- TEST:0221 FIPS sizing -- 120 bytes in ORDER BY!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO T12
+     VALUES('1','22','4442','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',111,112);
+-- PASS:0221 If 1 row is inserted?
+
+     INSERT INTO T12
+     VALUES('1','22','4443','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',222,224);
+-- PASS:0221 If 1 row is inserted?
+
+     INSERT INTO T12
+     VALUES('1','22','4441','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',333,336);
+-- PASS:0221 If 1 row is inserted?
+
+     INSERT INTO T12
+     VALUES('1','22','4444','666666','88888888','1010101010',
+     '20202020202020202020','303030303030303030303030303030',
+     '4040404040404040404040404040404040404040', '5050...50',444,448);
+-- PASS:0221 If 1 row is inserted?
+
+--O     SELECT COUNT(*)
+     SELECT COL3
+                FROM  T12;
+-- PASS:0221 If count = 4?
+
+     SELECT COL3,COL11,COL9,COL8,COL7,COL5,COL4
+          FROM T12
+          ORDER BY COL9,COL8,COL7,COL5,COL4,COL3;
+-- PASS:0221 If 4 rows are selected ?
+-- PASS:0221 If first row COL3 = 4441 and COL11 = 333?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0221 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml047.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml047.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml047.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,37 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML047
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml047.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
+
+-- TEST:0222 FIPS sizing -- Length(240) of a character string!
+-- FIPS sizing TEST
+-- NOTE:0222 Literal length is only 78
+
+-- setup
+     INSERT INTO T240 VALUES(
+'Now is the time for all good men and women to come to the aid of their country'
+);
+-- PASS:0222 If 1 row is inserted?
+
+     SELECT * 
+          FROM T240;
+-- PASS:0222 If STR240 starts with 'Now is the time for all good men'?
+-- PASS:0222 and ends 'and women to come to the aid of their country'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0222 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml049.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml049.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml049.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,75 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML049
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml049.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
+
+-- TEST:0225 FIPS sizing -- ten tables in FROM clause!
+-- FIPS sizing TEST
+
+-- setup
+     INSERT INTO TEMP_S
+            SELECT EMPNUM,GRADE,CITY
+                 FROM STAFF
+                 WHERE GRADE > 11;
+-- PASS:0225 If 4 rows are inserted ?
+
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+-- PASS:0225 If 5 rows are inserted?
+
+     INSERT INTO WORKS1
+            SELECT *
+                 FROM WORKS;
+-- PASS:0225 If 12 rows are inserted?
+
+     INSERT INTO STAFF4
+            SELECT *
+                 FROM STAFF;
+-- PASS:0225 If 5 rows are inserted?
+
+     INSERT INTO PROJ1
+            SELECT *
+                 FROM PROJ;
+-- PASS:0225 If 6 rows are inserted?
+
+                 SELECT STAFF.EMPNUM,PROJ.PNUM,WORKS.HOURS,
+                        STAFF3.GRADE,STAFF4.CITY,WORKS1.HOURS,
+                        TEMP_S.GRADE,PROJ1.PNUM,STAFF1.GRADE,
+                        UPUNIQ.COL2
+                 FROM   STAFF,PROJ,WORKS,STAFF3,STAFF4,WORKS1,
+                        TEMP_S,PROJ1,STAFF1,UPUNIQ
+                 WHERE  STAFF.EMPNUM = WORKS.EMPNUM    AND
+                        PROJ.PNUM = WORKS.PNUM         AND
+                        STAFF3.EMPNUM = WORKS.EMPNUM   AND
+                        STAFF4.EMPNUM = WORKS.EMPNUM   AND
+                        WORKS1.EMPNUM = WORKS.EMPNUM   AND
+                        WORKS1.PNUM = WORKS.PNUM       AND
+                        TEMP_S.EMPNUM = WORKS.EMPNUM   AND
+                        PROJ1.PNUM = WORKS.PNUM        AND
+                        STAFF1.EMPNUM = WORKS.EMPNUM   AND
+                        UPUNIQ.COL2 = 'A'
+                 ORDER BY 1, 2;
+	;
+-- PASS:0225 If 10 rows are selected ?
+-- PASS:0225 If first STAFF.EMPNUM='E1',PROJ.PNUM='P1',WORKS.HOURS=40?
+-- PASS:0225 If last  STAFF.EMPNUM='E4',PROJ.PNUM='P5',WORKS.HOURS=80?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0225 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml050.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml050.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml050.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,45 @@
+-- MODULE DML050
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml050.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
+
+-- TEST:0226 FIPS sizing - 10 tables in SQL statement!
+-- FIPS sizing TEST
+
+     SELECT EMPNUM, EMPNAME 
+     FROM STAFF 
+     WHERE EMPNUM IN 
+       (SELECT EMPNUM  FROM WORKS 
+        WHERE PNUM IN 
+          (SELECT PNUM  FROM PROJ 
+           WHERE PTYPE IN 
+             (SELECT PTYPE  FROM PROJ 
+              WHERE PNUM IN 
+                (SELECT PNUM  FROM WORKS 
+                 WHERE EMPNUM IN 
+                   (SELECT EMPNUM  FROM WORKS 
+                    WHERE PNUM IN 
+                      (SELECT PNUM   FROM PROJ 
+                       WHERE PTYPE IN
+                         (SELECT PTYPE  FROM PROJ
+                          WHERE CITY IN
+                            (SELECT CITY  FROM STAFF
+                             WHERE EMPNUM IN
+                               (SELECT EMPNUM  FROM WORKS
+                                WHERE HOURS = 20 
+                                AND PNUM = 'P2' )))))))));
+
+-- PASS:0226 If 4 rows selected excluding EMPNUM='E5', EMPNAME='Ed'?
+
+-- END TEST >>> 0226 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml051.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml051.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml051.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,42 @@
+-- MODULE DML051
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml051.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0227 BETWEEN predicate with character string values!
+      SELECT PNUM
+           FROM   PROJ
+           WHERE  PNAME BETWEEN 'A' AND 'F';
+-- PASS:0227 If PNUM = 'P2'?
+
+      SELECT PNUM
+           FROM   PROJ
+           WHERE PNAME >= 'A' AND PNAME <= 'F';
+-- PASS:0227 If PNUM = 'P2'?
+
+-- END TEST >>> 0227 <<< END TEST
+-- ***********************************************************
+
+-- TEST:0228 NOT BETWEEN predicate with character string values!
+      SELECT CITY
+           FROM   STAFF
+           WHERE  EMPNAME NOT BETWEEN 'A' AND 'E';
+-- PASS:0228 If CITY = 'Akron'?
+
+      SELECT CITY
+           FROM   STAFF
+           WHERE  NOT( EMPNAME BETWEEN 'A' AND 'E' );
+-- PASS:0228 If CITY = 'Akron'?
+
+-- END TEST >>> 0228 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml052.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml052.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml052.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,39 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML052
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml052.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
+
+-- TEST:0229 Case-sensitive LIKE predicate!
+
+-- setup
+     INSERT INTO STAFF
+            VALUES('E6','ALICE',11,'Gaithersburg');
+-- PASS:0229 If 1 row is inserted?
+
+     SELECT EMPNAME
+          FROM   STAFF
+          WHERE  EMPNAME LIKE 'Ali%';
+-- PASS:0229 If 1 row is returned and EMPNAME = 'Alice' (not 'ALICE')?
+
+     SELECT EMPNAME
+          FROM   STAFF
+          WHERE  EMPNAME LIKE 'ALI%';
+-- PASS:0229 If 1 row is returned and EMPNAME = 'ALICE' (not 'Alice')?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0229 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml053.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml053.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml053.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,39 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML053
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml053.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
+
+-- TEST:0233 Table as multiset of rows - INSERT duplicate VALUES()!
+ 
+-- setup
+     INSERT INTO TEMP_S
+            VALUES('E1',11,'Deale');
+-- PASS:0233 If 1 row is inserted?
+
+     INSERT INTO TEMP_S
+            VALUES('E1',11,'Deale');
+-- PASS:0233 If 1 row is inserted?
+
+--O     SELECT COUNT(*)
+     SELECT empnum
+                FROM TEMP_S
+                WHERE EMPNUM='E1' AND GRADE=11 AND CITY='Deale';
+-- PASS:0233 If count = 2?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0233 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml055.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml055.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml055.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,124 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML055
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml055.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
+
+-- TEST:0243 FIPS sizing - precision of SMALLINT >= 4!
+-- FIPS sizing TEST
+
+     DELETE FROM HH;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO HH
+            VALUES(9999);
+-- PASS:0243 If 1 row is inserted?
+
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM HH
+          WHERE SMALLTEST = 9999;
+-- PASS:0243 If count = 1?
+
+-- setup
+     INSERT INTO HH
+            VALUES(-9999);
+-- PASS:0243 If 1 row is inserted?
+
+     SELECT SMALLTEST 
+          FROM HH
+          WHERE SMALLTEST = -9999;
+-- PASS:0243 If SMALLTEST = -9999?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0243 <<< END TEST
+
+-- ***************************************************************
+
+-- TEST:0244 FIPS sizing - precision of INTEGER >= 9!
+-- FIPS sizing TEST
+
+     DELETE FROM EE;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO EE
+            VALUES(999999999);
+-- PASS:0244 If 1 row is inserted?
+
+     SELECT INTTEST
+          FROM EE
+          WHERE INTTEST = 999999999;
+-- PASS:0244 If INTTEST = 999999999?
+
+-- setup
+     INSERT INTO EE
+            VALUES(-999999999);
+-- PASS:0244 If 1 row is inserted?
+
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM EE
+          WHERE INTTEST = -999999999;
+-- PASS:0244 If count = 1?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0244 <<< END TEST
+
+-- *****************************************************************
+
+-- TEST:0245 FIPS sizing - precision of DECIMAL >= 15!
+-- FIPS sizing TEST
+
+     DELETE FROM PP_15;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO PP_15
+            VALUES(.123456789012345);
+-- PASS:0245 If 1 row is inserted?
+
+     SELECT NUMTEST
+          FROM PP_15;
+-- PASS:0245 If NUMTEST = 0.123456789012345?
+
+--O     SELECT COUNT(*) FROM PP_15
+     SELECT * FROM PP_15
+       WHERE NUMTEST = 0.123456789012345;
+-- PASS:0245 If count = 1?
+
+     DELETE FROM PP_15;
+-- PASS:0245 If 1 row is deleted?
+
+-- setup
+     INSERT INTO PP_15
+            VALUES(-.912345678901234);
+-- PASS:0245 If 1 row is inserted?
+
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM PP_15
+          WHERE NUMTEST = -0.912345678901234;
+-- PASS:0245 If count = 1?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0245 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml056.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml056.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml056.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,89 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML056
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml056.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
+
+-- TEST:0246 FIPS sizing - 100 values in INSERT!
+-- FIPS sizing TEST
+
+     DELETE FROM T100;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO T100 
+            VALUES('ZA','ZB','CA','ZC','ZD','AA','ZE','ZF','BA','ZG',
+                   'YA','YB','CB','YC','YD','AB','YE','YF','BB','YG',
+                   'XA','XB','CC','XC','XD','AC','XE','XF','BC','XG',
+                   'UA','UB','CD','UC','UD','AD','UE','UF','BD','UG',
+                   'VA','VB','CE','VC','VD','AE','VE','VF','BE','VG',
+                   'WA','WB','CF','WC','WD','AF','WE','WF','BF','WG',
+                   'LA','LB','CG','LC','LD','AG','LE','LF','BG','LG',
+                   'MA','MB','CH','MC','MD','AH','ME','MF','BH','MG',
+                   'NA','NB','CI','NC','ND','AI','NE','NF','BI','NG',
+                   'OA','OB','CJ','OC','OD','AJ','OE','OF','BJ','OG');
+-- PASS:0246 If 1 row is inserted?
+
+     SELECT C6, C16, C26, C36, C46, C56, C66, C76, C86, C96, C100
+          FROM T100
+          WHERE C1 = 'ZA' AND C2 = 'ZB';
+-- PASS:0246 If C6  = 'AA', C16 = 'AB', C26  = 'AC', C36 = 'AD' ?
+-- PASS:0246 If C46 = 'AE', C56 = 'AF', C66  = 'AG', C76 = 'AH' ?
+-- PASS:0246 If C86 = 'AI', C96 = 'AJ', C100 = 'OG' ?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0246 <<< END TEST
+
+-- *********************************************************************
+
+-- TEST:0247 FIPS sizing - 20 values in update SET clause!
+-- FIPS sizing TEST
+
+     DELETE FROM T100;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO T100 
+            VALUES('ZA','ZB','CA','ZC','ZD','AA','ZE','ZF','BA','ZG',
+                   'YA','YB','CB','YC','YD','AB','YE','YF','BB','YG',
+                   'XA','XB','CC','XC','XD','AC','XE','XF','BC','XG',
+                   'UA','UB','CD','UC','UD','AD','UE','UF','BD','UG',
+                   'VA','VB','CE','VC','VD','AE','VE','VF','BE','VG',
+                   'WA','WB','CF','WC','WD','AF','WE','WF','BF','WG',
+                   'LA','LB','CG','LC','LD','AG','LE','LF','BG','LG',
+                   'MA','MB','CH','MC','MD','AH','AE','AF','BH','BG',
+                   'NA','NB','CI','NC','ND','AI','NE','NF','BI','NG',
+                   'OA','OB','CJ','OC','OD','AJ','OE','OF','BJ','OG');
+-- PASS:0247 If 1 row is inserted?
+
+     UPDATE T100
+          SET C5 = 'BA', C10 = 'ZP', C15 = 'BB', C20 = 'YP', C25 = 'BC',
+             C30 = 'XP', C35 = 'BD', C40 = 'UP', C45 = 'BE', C50 = 'VP',
+             C55 = 'BF', C60 = 'WP', C65 = 'BG', C70 = 'LP', C75 = 'BH',
+            C80 = 'MP', C85 = 'BI', C90 = 'NP', C95 = 'BJ', C100 = 'OP';
+-- PASS:0247 If 1 row is updated ?
+
+     SELECT C5, C20, C35, C40, C55, C60, C75, C80, C90, C95, C100
+          FROM T100
+          WHERE C1 = 'ZA' AND C2 = 'ZB';
+-- PASS:0247 If C5  = 'BA', C35  = 'BD', C55 = 'BF', C75 = 'BH' ?
+-- PASS:0247 If C90 = 'NP', C100 = 'OP'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0247 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml057.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml057.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml057.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,153 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML057
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml057.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
+
+-- TEST:0248 FIPS sizing - binary precision of FLOAT >= 20!
+-- FIPS sizing TEST
+
+     DELETE FROM JJ;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO JJ
+            VALUES(0.1048575);
+-- PASS:0248 If 1 row is inserted?
+
+     SELECT FLOATTEST
+          FROM JJ;
+-- PASS:0248 If FLOATTEST = 0.1048575 ?
+-- PASS:0248 OR  is between 0.1048574 and 0.1048576 ?
+
+--O     SELECT COUNT(*) FROM JJ
+     SELECT * FROM JJ
+       WHERE FLOATTEST > 0.1048574 AND FLOATTEST < 0.1048576;
+-- PASS:0248 If count = 1?
+
+     DELETE FROM JJ;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO JJ
+            VALUES(-0.1048575);
+-- PASS:0248 If 1 row is inserted?
+
+     SELECT FLOATTEST
+          FROM JJ;
+-- PASS:0248 If FLOATTEST = -0.1048575 ?
+-- PASS:0248 OR  is between -0.1048576 and -0.1048574 ?
+
+--O     SELECT COUNT(*) FROM JJ
+     SELECT * FROM JJ
+       WHERE FLOATTEST > -0.1048576 AND FLOATTEST < -0.1048574;
+-- PASS:0248 If count = 1?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0248 <<< END TEST
+
+-- *****************************************************************
+
+-- TEST:0249 FIPS sizing - binary precision of REAL >= 20!
+-- FIPS sizing TEST
+
+     DELETE FROM GG;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO GG
+            VALUES(0.1048575);
+-- PASS:0249 If 1 row is inserted?
+
+     SELECT REALTEST
+          FROM GG;
+-- PASS:0249 If REALTEST =  0.1048575 ?
+-- PASS:0249 OR  is between 0.1048574 and 0.1048576 ?
+
+--O     SELECT COUNT(*) FROM GG
+     SELECT * FROM GG
+       WHERE REALTEST > 0.1048574 AND REALTEST < 0.1048576;
+-- PASS:0249 If count = 1?
+
+     DELETE FROM GG;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO GG
+            VALUES(-0.1048575);
+-- PASS:0249 If 1 row is inserted?
+
+     SELECT REALTEST
+          FROM GG;
+-- PASS:0249 If REALTEST =  -0.1048575 ?
+-- PASS:0249 OR  is between -0.1048576 and -0.1048574 ?
+
+--O     SELECT COUNT(*) FROM GG
+     SELECT * FROM GG
+       WHERE REALTEST > -0.1048576 AND REALTEST < -0.1048574;
+-- PASS:0249 If count = 1?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0249 <<< END TEST
+
+-- ***************************************************************
+
+-- TEST:0250 FIPS sizing - bin. precision of DOUBLE >= 30!
+-- FIPS sizing TEST
+
+     DELETE FROM II;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO II
+            VALUES(0.1073741823);
+-- PASS:0250 If 1 row is inserted?
+
+     SELECT DOUBLETEST
+          FROM II;
+-- PASS:0250 If DOUBLETEST = 0.1073741823 ?
+-- PASS:0250 OR  is between  0.1073741822 and 0.1073741824 ?
+
+--O     SELECT COUNT(*) FROM II
+     SELECT * FROM II
+       WHERE DOUBLETEST > 0.1073741822 AND DOUBLETEST < 0.1073741824;
+-- PASS:0250 If count = 1?
+
+     DELETE FROM II;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO II
+            VALUES(-0.1073741823);
+-- PASS:0250 If 1 row is inserted?
+
+     SELECT DOUBLETEST
+          FROM II;
+-- PASS:0250 If DOUBLETEST = -0.1073741823 ?
+-- PASS:0250 OR  is between  -0.1073741824 and -0.1073741822 ?
+
+--O     SELECT COUNT(*) FROM II
+     SELECT * FROM II
+       WHERE DOUBLETEST > -0.1073741824 AND DOUBLETEST < -0.1073741822;
+-- PASS:0250 If count = 1?
+
+-- restore 
+     ROLLBACK WORK;
+
+-- END TEST >>> 0250 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml058.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml058.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml058.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,254 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML058
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml058.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
+
+-- TEST:0251 COMMIT keeps changes of current transaction!
+
+     DELETE FROM STAFF1;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+-- PASS:0251 If 5 rows are inserted?
+
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM STAFF1;
+-- PASS:0251 If count = 5?
+
+     INSERT INTO STAFF1
+            VALUES('E9','Tom',50,'London');
+-- PASS:0251 If 1 row is inserted?
+  
+     UPDATE STAFF1
+            SET GRADE = 40 
+            WHERE EMPNUM = 'E2';
+-- PASS:0251 If 1 row is updated?
+
+     COMMIT WORK;
+
+     DELETE FROM STAFF1;
+-- PASS:0251 If 6 rows are deleted?
+
+-- verify
+     ROLLBACK WORK;
+
+-- verify previous commit
+--O     SELECT COUNT(*)
+     SELECT *
+          FROM STAFF1
+          WHERE GRADE > 12;
+-- PASS:0251 If count = 4?
+
+-- restore
+     DELETE FROM STAFF1;
+     COMMIT WORK;
+
+-- END TEST >>> 0251 <<< END TEST
+
+-- ***************************************************************
+
+-- TEST:0252 ROLLBACK cancels changes of current transaction!
+
+     DELETE FROM STAFF1;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO STAFF1
+            SELECT *
+                 FROM STAFF;
+-- PASS:0252 If 5 rows are inserted?
+
+     COMMIT WORK;
+
+     INSERT INTO STAFF1
+            VALUES('E10','Tom',50,'London');
+-- PASS:0252 If 1 row is inserted?
+
+     UPDATE STAFF1
+            SET GRADE = 40
+            WHERE EMPNUM = 'E1';
+-- PASS:0252 If 1 row is updated?
+
+     DELETE FROM STAFF1
+            WHERE EMPNUM = 'E2';
+-- PASS:0252 If 1 row is deleted?
+
+     ROLLBACK WORK;
+
+-- verify     
+     SELECT SUM(GRADE)
+          FROM STAFF1;
+-- PASS:0252 If SUM(GRADE) = 60?
+
+-- restore
+     DELETE FROM STAFF1;
+     COMMIT WORK;
+
+-- END TEST >>> 0252 <<< END TEST
+
+-- ****************************************************************
+
+-- TEST:0253 TEST0124 workaround (key = key+1)!
+
+     SELECT NUMKEY
+          FROM UPUNIQ
+          ORDER BY NUMKEY DESC;
+-- PASS:0253 If 6 rows are selected and first NUMKEY = 8 ?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 8 + 1
+          WHERE NUMKEY = 8;
+-- PASS:0253 If 1 row is updated?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 6 + 1
+          WHERE NUMKEY = 6;
+-- PASS:0253 If 1 row is updated?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 4 + 1
+          WHERE NUMKEY = 4;
+-- PASS:0253 If 1 row is updated?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 3 + 1
+          WHERE NUMKEY = 3;
+-- PASS:0253 If 1 row is updated?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 2 + 1 
+          WHERE NUMKEY = 2;
+-- PASS:0253 If 1 row is updated?
+
+     UPDATE UPUNIQ
+          SET NUMKEY = 1 + 1
+          WHERE NUMKEY = 1;
+-- PASS:0253 If 1 row is updated?
+
+
+     SELECT MAX(NUMKEY), MIN(NUMKEY)
+          FROM UPUNIQ;
+-- PASS:0253 If MAX(NUMKEY) = 9 AND MIN(NUMKEY) = 2?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0253 <<< END TEST
+
+-- **************************************************************
+
+-- TEST:0254 Column name in SET clause!
+
+     DELETE FROM PROJ1;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO PROJ1
+            SELECT *
+                 FROM PROJ;
+-- PASS:0254 If 6 rows are inserted?
+
+     UPDATE PROJ1
+          SET CITY = PTYPE;
+-- PASS:0254 If 6 rows are updated?
+
+     SELECT CITY
+          FROM PROJ1
+          WHERE PNUM = 'P1';
+-- PASS:0254 If CITY = 'Design'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0254 <<< END TEST
+
+-- **************************************************************
+
+
+-- TEST:0255 Key word USER for INSERT, UPDATE!
+
+     DELETE FROM T4;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO T4
+          VALUES(USER,100,'good','luck');
+-- PASS:0255 If 1 row is inserted?
+
+     SELECT STR110 
+          FROM T4
+          WHERE NUM6 = 100;
+-- PASS:0255 If STR110 = 'HU'?
+
+-- setup
+     INSERT INTO T4
+          VALUES('Hello',101,'good','luck');
+-- PASS:0255 If 1 row is inserted?
+
+     UPDATE T4
+          SET STR110 = USER
+          WHERE NUM6 = 101;
+-- PASS:0255 If 1 row is updated?
+
+     SELECT STR110 
+          FROM T4
+          WHERE NUM6 = 101;
+-- PASS:0255 If STR110 = 'HU'?
+
+-- restore
+     ROLLBACK WORK;
+       
+-- END TEST >>> 0255 <<< END TEST
+
+-- ***************************************************************
+
+-- TEST:0256 Key word USER in WHERE clause!
+
+     DELETE FROM T4;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO T4
+            VALUES('HU',100,'good','luck');
+-- PASS:0256 If 1 row is inserted?
+
+     SELECT STR110 
+          FROM T4
+          WHERE STR110 = USER;
+-- PASS:0256 If STR110 = 'HU'?
+
+-- setup
+     INSERT INTO T4
+            VALUES('Hello',101,'good','luck');
+-- PASS:0256 If 1 row is inserted?
+
+     DELETE FROM T4
+            WHERE STR110 = USER;
+-- PASS:0256 If 1 row is deleted?
+
+     SELECT COUNT(*)
+          FROM T4
+          WHERE STR110 LIKE '%HU%';
+-- PASS:0256 If count = 0?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0256 <<< END TEST
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml059.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml059.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml059.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,150 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML059
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml059.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0257 SELECT MAX, MIN (COL1 + or - COL2)!
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+-- PASS:0257 If 1 row is inserted?
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+-- PASS:0257 If 1 row is inserted?
+
+     SELECT COL1, MAX(COL2 + COL3), MIN(COL3 - COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          ORDER BY COL1;
+-- PASS:0257 If 4 rows are selected in order with values:?
+-- PASS:0257    (    0,    3,    1) ?
+-- PASS:0257    (   10,   50,    1)?
+-- PASS:0257    (  100, 1223,  100)?
+-- PASS:0257    ( 1000, 1000, 5000)?
+
+-- restore
+     ROLLBACK WORK; 
+
+-- END TEST >>> 0257 <<< END TEST
+
+-- *********************************************************************
+
+-- TEST:0258 SELECT SUM(2*COL1*COL2) in HAVING SUM(COL2*COL3)!
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES (10,11,12,13,15);
+-- PASS:0258 if 1 row is inserted?
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES (100,111,1112,113,115);
+-- PASS:0258 if 1 row is inserted ?
+
+     SELECT COL1,SUM(2 * COL2 * COL3)
+                  FROM VTABLE
+                  GROUP BY COL1
+                  HAVING SUM(COL2 * COL3) > 2000 
+                  OR SUM(COL2 * COL3) < -2000
+                  ORDER BY COL1;
+
+-- PASS:0258 If 2 rows are selected?
+-- PASS:0258 If first row has values (100, 366864)    ?
+-- PASS:0258 If second row has values (1000, -12000000)    ?
+
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0258 <<< END TEST
+
+-- *********************************************************************
+
+-- TEST:0259 SOME, ANY in HAVING clause!
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+-- PASS:0259 If 1 row is inserted?
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+-- PASS:0259 If 1 row is inserted?
+
+     SELECT COL1, MAX(COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          HAVING MAX(COL2) > ANY (SELECT GRADE FROM STAFF)
+          AND MAX(COL2) < SOME (SELECT HOURS FROM WORKS)
+          ORDER BY COL1;
+-- PASS:0259 If 1 row is selected and COL1 = 10 and MAX(COL2) = 20?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0259 <<< END TEST
+
+-- *******************************************************************
+
+-- TEST:0260 EXISTS in HAVING clause!
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(10,11,12,13,15);
+-- PASS:0260 If 1 row is inserted?
+
+-- setup
+     INSERT INTO VTABLE
+            VALUES(100,111,1112,113,115);
+-- PASS:0260 If 1 row is inserted?
+
+     SELECT COL1, MAX(COL2)
+          FROM VTABLE
+          GROUP BY COL1
+          HAVING EXISTS (SELECT *
+                               FROM STAFF
+                               WHERE EMPNUM = 'E1')
+                               AND MAX(COL2) BETWEEN 10 AND 90
+          ORDER BY COL1;
+-- PASS:0260 If 1 row is selected and COL1 = 10 and MAX(COL2) = 20?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0260 <<< END TEST
+
+-- ******************************************************************
+
+-- TEST:0264 WHERE, HAVING without GROUP BY!
+
+     SELECT SUM(COL1) 
+          FROM VTABLE
+          WHERE 10 + COL1 > COL2
+          HAVING MAX(COL1) > 100;
+-- PASS:0264 If SUM(COL1) = 1000?
+
+     SELECT SUM(COL1)
+          FROM VTABLE
+          WHERE 1000 + COL1 >= COL2
+          HAVING MAX(COL1) > 100;
+-- PASS:0264 If SUM(COL1) = 1110?
+
+-- END TEST >>> 0264 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml060.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml060.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml060.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,193 @@
+AUTOCOMMIT OFF;
+
+-- MODULE DML060
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml060.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
+
+-- TEST:0261 WHERE (2 * (c1 - c2)) BETWEEN!
+
+     SELECT COL1, COL2
+          FROM VTABLE
+          WHERE(2*(COL3 - COL2)) BETWEEN 5 AND 200
+          ORDER BY COL1;
+-- PASS:0261 If 2 rows are selected ?
+-- PASS:0261 If first row is  ( 10,  20)?
+-- PASS:0261 If second row is (100, 200)?
+
+-- END TEST >>> 0261 <<< END TEST
+
+-- ********************************************************************
+
+-- TEST:0262 WHERE clause with computation, ANY/ALL subqueries!
+
+     UPDATE VTABLE
+          SET COL1 = 1
+          WHERE COL1 = 0;
+-- PASS:0262 If 1 row is updated?
+
+     SELECT COL1, COL2
+          FROM VTABLE
+          WHERE (COL3 * COL2/COL1) > ALL
+                (SELECT HOURS FROM WORKS)
+                OR -(COL3 * COL2/COL1) > ANY
+                (SELECT HOURS FROM WORKS)
+          ORDER BY COL1;
+-- PASS:0262 If 2 rows are selected?
+-- PASS:0262 If first row is  ( 100,   200)?
+-- PASS:0262 If second row is (1000, -2000)?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0262 <<< END TEST
+ 
+-- ******************************************************************
+
+-- TEST:0263 Computed column in ORDER BY!
+
+     SELECT COL1, (COL3 * COL2/COL1 - COL2 + 10)
+          FROM VTABLE
+          WHERE COL1 > 0
+          ORDER BY 2;
+-- PASS:0263 If 3 rows are selected in order with values:?
+-- PASS:0263      (1000, -3990)?
+-- PASS:0263      (  10,    50)?
+-- PASS:0263      ( 100,   410)?
+
+-- END TEST >>> 0263 <<< END TEST
+
+-- ********************************************************************
+
+-- TEST:0265 Update:searched - view with check option!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E3','P4',50);
+-- PASS:0265 If 1 row is inserted?
+
+           SELECT EMPNUM, PNUM, HOURS
+                FROM SUBSP;
+-- PASS:0265 If 2 rows are selected?
+
+     SELECT * FROM WORKS;
+-- PASS:0265 If 13 rows selected?
+
+--O     UPDATE SUBSP 
+--O          SET EMPNUM = 'E9'
+--O          WHERE PNUM = 'P2';
+-- PASS:0265 If ERROR, view check constraint, 0 rows are updated?
+ 
+     SELECT * FROM WORKS;
+-- PASS:0265 If 13 rows selected and no EMPNUM = 'E9'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0265 <<< END TEST
+
+-- ******************************************************************
+
+-- TEST:0266 Update:searched - UNIQUE violation under view!
+
+-- setup
+     INSERT INTO WORKS
+            VALUES('E3','P4',50);
+-- PASS:0266 If 1 row is inserted?
+
+     SELECT EMPNUM, PNUM, HOURS
+          FROM SUBSP;
+-- PASS:0266 If 2 rows are selected?
+
+     SELECT * FROM WORKS WHERE EMPNUM = 'E3';
+-- PASS:0266 If 2 rows selected and PNUM values are 'P2' and 'P4'?
+
+--O     UPDATE SUBSP
+--O          SET PNUM = 'P6'
+--O          WHERE EMPNUM = 'E3';
+-- PASS:0266 If ERROR, unique constraint, 0 rows updated?
+
+--O     SELECT EMPNUM, PNUM, HOURS
+--O          FROM SUBSP;
+-- PASS:0266 If 2 rows are selected?
+
+--O     SELECT * FROM WORKS WHERE EMPNUM = 'E3';
+-- PASS:0266 If 2 rows selected and PNUM values are 'P2' and 'P4'?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0266 <<< END TEST
+
+-- ******************************************************************
+
+-- TEST:0267 Update compound key, interim uniqueness conflict!
+
+     DELETE FROM WORKS1;
+-- Making sure the table is empty
+
+-- setup
+     INSERT INTO WORKS1 VALUES ('P1','P6',1);
+     INSERT INTO WORKS1 VALUES ('P2','P6',2);
+     INSERT INTO WORKS1 VALUES ('P3','P6',3);
+     INSERT INTO WORKS1 VALUES ('P4','P6',4);
+     INSERT INTO WORKS1 VALUES ('P5','P6',5);
+     INSERT INTO WORKS1 VALUES ('P6','P6',6);
+     INSERT INTO WORKS1 VALUES ('P1','P5',7);
+     INSERT INTO WORKS1 VALUES ('P2','P5',8);
+     INSERT INTO WORKS1 VALUES ('P3','P5',9);
+     INSERT INTO WORKS1 VALUES ('P4','P5',10);
+     INSERT INTO WORKS1 VALUES ('P5','P5',11);
+     INSERT INTO WORKS1 VALUES ('P6','P5',12);
+     INSERT INTO WORKS1 VALUES ('P1','P4',13);
+     INSERT INTO WORKS1 VALUES ('P2','P4',14);
+     INSERT INTO WORKS1 VALUES ('P3','P4',15);
+     INSERT INTO WORKS1 VALUES ('P4','P4',16);
+     INSERT INTO WORKS1 VALUES ('P5','P4',17);
+     INSERT INTO WORKS1 VALUES ('P6','P4',18);
+     INSERT INTO WORKS1 VALUES ('P1','P3',19);
+     INSERT INTO WORKS1 VALUES ('P2','P3',20);
+     INSERT INTO WORKS1 VALUES ('P3','P3',21);
+     INSERT INTO WORKS1 VALUES ('P4','P3',22);
+     INSERT INTO WORKS1 VALUES ('P5','P3',23);
+     INSERT INTO WORKS1 VALUES ('P6','P3',24);
+     INSERT INTO WORKS1 VALUES ('P1','P2',25);
+     INSERT INTO WORKS1 VALUES ('P2','P2',26);
+     INSERT INTO WORKS1 VALUES ('P3','P2',27);
+     INSERT INTO WORKS1 VALUES ('P4','P2',28);
+     INSERT INTO WORKS1 VALUES ('P5','P2',29);
+     INSERT INTO WORKS1 VALUES ('P6','P2',30);
+     INSERT INTO WORKS1 VALUES ('P1','P1',31);
+     INSERT INTO WORKS1 VALUES ('P2','P1',32);
+     INSERT INTO WORKS1 VALUES ('P3','P1',33);
+     INSERT INTO WORKS1 VALUES ('P4','P1',34);
+     INSERT INTO WORKS1 VALUES ('P5','P1',35);
+     INSERT INTO WORKS1 VALUES ('P6','P1',36);
+
+     UPDATE WORKS1
+       SET PNUM = EMPNUM, EMPNUM = PNUM;
+
+-- PASS:0267 If 36 rows are updated?
+
+--O     SELECT COUNT(*) 
+     SELECT * 
+          FROM WORKS1
+          WHERE EMPNUM = 'P1' AND HOURS > 30;
+-- PASS:0267 If count = 6?
+
+-- restore
+     ROLLBACK WORK;
+
+-- END TEST >>> 0267 <<< END TEST
+
+-- *************************************************////END-OF-MODULE

Added: incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml061.sql
Url: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml061.sql?view=auto&rev=126534
==============================================================================
--- (empty file)
+++ incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/nist/dml061.sql	Wed Jan 26 11:42:09 2005
@@ -0,0 +1,166 @@
+AUTOCOMMIT OFF;
+
+-- MODULE  DML061
+
+-- SQL Test Suite, V6.0, Interactive SQL, dml061.sql
+-- 59-byte ID
+-- TEd Version #
+
+-- AUTHORIZATION HU
+   set schema HU;
+
+--0   SELECT USER FROM HU.ECCO;
+  VALUES USER;
+-- RERUN if USER value does not match preceding AUTHORIZATION comment
+
+-- date_time print
+
+-- TEST:0269 BETWEEN value expressions in wrong order!
+
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN 80 AND 40;
+-- PASS:0269 If count = 0   ?
+
+-- setup   
+         INSERT INTO WORKS
+            VALUES('E6','P6',-60);
+   
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN -40 AND -80;
+-- PASS:0269 If count = 0?
+
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN -80 AND -40;
+-- PASS:0269 If count = 1?
+
+-- restore
+    ROLLBACK WORK;
+
+-- END TEST >>> 0269 <<< END TEST
+
+-- ****************************************************************
+
+
+-- TEST:0270 BETWEEN approximate and exact numeric values!
+
+            SELECT COUNT(*)
+            FROM WORKS
+            WHERE HOURS BETWEEN 11.999 AND 12 OR
+                  HOURS BETWEEN 19.999 AND 2.001E1;
+-- PASS:0270 If count = 6?
+
+-- END TEST >>> 0270 <<< END TEST
+
+-- ****************************************************************
+
+
+-- TEST:0271 COUNT(*) with Cartesian product subset !
+
+            SELECT COUNT(*)
+            FROM WORKS,STAFF
+            WHERE WORKS.EMPNUM = 'E1';
+-- PASS:0271 If count = 30?
+
+-- END TEST >>> 0271 <<< END TEST
+
+-- ****************************************************************
+
+
+-- TEST:0272 Statement rollback for integrity!
+        UPDATE WORKS
+        SET EMPNUM = 'E7'
+        WHERE EMPNUM = 'E1' OR EMPNUM = 'E4';
+-- PASS:0272 If ERROR, unique constraint, 0 rows updated?
+
+        INSERT INTO WORKS 
+        SELECT 'E3',PNUM,17 FROM PROJ;
+-- PASS:0272 If ERROR, unique constraint, 0 rows inserted?
+
+--0        UPDATE V_WORKS1
+--0        SET HOURS = HOURS - 9;
+-- PASS:0272 If ERROR, view check constraint, 0 rows updated?
+
+        SELECT COUNT(*)
+        FROM WORKS
+        WHERE EMPNUM = 'E7' OR HOURS = 31 OR HOURS = 17;
+-- PASS:0272 If count = 0?
+
+-- restore
+       ROLLBACK WORK;
+
+-- END TEST >>> 0272 <<< END TEST
+
+-- ****************************************************************
+
+
+-- TEST:0273 SUM, MAX, MIN = NULL for empty arguments  !
+
+            UPDATE WORKS
+            SET HOURS = NULL;
+-- PASS:0273 If 12 rows updated?
+
+            SELECT SUM(HOURS),MAX(HOURS),MIN(HOURS),MIN(EMPNUM)
+                FROM WORKS;
+-- PASS:0273 If 1 row is selected?
+-- PASS:0273 If SUM(HOURS), MAX(HOURS), and MIN(HOURS) are NULL?
+
+-- restore
+    ROLLBACK WORK;
+
+-- END TEST >>> 0273 <<< END TEST
+
+-- ****************************************************************
+
+
+-- TEST:0277 Computation with NULL value specification!
+
+          UPDATE WORKS
+          SET HOURS = NULL  WHERE EMPNUM = 'E1';
+-- PASS:0277 If 6 rows are updated?
+ 
+          UPDATE WORKS
+          SET HOURS = HOURS - (3 + -17);
+-- PASS:0277 If 12 rows are updated?
+ 
+          UPDATE WORKS
+          SET HOURS = 3 / -17 * HOURS;
+-- PASS:0277 If 12