Update of /cvsroot/monetdb/sql/src/test/BugTracker-2008/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9586

Modified Files:
        All 
Added Files:
        subselect_with_or.SF-2466725.sql 
        subselect_with_or.SF-2466725.stable.err 
        subselect_with_or.SF-2466725.stable.out 
Log Message:
add test for subselect with or bug (missing distinct)


--- NEW FILE: subselect_with_or.SF-2466725.stable.out ---
stdout of test 'subselect_with_or.SF-2466725` in directory 
'src/test/BugTracker-2008` itself:


# 16:42:11 >  
# 16:42:11 >   mserver5 
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=4 --set 
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/dbfarm" 
--set 
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=36005 --set 
xrpc_port=45742 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2008" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 16:42:11 >  

# MonetDB server v5.9.0, based on kernel v1.27.0
# Serving database 'mTests_src_test_BugTracker-2008', using 4 threads
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-July 2008 CWI.
# Copyright (c) August 2008- MonetDB B.V., all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://alf.ins.cwi.nl:36005/
# MonetDB/SQL module v2.27.0 loaded

Ready.
#function user.main():void;
#    clients.quit();
#end main;

Over..

# 16:42:11 >  
# 16:42:11 >  mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36005 
# 16:42:11 >  

[ 2     ]
[ 1     ]
% sys.t1,       sys.t1 # table_name
% a,    b # name
% int,  int # type
% 1,    1 # length
[ 1,    1       ]
[ 2,    2       ]
% sys.t1,       sys.t1 # table_name
% a,    b # name
% int,  int # type
% 1,    1 # length
[ 1,    1       ]

# 16:42:11 >  
# 16:42:11 >  Done.
# 16:42:11 >  


U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2008/Tests/All,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- All 15 Dec 2008 10:02:19 -0000      1.11
+++ All 27 Dec 2008 15:46:15 -0000      1.12
@@ -32,3 +32,5 @@
 between_no_columns.SF2102101
 col_from_another_inside_function_body.SF-2420768
 is_distinct_broken.SF-2430201
+blob_insert_crash.SF-2388542
+subselect_with_or.SF-2466725

--- NEW FILE: subselect_with_or.SF-2466725.stable.err ---
stderr of test 'subselect_with_or.SF-2466725` in directory 
'src/test/BugTracker-2008` itself:


# 16:42:11 >  
# 16:42:11 >   mserver5 
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=4 --set 
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/dbfarm" 
--set 
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=36005 --set 
xrpc_port=45742 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2008" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 16:42:11 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.27.0
# builtin opt   monet_pid = 518
# builtin opt   prefix = /ufs/niels/scratch/monetdb/Linux-x86_64
# 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_alloc_map = yes
# builtin opt   gdk_mem_pagebits = 14
# builtin opt   gdk_vmtrim = yes
# 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
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/niels/scratch/monetdb/Linux-x86_64
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/niels/scratch/monetdb/Linux-x86_64
# 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    mero_msglog = ${prefix}/var/log/merovingian.log
# config opt    mero_errlog = ${prefix}/var/log/merovingian.log
# config opt    mero_timeinterval = 600
# config opt    mero_pidfile = ${prefix}/var/run/merovingian.pid
# config opt    mero_exittimeout = 7
# config opt    mero_doproxy = yes
# config opt    mero_discoveryttl = 600
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 2
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 50000
# config opt    mapi_open = false
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    sql_init = ${exec_prefix}/lib/MonetDB5/sql_init.sql
# cmdline opt   config = 
/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 4
# cmdline opt   monet_mod_path = 
/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/dbfarm
# cmdline opt   sql_logdir = 
/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/sql_logs
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 36005
# cmdline opt   xrpc_port = 45742
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_BugTracker-2008
# cmdline opt   mal_listing = 0
# cmdline opt   gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf)

# 16:42:11 >  
# 16:42:11 >  mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36005 
# 16:42:11 >  


# 16:42:11 >  
# 16:42:11 >  Done.
# 16:42:11 >  


--- NEW FILE: subselect_with_or.SF-2466725.sql ---
create table t1 ( a int, b int ) ;
create table t2 ( a int, b int ) ;
insert into t1 values ( 1, 1 ), ( 2, 2 ) ;
insert into t2 values ( 1, 1 ) ;

--the result of
select * from t1 where exists( select * from t2 where t2.a = t1.a ) or t1.b
> 0 ;

--is the same as the result of
select * from t1 where exists( select * from t2 where t2.a = t1.a ) and
t1.b > 0 ;

--but the 'OR' should return two records.

drop table t1;
drop table t2;


------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to