Update of /cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests
In directory sc8-pr-cvs16:/tmp/cvs-serv28098
Modified Files:
delete_restrict.sql delete_restrict.stable.err
delete_restrict.stable.out delete_set_default.sql
update_cascade.sql update_delete_cascade.sql
update_delete_set_null_crash.sql update_set_default_crash.sql
Added Files:
update_delete_set_null_crash.stable.err
update_set_default_crash.stable.err
Log Message:
Some err output approves and also some corrections on the tests...
Index: delete_set_default.sql
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_set_default.sql,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- delete_set_default.sql 2 Apr 2007 13:08:08 -0000 1.2
+++ delete_set_default.sql 18 Apr 2007 16:18:48 -0000 1.3
@@ -19,7 +19,6 @@
insert into t2 values(3, 25);
insert into t2 values(4, 26);
insert into t2 values(5, 27);
-insert into t2 values(6, 28);
insert into t3 values(3, 5);
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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- update_set_default_crash.sql 2 Apr 2007 13:08:12 -0000 1.2
+++ update_set_default_crash.sql 18 Apr 2007 16:18:50 -0000 1.3
@@ -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)
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) 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);
@@ -19,13 +19,12 @@
insert into t2 values(3, 25);
insert into t2 values(4, 26);
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;
@@ -44,9 +43,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)
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) 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);
@@ -63,13 +62,12 @@
insert into t2 values(3, 25);
insert into t2 values(4, 26);
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;
--- NEW FILE: update_set_default_crash.stable.err ---
stderr of test 'update_set_default_crash` in directory
'src/test/Update_Delete_action` itself:
# 18:14:36 >
# 18:14:36 > 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=33150 --set xrpc_port=47345 --set monet_prompt= --trace
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo
; echo Over..
# 18:14:36 >
# builtin opt gdk_arch = 64bitx86_64-redhat-linux-gnu
# builtin opt gdk_version = 1.17.1
# builtin opt monet_pid = 12972
# 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 = 33150
# cmdline opt xrpc_port = 47345
# 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)
# 18:14:36 >
# 18:14:36 > Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb
--host=localhost --port=33150
# 18:14:36 >
# 18:14:38 >
# 18:14:38 > Done.
# 18:14:38 >
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.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- update_delete_set_null_crash.sql 2 Apr 2007 13:08:09 -0000 1.2
+++ update_delete_set_null_crash.sql 18 Apr 2007 16:18:49 -0000 1.3
@@ -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)
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)
REFERENCES t1(id) ON UPDATE SET NULL ON DELETE SET NULL);
-create table t3 (id int DEFAULT 3, day int, FOREIGN KEY(id) 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);
@@ -19,12 +19,11 @@
insert into t2 values(3, 25);
insert into t2 values(4, 26);
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 +34,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: delete_restrict.stable.err
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_restrict.stable.err,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_restrict.stable.err 2 Apr 2007 13:57:35 -0000 1.1
+++ delete_restrict.stable.err 18 Apr 2007 16:18:48 -0000 1.2
@@ -73,13 +73,10 @@
# 15:54:03 > Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb
--host=localhost --port=38344
# 15:54:03 >
-MAPI = [EMAIL PROTECTED]:35380
-QUERY = delete from t1 where id < 2 or id > 5;
-ERROR = !SQLException:assert:DELETE: FOREIGN KEY constraint 't1.t1_id_pkey'
violated
-MAPI = [EMAIL PROTECTED]:35380
+MAPI = [EMAIL PROTECTED]:31237
QUERY = delete from t1;
ERROR = !SQLException:assert:DELETE: FOREIGN KEY constraint 't1.t1_id_pkey'
violated
-MAPI = [EMAIL PROTECTED]:35380
+MAPI = [EMAIL PROTECTED]:31237
QUERY = delete from t1 where id > 2 and id < 5;
ERROR = !SQLException:assert:DELETE: FOREIGN KEY constraint 't1.t1_id_pkey'
violated
Index: delete_restrict.stable.out
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_restrict.stable.out,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- delete_restrict.stable.out 2 Apr 2007 13:57:35 -0000 1.1
+++ delete_restrict.stable.out 18 Apr 2007 16:18:48 -0000 1.2
@@ -93,34 +93,6 @@
[ 3, 5 ]
[ 4, 6 ]
[ 5, 7 ]
-% sys.t1, sys.t1 # table_name
-% id, name # name
-% int, varchar # type
-% 1, 7 # length
-[ 1, "monetdb" ]
-[ 2, "mon" ]
-[ 3, "monb" ]
-[ 4, "motdb" ]
-[ 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 ]
[ 2 ]
% sys.t1, sys.t1 # table_name
% id, name # name
--- NEW FILE: update_delete_set_null_crash.stable.err ---
stderr of test 'update_delete_set_null_crash` in directory
'src/test/Update_Delete_action` itself:
# 18:09:59 >
# 18:09:59 > 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=31046 --set xrpc_port=40673 --set monet_prompt= --trace
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo
; echo Over..
# 18:09:59 >
# builtin opt gdk_arch = 64bitx86_64-redhat-linux-gnu
# builtin opt gdk_version = 1.17.1
# builtin opt monet_pid = 12442
# 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 = 31046
# cmdline opt xrpc_port = 40673
# 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)
# 18:10:00 >
# 18:10:00 > Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb
--host=localhost --port=31046
# 18:10:00 >
# 18:10:02 >
# 18:10:02 > Done.
# 18:10:02 >
Index: update_delete_cascade.sql
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_delete_cascade.sql,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- update_delete_cascade.sql 2 Apr 2007 13:08:09 -0000 1.2
+++ update_delete_cascade.sql 18 Apr 2007 16:18:49 -0000 1.3
@@ -40,7 +40,6 @@
select * from t3;
drop table t3;
-drop table t3;
drop table t2;
drop table t1;
Index: update_cascade.sql
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/update_cascade.sql,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- update_cascade.sql 18 Apr 2007 09:18:05 -0000 1.3
+++ update_cascade.sql 18 Apr 2007 16:18:49 -0000 1.4
@@ -27,9 +27,9 @@
insert into t3 values(5, 7);
update t1 set id = 10 where id =1;
---update t1 set id = 11 where id =2;
---update t1 set id = 12 where id =3;
---update t1 set id = 13 where id =4;
+update t1 set id = 11 where id =2;
+update t1 set id = 12 where id =3;
+update t1 set id = 13 where id =4;
select * from t1;
select * from t2;
Index: delete_restrict.sql
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_restrict.sql,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- delete_restrict.sql 2 Apr 2007 13:57:35 -0000 1.3
+++ delete_restrict.sql 18 Apr 2007 16:18:48 -0000 1.4
@@ -26,12 +26,6 @@
insert into t3 values(4, 6);
insert into t3 values(5, 7);
-delete from t1 where id < 2 or id > 5;
-
-select * from t1;
-select * from t2;
-select * from t3;
-
delete from t1;
select * from t1;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins