Update of /cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv14375/Tests

Modified Files:
        delete_cascade.sql delete_no_action.sql delete_restrict.sql 
        delete_set_default.sql delete_set_default_crash.sql 
        delete_set_null.sql update_cascade.sql 
        update_delete_cascade.sql update_delete_set_null.sql 
        update_delete_set_null_crash.sql update_no_action.sql 
        update_restrict.sql update_set_default.sql 
        update_set_default_crash.sql update_set_null.sql 
Added Files:
        delete_cascade.stable.err delete_cascade.stable.out 
        delete_no_action.stable.err delete_no_action.stable.out 
Log Message:
Correct the tests and approve two of them



Index: delete_no_action.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_no_action.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_no_action.sql        28 Mar 2007 16:16:17 -0000      1.1
+++ delete_no_action.sql        2 Apr 2007 13:08:05 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE NO ACTION;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON DELETE NO ACTION);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
NO ACTION;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
NO ACTION);
 
 
 
@@ -21,18 +21,18 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;

Index: delete_set_null.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_set_null.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_set_null.sql 28 Mar 2007 16:16:17 -0000      1.1
+++ delete_set_null.sql 2 Apr 2007 13:08:08 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE SET NULL;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON DELETE SET NULL);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
SET NULL;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
SET NULL);
 
 
 
@@ -22,18 +22,18 @@
 insert into t2 values(6, 28);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;

--- NEW FILE: delete_cascade.stable.out ---
stdout of test 'delete_cascade` in directory 'src/test/Update_Delete_action` 
itself:


# 16:59:16 >  
# 16:59:16 >  Mtimeout -timeout 180 mserver5 
"--config=/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm" 
--set "sql_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs" 
--set 
"xquery_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs" 
--set mapi_port=33148 --set xrpc_port=45004 --set monet_prompt= --trace 
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo 
; echo Over..
# 16:59:16 >  



# MonetDB Server v5.0.0_beta2_1
# Copyright (c) 1993-2007 CWI, all rights reserved
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# dbname:mTests_src_test_Update_Delete_action
# Visit http://monetdb.cwi.nl/ for further information

Ready.

Over..

# 16:59:17 >  
# 16:59:17 >  Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb 
--host=localhost --port=33148 
# 16:59:17 >  

[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 3     ]
[ 2     ]
[ 2     ]
% sys.t1,       sys.t1 # table_name
% id,   name # name
% int,  varchar # type
% 1,    7 # length
[ 1,    "monetdb"       ]
[ 2,    "mon"   ]
[ 5,    "mob"   ]
[ 6,    "moetdb"        ]
[ 7,    "mo"    ]
% sys.t2,       sys.t2 # table_name
% id,   age # name
% int,  int # type
% 1,    2 # length
[ 1,    23      ]
[ 2,    24      ]
[ 5,    27      ]
% sys.t3,       sys.t3 # table_name
% id,   num # name
% int,  int # type
% 1,    1 # length
[ 5,    7       ]
[ 1     ]
[ 3     ]
[ 5     ]
% sys.t1,       sys.t1 # table_name
% id,   name # name
% int,  varchar # type
% 1,    0 # length
% sys.t2,       sys.t2 # table_name
% id,   age # name
% int,  int # type
% 1,    1 # length
% sys.t3,       sys.t3 # table_name
% id,   num # name
% int,  int # type
% 1,    1 # length

# 16:59:18 >  
# 16:59:18 >  Done.
# 16:59:18 >  


Index: update_set_null.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_set_null.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_set_null.sql 28 Mar 2007 16:16:19 -0000      1.1
+++ update_set_null.sql 2 Apr 2007 13:08:13 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE SET NULL;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON UPDATE SET NULL);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
SET NULL;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON UPDATE 
SET NULL);
 
 
 
@@ -21,10 +21,10 @@
 insert into t2 values(5, 27);
 insert into t2 values(6, 28);
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 11 where id =2;

Index: delete_set_default_crash.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_set_default_crash.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_set_default_crash.sql        28 Mar 2007 16:16:17 -0000      1.1
+++ delete_set_default_crash.sql        2 Apr 2007 13:08:08 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCES t1(id) ON DELETE SET DEFAULT);
 
-create table t3 (id int DEFAULT 30, day int, FOREIGN KEY(id) as REFERENCE 
(t2)) ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 30, num int, FOREIGN KEY(id) REFERENCES t2(id) 
ON DELETE SET DEFAULT);
 
 
 
@@ -27,13 +27,13 @@
 insert into t2 values(4, 6);
 insert into t2 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;
@@ -48,9 +48,9 @@
 
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCES t1(id) ON DELETE SET DEFAULT);
 
-create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) as REFERENCE (t2)) 
ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 3, num int, FOREIGN KEY(id) REFERENCES t2(id) 
ON DELETE SET DEFAULT);
 
 
 
@@ -75,13 +75,13 @@
 insert into t2 values(4, 6);
 insert into t2 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;

Index: delete_set_default.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_set_default.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_set_default.sql      28 Mar 2007 16:16:17 -0000      1.1
+++ delete_set_default.sql      2 Apr 2007 13:08:08 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 30, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 30, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCES t1(id) ON DELETE SET DEFAULT);
 
-create table t3 (id int DEFAULT 30, day int, FOREIGN KEY(id) as REFERENCE 
(t2)) ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 30, num int, FOREIGN KEY(id) REFERENCES t2(id) 
ON DELETE SET DEFAULT);
 
 
 
@@ -22,18 +22,18 @@
 insert into t2 values(6, 28);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;

Index: update_set_default_crash.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_set_default_crash.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_set_default_crash.sql        28 Mar 2007 16:16:19 -0000      1.1
+++ update_set_default_crash.sql        2 Apr 2007 13:08:12 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCE (t1)) ON DELETE SET DEFAULT;
 
-create table t3 (id int DEFAULT 30, day int, FOREIGN KEY(id) as REFERENCE 
(t2)) ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 30, day int, FOREIGN KEY(id) REFERENCE (t2)) 
ON DELETE SET DEFAULT;
 
 
 
@@ -44,9 +44,9 @@
 
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 3, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCE (t1)) ON DELETE SET DEFAULT;
 
-create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) as REFERENCE (t2)) 
ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) REFERENCE (t2)) ON 
DELETE SET DEFAULT;
 
 
 

--- NEW FILE: delete_cascade.stable.err ---
stderr of test 'delete_cascade` in directory 'src/test/Update_Delete_action` 
itself:


