Update of /cvsroot/monetdb/sql/src/test/bugs/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2337/src/test/bugs/Tests
Modified Files:
All
Added Files:
zero_or_one_bug.sql zero_or_one_bug.stable.err
zero_or_one_bug.stable.out
Log Message:
propagated changes of Sunday Feb 24 2008 - Thursday Feb 28 2008
from the SQL_2-22 branch to the development trunk
NOTE:
There were CONFLICTS in src/server/sql_select.mx .
I hope, I solved by correctly --- basically by using the version from the
SQL_2-22 branch...
Please double-check!
--- NEW FILE: zero_or_one_bug.sql ---
CREATE TABLE my_table1 (
--
id1 INT NOT NULL,
col1a VARCHAR(10),
col1b VARCHAR(1)
--
) ;
INSERT INTO my_table1 VALUES (1, 'a', '') ;
INSERT INTO my_table1 VALUES (2, 'b', '') ;
INSERT INTO my_table1 VALUES (3, 'c', '') ;
INSERT INTO my_table1 VALUES (4, 'd', '') ;
INSERT INTO my_table1 VALUES (5, 'e', '') ;
INSERT INTO my_table1 VALUES (6, 'f', '') ;
INSERT INTO my_table1 VALUES (7, 'g', '') ;
INSERT INTO my_table1 VALUES (8, 'h', '') ;
INSERT INTO my_table1 VALUES (9, 'i', '') ;
CREATE TABLE my_table2 (
--
id2 INT NOT NULL,
col2 VARCHAR(10)
) ;
-- Query 1
--
SELECT
COALESCE(id1,0),
(SELECT col2 FROM my_table2 WHERE col2 = col1a)
FROM my_table1 x
;
-- Query 2
--
SELECT
COALESCE(id1,0),
(SELECT col2 FROM my_table2 WHERE col2 = col1a) AS my_col1
FROM my_table1 x
;
DROP TABLE my_table1 ;
DROP TABLE my_table2 ;
--- NEW FILE: zero_or_one_bug.stable.err ---
stderr of test 'zero_or_one_bug` in directory 'src/test/bugs` itself:
# 12:37:52 >
# 12:37:52 > mserver5
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10
--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=35441 --set
xrpc_port=44524 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs"
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 12:37:52 >
#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf)
# 12:37:52 >
# 12:37:52 > mclient -lsql -umonetdb -Pmonetdb --host=koala --port=35441
# 12:37:52 >
# 12:37:52 >
# 12:37:52 > Done.
# 12:37:52 >
--- NEW FILE: zero_or_one_bug.stable.out ---
stdout of test 'zero_or_one_bug` in directory 'src/test/bugs` itself:
# 12:37:52 >
# 12:37:52 > mserver5
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10
--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=35441 --set
xrpc_port=44524 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs"
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 12:37:52 >
# MonetDB server v5.5.0, based on kernel v1.23.0
# Serving database 'mTests_src_test_bugs'
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2008 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://koala.ins.cwi.nl:35441/
# MonetDB/SQL module v2.23.0 loaded
Ready.
#function user.main():void;
# clients.quit();
#end main;
Over..
# 12:37:52 >
# 12:37:52 > mclient -lsql -umonetdb -Pmonetdb --host=koala --port=35441
# 12:37:52 >
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
% sys., sys.my_table2 # table_name
% ifthenelse_not_isnull_id1, zero_or_one_col2 # name
% int, varchar # type
% 1, 1 # length
[ 1, NULL ]
[ 2, NULL ]
[ 3, NULL ]
[ 4, NULL ]
[ 5, NULL ]
[ 6, NULL ]
[ 7, NULL ]
[ 8, NULL ]
[ 9, NULL ]
% sys., sys.my_table2 # table_name
% ifthenelse_not_isnull_id1, my_col1 # name
% int, varchar # type
% 1, 1 # length
[ 1, NULL ]
[ 2, NULL ]
[ 3, NULL ]
[ 4, NULL ]
[ 5, NULL ]
[ 6, NULL ]
[ 7, NULL ]
[ 8, NULL ]
[ 9, NULL ]
# 12:37:52 >
# 12:37:52 > Done.
# 12:37:52 >
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/bugs/Tests/All,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -d -r1.108 -r1.109
--- All 15 Feb 2008 18:17:52 -0000 1.108
+++ All 28 Feb 2008 15:56:46 -0000 1.109
@@ -83,3 +83,4 @@
seconds2timestamp
select_not_equal
case_substring
+zero_or_one_bug
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins