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

Modified Files:
      Tag: Aug2009
        All orIssue.SF-2812504.sql 
Added Files:
      Tag: Aug2009
        assert_in_update.SF-2807336.sql 
        assert_in_update.SF-2807336.stable.err 
        assert_in_update.SF-2807336.stable.out 
Log Message:
add test script for bug in handling 'ambiguous' column names


--- NEW FILE: assert_in_update.SF-2807336.stable.err ---
stderr of test 'assert_in_update.SF-2807336` in directory 
'src/test/BugTracker-2009` itself:


# 10:38:04 >  
# 10:38:04 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"    
--set mapi_open=true --set xrpc_open=true --set mapi_port=36216 --set 
xrpc_port=46629 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 10:38:04 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.32.0
# builtin opt   prefix = /ufs/niels/scratch/rc/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_alloc_map = yes
# 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
# 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 = sql_logs
# builtin opt   xquery_logdir = 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/niels/scratch/rc/Linux-x86_64
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/niels/scratch/rc/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/MonetDB/merovingian.log
# config opt    mero_errlog = ${prefix}/var/log/MonetDB/merovingian.log
# config opt    mero_pidfile = ${prefix}/var/run/MonetDB/merovingian.pid
# config opt    mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt    mal_listing = 2
# config opt    mapi_port = 50000
# config opt    mapi_autosense = false
# config opt    mapi_open = false
# config opt    sql_optimizer = 
inline,remap,evaluate,costModel,coercions,emptySet,cluster,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,garbageCollector,dataflow,history,multiplex
# cmdline opt   config = /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 0
# cmdline opt   monet_mod_path = 
/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 36216
# cmdline opt   xrpc_port = 46629
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_BugTracker-2009
# cmdline opt   mal_listing = 0
#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf)

# 10:38:04 >  
# 10:38:04 >  mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36216 
# 10:38:04 >  

MAPI  = mone...@alf:36216
QUERY = update anbi set kvk = (select kvk from kvk,anbi where lower(naam)
ERROR = !SELECT: identifier 'kvk' ambiguous

# 10:38:04 >  
# 10:38:04 >  Done.
# 10:38:04 >  


--- NEW FILE: assert_in_update.SF-2807336.sql ---
CREATE TABLE "sys"."anbi" ( "naam" varchar(256), "vestigingsplaats"
varchar(32), "beschikking" date, "intrekking" date, kvk bigint);
CREATE TABLE "sys"."kvk" ("kvk" bigint, "bedrijfsnaam" varchar(255),
"adres" varchar(64), "postcode" varchar(6), "plaats" varchar(32), "type"
varchar(16));
select kvk.kvk from kvk,anbi where lower(naam) = lower(bedrijfsnaam)
and lower(plaats) = lower(vestigingsplaats);

update anbi set kvk = (select kvk.kvk from kvk,anbi where lower(naam)
= lower(bedrijfsnaam) and lower(plaats) = lower(vestigingsplaats));

update anbi set kvk = (select kvk from kvk,anbi where lower(naam)
= lower(bedrijfsnaam) and lower(plaats) = lower(vestigingsplaats));

drop table anbi;
drop table kvk;

--- NEW FILE: assert_in_update.SF-2807336.stable.out ---
stdout of test 'assert_in_update.SF-2807336` in directory 
'src/test/BugTracker-2009` itself:


# 10:38:04 >  
# 10:38:04 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"    
--set mapi_open=true --set xrpc_open=true --set mapi_port=36216 --set 
xrpc_port=46629 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 10:38:04 >  

# MonetDB server v5.14.0, based on kernel v1.32.0
# Serving database 'mTests_src_test_BugTracker-2009', 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-2009 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:36216/
# MonetDB/SQL module v2.32.0 loaded

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

Over..

# 10:38:04 >  
# 10:38:04 >  mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36216 
# 10:38:04 >  

% sys.kvk # table_name
% kvk # name
% bigint # type
% 1 # length
[ 0     ]

# 10:38:04 >  
# 10:38:04 >  Done.
# 10:38:04 >  


U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests/All,v
retrieving revision 1.37.2.7
retrieving revision 1.37.2.8
diff -u -d -r1.37.2.7 -r1.37.2.8
--- All 7 Aug 2009 07:45:04 -0000       1.37.2.7
+++ All 7 Aug 2009 08:39:16 -0000       1.37.2.8
@@ -78,3 +78,4 @@
 set_and_arg_null.SF-2812729
 pow_operator.SF-2812721
 count_distinct_bug.SF-2826015
+assert_in_update.SF-2807336

U orIssue.SF-2812504.sql
Index: orIssue.SF-2812504.sql
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests/orIssue.SF-2812504.sql,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- orIssue.SF-2812504.sql      20 Jul 2009 19:30:32 -0000      1.1
+++ orIssue.SF-2812504.sql      7 Aug 2009 08:39:16 -0000       1.1.2.1
@@ -17,3 +17,7 @@
 
 select * from kvk,anbi where lower(naam) = lower(bedrijfsnaam) and
 (vestigingsplaats = 'DEN HAAG' or vestigingsplaats LIKE '%GRAVE%');
+
+
+drop table kvk;
+drop table anbi;


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to