# 15:43:44 >  
# 15:43:44 >  Mtimeout -timeout 180 mserver5 
"--config=/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm" 
--set "sql_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs" 
--set 
"xquery_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs" 
--set mapi_port=30985 --set xrpc_port=45784 --set monet_prompt= --trace 
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo 
; echo Over..
# 15:43:44 >  

# builtin opt   gdk_arch = 64bitx86_64-redhat-linux-gnu
# builtin opt   gdk_version = 1.17.1
# builtin opt   monet_pid = 28288
# builtin opt   prefix = /ufs/goncalve/scratch/MonetDB/MonetDB
# builtin opt   exec_prefix = ${prefix}
# builtin opt   gdk_dbname = tst
# builtin opt   gdk_dbfarm = ${prefix}/var/MonetDB
# builtin opt   gdk_debug = 8
# builtin opt   gdk_mem_bigsize = 262144
# builtin opt   gdk_vm_minsize = 137438953472
# builtin opt   gdk_alloc_map = yes
# builtin opt   gdk_mem_pagebits = 14
# builtin opt   monet_admin = adm
# builtin opt   monet_prompt = >
# builtin opt   monet_welcome = yes
# builtin opt   monet_mod_path = 
${exec_prefix}/lib/MonetDB:${exec_prefix}/lib/bin
# builtin opt   monet_daemon = yes
# builtin opt   host = localhost
# builtin opt   mapi_port = 50000
# builtin opt   mapi_noheaders = no
# builtin opt   mapi_debug = 0
# builtin opt   mapi_clients = 2
# builtin opt   sql_debug = 0
# builtin opt   sql_logdir = ${prefix}/var/MonetDB/sql_logs
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB/xquery_logs
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/goncalve/scratch/MonetDB/MonetDB5
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/goncalve/scratch/MonetDB/MonetDB5
# config opt    exec_prefix = ${prefix}
# config opt    gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
# config opt    gdk_dbname = demo
# config opt    gdk_alloc_map = no
# config opt    gdk_embedded = no
# config opt    gdk_debug = 0
# config opt    monet_mod_path = 
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
# config opt    monet_daemon = no
# config opt    monet_welcome = yes
# config opt    delay = 120
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 15
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 0
# config opt    sql_debug = 0
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    pf_httpd_port = 8080
# config opt    xquery_output = dm
# config opt    xquery_cacheMB = 100
# config opt    xquery_logdir = ${prefix}/var/MonetDB5/xquery_logs
# cmdline opt   config = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf
# cmdline opt   gdk_debug = 10
# cmdline opt   monet_mod_path = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm
# cmdline opt   sql_logdir = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs
# cmdline opt   xquery_logdir = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs
# cmdline opt   mapi_port = 30985
# cmdline opt   xrpc_port = 45784
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_Update_Delete_action
#warning: please don't forget to set your vault key!
#(see /ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf)

