Update of /cvsroot/monetdb/sql/src/test/bugs/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5846

Modified Files:
      Tag: SQL_2-20
        All 
Added Files:
      Tag: SQL_2-20
        dbl_sht_cast_bug.sql dbl_sht_cast_bug.stable.err 
        dbl_sht_cast_bug.stable.out 
Log Message:
added test for function resolution/casting bug


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


# 19:47:27 >  
# 19:47:27 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--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 "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=30417 --set 
xrpc_port=47985 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs" 
--set mal_listing=0 --dbinit=" include sql;" ; echo ; echo Over..
# 19:47:27 >  

#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf)

# 19:47:27 >  
# 19:47:27 >  mclient -lsql -umonetdb -Pmonetdb --host=koala --port=30417 
# 19:47:27 >  


# 19:47:27 >  
# 19:47:27 >  Done.
# 19:47:27 >  


Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/bugs/Tests/All,v
retrieving revision 1.95.2.2
retrieving revision 1.95.2.3
diff -u -d -r1.95.2.2 -r1.95.2.3
--- All 19 Sep 2007 09:06:15 -0000      1.95.2.2
+++ All 30 Oct 2007 18:53:39 -0000      1.95.2.3
@@ -70,3 +70,4 @@
 not
 references-bug
 redirect
+dbl_sht_cast_bug

--- NEW FILE: dbl_sht_cast_bug.sql ---
create table dbl_sht_cast_bug (
        r real,
        i real,
        g real
);

insert into dbl_sht_cast_bug values (118778.78787, 11999.99888, 12345.678901);
SELECT count(g)
FROM dbl_sht_cast_bug
WHERE ( r - i < (0.08 + 0.42 * (g - r - 0.96)) or g - r > 2.26 );

drop table dbl_sht_cast_bug;

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


# 19:47:27 >  
# 19:47:27 >   mserver5 
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--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 "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=30417 --set 
xrpc_port=47985 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs" 
--set mal_listing=0 --dbinit=" include sql;" ; echo ; echo Over..
# 19:47:27 >  

# MonetDB server v5.2.0, based on kernel v1.20.0
# Serving database 'mTests_src_test_bugs'
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2007 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://koala.ins.cwi.nl:30417/
# MonetDB/SQL module v2.20.1 loaded

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

Over..

# 19:47:27 >  
# 19:47:27 >  mclient -lsql -umonetdb -Pmonetdb --host=koala --port=30417 
# 19:47:27 >  

[ 1     ]
% sys.dbl_sht_cast_bug # table_name
% count_no_nil_g # name
% int # type
% 1 # length
[ 0     ]

# 19:47:27 >  
# 19:47:27 >  Done.
# 19:47:27 >  



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to