Update of /cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv4614/Tests
Modified Files:
delete_restrict.sql
Added Files:
delete_restrict.stable.err delete_restrict.stable.out
Log Message:
Correct and approve delete_restrict tes (of course there is no id <2 and >5) :)
Index: delete_restrict.sql
===================================================================
RCS file:
/cvsroot/monetdb/sql/src/test/Update_Delete_action/Tests/delete_restrict.sql,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- delete_restrict.sql 2 Apr 2007 13:08:07 -0000 1.2
+++ delete_restrict.sql 2 Apr 2007 13:57:35 -0000 1.3
@@ -26,7 +26,7 @@
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 or id > 5;
select * from t1;
select * from t2;
@@ -38,7 +38,13 @@
select * from t2;
select * from t3;
-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 where id > 5;
select * from t1;
select * from t2;
--- NEW FILE: delete_restrict.stable.err ---
stderr of test 'delete_restrict` in directory 'src/test/Update_Delete_action`
itself:
# 15:54:02 >
# 15:54:02 > 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=38344 --set xrpc_port=43756 --set monet_prompt= --trace
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo
; echo Over..
# 15:54:02 >
# builtin opt gdk_arch = 64bitx86_64-redhat-linux-gnu
# builtin opt gdk_version = 1.17.1
# builtin opt monet_pid = 29096
# 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 = 38344
# cmdline opt xrpc_port = 43756
# 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:54:03 >
# 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
QUERY = delete from t1;
ERROR = !SQLException:assert:DELETE: FOREIGN KEY constraint 't1.t1_id_pkey'
violated
MAPI = [EMAIL PROTECTED]:35380
QUERY = delete from t1 where id > 2 and id < 5;
ERROR = !SQLException:assert:DELETE: FOREIGN KEY constraint 't1.t1_id_pkey'
violated
# 15:54:05 >
# 15:54:05 > Done.
# 15:54:05 >
--- NEW FILE: delete_restrict.stable.out ---
stdout of test 'delete_restrict` in directory 'src/test/Update_Delete_action`
itself:
# 15:55:29 >
# 15:55:29 > 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=35380 --set xrpc_port=46842 --set monet_prompt= --trace
"--dbname=mTests_src_test_Update_Delete_action" --dbinit='include sql;' ; echo
; echo Over..
# 15:55:29 >
!WARNING: GDKlockHome: ignoring empty or invalid .gdk_lock.
!WARNING: BBPdir: initializing BBP.
# 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..
# 15:55:30 >
# 15:55:30 > Mtimeout -timeout 60 MapiClient -lsql -umonetdb -Pmonetdb
--host=localhost --port=35380
# 15:55:30 >
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
% 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 ]
% 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 ]
% 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
% int, varchar # type
% 1, 7 # length
[ 1, "monetdb" ]
[ 2, "mon" ]
[ 3, "monb" ]
[ 4, "motdb" ]
[ 5, "mob" ]
% 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 ]
# 15:55:31 >
# 15:55:31 > Done.
# 15:55:31 >
-------------------------------------------------------------------------
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