# 15:43:44 >  
# 15:43:44 >  Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb 
--host=localhost --port=30985 
# 15:43:44 >  


# 15:43:46 >  
# 15:43:46 >  Done.
# 15:43:46 >  


Index: delete_cascade.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_cascade.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_cascade.sql  28 Mar 2007 16:16:17 -0000      1.1
+++ delete_cascade.sql  2 Apr 2007 13:07:59 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE CASCADE;
+create table t2 (id int, age int, PRIMARY KEY (id), FOREIGN KEY(id) REFERENCES 
t1(id) ON DELETE CASCADE);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
CASCADE;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
CASCADE);
 
 
 
@@ -21,18 +21,18 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;

Index: update_set_default.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_set_default.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_set_default.sql      28 Mar 2007 16:16:19 -0000      1.1
+++ update_set_default.sql      2 Apr 2007 13:08:12 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int DEFAULT 30, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON DELETE SET DEFAULT;
+create table t2 (id int DEFAULT 30, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCES t1(id) ON UPDATE SET DEFAULT);
 
-create table t3 (id int DEFAULT 30, day int, FOREIGN KEY(id) as REFERENCE 
(t2)) ON DELETE SET DEFAULT;
+create table t3 (id int DEFAULT 30, num int, FOREIGN KEY(id) REFERENCES t2(id) 
ON UPDATE SET DEFAULT);
 
 
 
@@ -22,10 +22,10 @@
 insert into t2 values(6, 28);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 11 where id =2;

Index: update_delete_set_null.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_delete_set_null.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_delete_set_null.sql  28 Mar 2007 16:16:18 -0000      1.1
+++ update_delete_set_null.sql  2 Apr 2007 13:08:09 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON UPDATE SET NULL ON DELETE SET NULL;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON UPDATE SET NULL ON DELETE SET NULL);
 
-create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) as REFERENCE (t2)) 
ON DELETE SET DEFAULT ON UPDATE SET NULL;
+create table t3 (id int DEFAULT 3, num int, FOREIGN KEY(id) REFERENCES t2(id) 
ON DELETE SET DEFAULT ON UPDATE SET NULL);
 
 
 
@@ -21,10 +21,10 @@
 insert into t2 values(5, 27);
 insert into t2 values(6, 28);
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 11 where id =2;
@@ -35,7 +35,7 @@
 select * from t2;
 select * from t3;
 
-delete * from t1 where id = 5;
+delete from t1 where id = 5;
 
 select * from t1;
 select * from t2;

Index: update_restrict.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_restrict.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_restrict.sql 28 Mar 2007 16:16:18 -0000      1.1
+++ update_restrict.sql 2 Apr 2007 13:08:12 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1));
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id));
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
RESTRICT;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON UPDATE 
RESTRICT);
 
 
 
@@ -21,10 +21,10 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 13 where id =3;

Index: update_delete_set_null_crash.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_delete_set_null_crash.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_delete_set_null_crash.sql    28 Mar 2007 16:16:18 -0000      1.1
+++ update_delete_set_null_crash.sql    2 Apr 2007 13:08:09 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int NOT NULL, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
as REFERENCE (t1)) ON UPDATE SET NULL ON DELETE SET NULL;
+create table t2 (id int NOT NULL, age int, PRIMARY KEY (ID), FOREIGN KEY(id) 
REFERENCE (t1)) ON UPDATE SET NULL ON DELETE SET NULL;
 
-create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) as REFERENCE (t2)) 
ON DELETE SET DEFAULT ON UPDATE SET NULL;
+create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) REFERENCE (t2)) ON 
DELETE SET DEFAULT ON UPDATE SET NULL;
 
 
 

--- NEW FILE: delete_no_action.stable.err ---
stderr of test 'delete_no_action` in directory 'src/test/Update_Delete_action` 
itself:


# 16:04:23 >  
# 16:04:23 >  Mtimeout -timeout 180 mserver5 
"--config=/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm" 
--set "sql_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs" 
--set 
"xquery_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs" 
--set mapi_port=31477 --set xrpc_port=42976 --set monet_prompt= --trace 
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo 
; echo Over..
# 16:04:23 >  

# builtin opt   gdk_arch = 64bitx86_64-redhat-linux-gnu
# builtin opt   gdk_version = 1.17.1
# builtin opt   monet_pid = 29132
# builtin opt   prefix = /ufs/goncalve/scratch/MonetDB/MonetDB
# builtin opt   exec_prefix = ${prefix}
# builtin opt   gdk_dbname = tst
# builtin opt   gdk_dbfarm = ${prefix}/var/MonetDB
# builtin opt   gdk_debug = 8
# builtin opt   gdk_mem_bigsize = 262144
# builtin opt   gdk_vm_minsize = 137438953472
# builtin opt   gdk_alloc_map = yes
# builtin opt   gdk_mem_pagebits = 14
# builtin opt   monet_admin = adm
# builtin opt   monet_prompt = >
# builtin opt   monet_welcome = yes
# builtin opt   monet_mod_path = 
${exec_prefix}/lib/MonetDB:${exec_prefix}/lib/bin
# builtin opt   monet_daemon = yes
# builtin opt   host = localhost
# builtin opt   mapi_port = 50000
# builtin opt   mapi_noheaders = no
# builtin opt   mapi_debug = 0
# builtin opt   mapi_clients = 2
# builtin opt   sql_debug = 0
# builtin opt   sql_logdir = ${prefix}/var/MonetDB/sql_logs
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB/xquery_logs
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/goncalve/scratch/MonetDB/MonetDB5
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/goncalve/scratch/MonetDB/MonetDB5
# config opt    exec_prefix = ${prefix}
# config opt    gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
# config opt    gdk_dbname = demo
# config opt    gdk_alloc_map = no
# config opt    gdk_embedded = no
# config opt    gdk_debug = 0
# config opt    monet_mod_path = 
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
# config opt    monet_daemon = no
# config opt    monet_welcome = yes
# config opt    delay = 120
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 15
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 0
# config opt    sql_debug = 0
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    pf_httpd_port = 8080
# config opt    xquery_output = dm
# config opt    xquery_cacheMB = 100
# config opt    xquery_logdir = ${prefix}/var/MonetDB5/xquery_logs
# cmdline opt   config = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf
# cmdline opt   gdk_debug = 10
# cmdline opt   monet_mod_path = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm
# cmdline opt   sql_logdir = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs
# cmdline opt   xquery_logdir = 
/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs
# cmdline opt   mapi_port = 31477
# cmdline opt   xrpc_port = 42976
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_Update_Delete_action
#warning: please don't forget to set your vault key!
#(see /ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf)

# 16:04:24 >  
# 16:04:24 >  Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb 
--host=localhost --port=31477 
# 16:04:24 >  


# 16:04:27 >  
# 16:04:27 >  Done.
# 16:04:27 >  


Index: update_no_action.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_no_action.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_no_action.sql        28 Mar 2007 16:16:18 -0000      1.1
+++ update_no_action.sql        2 Apr 2007 13:08:12 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE NO ACTION;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON DELETE NO ACTION);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
NO ACTION;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
NO ACTION);
 
 
 
@@ -21,10 +21,10 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 
 update t1 set id = 10 where id =1;

--- NEW FILE: delete_no_action.stable.out ---
stdout of test 'delete_no_action` in directory 'src/test/Update_Delete_action` 
itself:


# 16:59:18 >  
# 16:59:18 >  Mtimeout -timeout 180 mserver5 
"--config=/ufs/goncalve/scratch/MonetDB/MonetDB5/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/lib:/ufs/goncalve/scratch/MonetDB/MonetDB5/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/dbfarm" 
--set "sql_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/sql_logs" 
--set 
"xquery_logdir=/ufs/goncalve/scratch/MonetDB/MonetDB5/var/MonetDB5/xquery_logs" 
--set mapi_port=33148 --set xrpc_port=45004 --set monet_prompt= --trace 
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo 
; echo Over..
# 16:59:18 >  

# MonetDB Server v5.0.0_beta2_1
# Copyright (c) 1993-2007 CWI, all rights reserved
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# dbname:mTests_src_test_Update_Delete_action
# Visit http://monetdb.cwi.nl/ for further information

Ready.

Over..

# 16:59:19 >  
# 16:59:19 >  Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb 
--host=localhost --port=33148 
# 16:59:19 >  

[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 1     ]
[ 2     ]
% sys.t1,       sys.t1 # table_name
% id,   name # name
% int,  varchar # type
% 1,    7 # length
[ 1,    "monetdb"       ]
[ 2,    "mon"   ]
[ 5,    "mob"   ]
[ 6,    "moetdb"        ]
[ 7,    "mo"    ]
% sys.t2,       sys.t2 # table_name
% id,   age # name
% int,  int # type
% 1,    2 # length
[ 1,    23      ]
[ 2,    24      ]
[ 3,    25      ]
[ 4,    26      ]
[ 5,    27      ]
% sys.t3,       sys.t3 # table_name
% id,   num # name
% int,  int # type
% 1,    1 # length
[ 3,    5       ]
[ 3,    5       ]
[ 4,    6       ]
[ 5,    7       ]
[ 5     ]
% sys.t1,       sys.t1 # table_name
% id,   name # name
% int,  varchar # type
% 1,    0 # length
% sys.t2,       sys.t2 # table_name
% id,   age # name
% int,  int # type
% 1,    2 # length
[ 1,    23      ]
[ 2,    24      ]
[ 3,    25      ]
[ 4,    26      ]
[ 5,    27      ]
% sys.t3,       sys.t3 # table_name
% id,   num # name
% int,  int # type
% 1,    1 # length
[ 3,    5       ]
[ 3,    5       ]
[ 4,    6       ]
[ 5,    7       ]

# 16:59:22 >  
# 16:59:22 >  Done.
# 16:59:22 >  


Index: update_delete_cascade.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_delete_cascade.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_delete_cascade.sql   28 Mar 2007 16:16:18 -0000      1.1
+++ update_delete_cascade.sql   2 Apr 2007 13:08:09 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON UPDATE CASCADE ON DELETE CASCADE;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON UPDATE CASCADE ON DELETE CASCADE);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
CASCADE ON UPDATE CASCADE;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
CASCADE ON UPDATE CASCADE);
 
 insert into t1 values(1, 'monetdb');
 insert into t1 values(2, 'mon');
@@ -19,10 +19,10 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 11 where id =2;
@@ -33,7 +33,7 @@
 select * from t2;
 select * from t3;
 
-delete * from t1 where id = 5;
+delete from t1 where id = 5;
 
 select * from t1;
 select * from t2;

Index: update_cascade.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_cascade.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update_cascade.sql  28 Mar 2007 16:16:17 -0000      1.1
+++ update_cascade.sql  2 Apr 2007 13:08:08 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1)) ON DELETE CASCADE;
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id) ON UPDATE CASCADE);
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
CASCADE;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON UPDATE 
CASCADE);
 
 
 
@@ -21,10 +21,10 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
 update t1 set id = 10 where id =1;
 update t1 set id = 11 where id =2;

Index: delete_restrict.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_restrict.sql,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_restrict.sql 28 Mar 2007 16:16:17 -0000      1.1
+++ delete_restrict.sql 2 Apr 2007 13:08:07 -0000       1.2
@@ -1,8 +1,8 @@
 create table t1 (id int, name varchar(1024), PRIMARY KEY(id));
 
-create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) as 
REFERENCE (t1));
+create table t2 (id int, age int, PRIMARY KEY (ID), FOREIGN KEY(id) REFERENCES 
t1(id));
 
-create table t3 (id int, day int, FOREIGN KEY(id) as REFERENCE (t2)) ON DELETE 
RESTRICT;
+create table t3 (id int, num int, FOREIGN KEY(id) REFERENCES t2(id) ON DELETE 
RESTRICT);
 
 
 
@@ -21,24 +21,24 @@
 insert into t2 values(5, 27);
 
 
-insert into t2 values(3, 5);
-insert into t2 values(3, 5);
-insert into t2 values(4, 6);
-insert into t2 values(5, 7);
+insert into t3 values(3, 5);
+insert into t3 values(3, 5);
+insert into t3 values(4, 6);
+insert into t3 values(5, 7);
 
-delete * from t1 where id > 2 and id < 5;
+delete from t1 where id > 2 and id < 5;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1;
+delete from t1;
 
 select * from t1;
 select * from t2;
 select * from t3;
 
-delete * from t1 where id = 6;
+delete from t1 where id < 2 and id > 5;
 
 select * from t1;
 select * from t2;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to