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

Modified Files:
        All 
Added Files:
        function_call_not_handled.SF-2864179.sql 
        function_call_not_handled.SF-2864179.stable.err 
        function_call_not_handled.SF-2864179.stable.out 
Log Message:
Added test for sourceforge bug 2864179


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


# 15:06:14 >  
# 15:06:14 >   mserver5 
"--config=/export/scratch0/rijke/monetdb20090928/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/export/scratch0/rijke/monetdb20090928/lib/MonetDB5:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/lib:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/export/scratch0/rijke/monetdb20090928/var/MonetDB5/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=39569 --set 
xrpc_port=45189 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 15:06:14 >  

# MonetDB server v5.15.0, based on kernel v1.33.0
# Serving database 'mTests_src_test_BugTracker-2009', using 4 threads
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Detected 7.753 GiB (8324390912 bytes) main-memory.
# 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://yngling.ins.cwi.nl:39569/
# MonetDB/SQL module v2.33.0 loaded

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

Over..

# 15:06:14 >  
# 15:06:14 >  mclient -lsql -i -umonetdb -Pmonetdb --host=yngling --port=39569 
# 15:06:14 >  

% . # table_name
% insert_table_error # name
% int # type
% 1 # length
[ 0     ]
% sys.table_a1, sys.table_a1 # table_name
% table_a1_id,  column_a1 # name
% int,  int # type
% 1,    1 # length
[ 1,    1       ]
% . # table_name
% insert_table_correct # name
% int # type
% 1 # length
[ 2     ]
% sys.table_a1, sys.table_a1 # table_name
% table_a1_id,  column_a1 # name
% int,  int # type
% 1,    1 # length
[ 1,    1       ]
[ 2,    1       ]

# 15:06:14 >  
# 15:06:14 >  Done.
# 15:06:14 >  


U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2009/Tests/All,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- All 23 Sep 2009 07:25:53 -0000      1.50
+++ All 28 Sep 2009 14:09:01 -0000      1.51
@@ -99,6 +99,7 @@
 updating_non-loaded_columns.SF-2864313_KO-2
 updating_non-loaded_columns.SF-2864313_KO-3
 updating_non-loaded_columns.SF-2864313_OK-4
+function_call_not_handled.SF-2864179
 #
 # The following test currently crashes and this fact (or its remains) might
 # harm sub-sequent tests; hence, this test should be last in this directory.

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


# 15:06:14 >  
# 15:06:14 >   mserver5 
"--config=/export/scratch0/rijke/monetdb20090928/etc/monetdb5.conf" --debug=10 
--set gdk_nr_threads=0 --set 
"monet_mod_path=/export/scratch0/rijke/monetdb20090928/lib/MonetDB5:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/lib:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/export/scratch0/rijke/monetdb20090928/var/MonetDB5/dbfarm"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=39569 --set 
xrpc_port=45189 --set monet_prompt= --trace  
"--dbname=mTests_src_test_BugTracker-2009" --set mal_listing=0 "--dbinit= 
include sql;" ; echo ; echo Over..
# 15:06:14 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.33.0
# builtin opt   prefix = /export/scratch0/rijke/monetdb20090928
# 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   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /export/scratch0/rijke/monetdb20090928
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /export/scratch0/rijke/monetdb20090928
# 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    mero_controlport = 50001
# 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,aliases,mergetable,deadcode,constants,commonTerms,joinPath,deadcode,reduce,garbageCollector,dataflow,history,replication,multiplex
# cmdline opt   config = 
/export/scratch0/rijke/monetdb20090928/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 0
# cmdline opt   monet_mod_path = 
/export/scratch0/rijke/monetdb20090928/lib/MonetDB5:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/lib:/export/scratch0/rijke/monetdb20090928/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/export/scratch0/rijke/monetdb20090928/var/MonetDB5/dbfarm
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 39569
# cmdline opt   xrpc_port = 45189
# 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 /export/scratch0/rijke/monetdb20090928/etc/monetdb5.conf)

# 15:06:14 >  
# 15:06:14 >  mclient -lsql -i -umonetdb -Pmonetdb --host=yngling --port=39569 
# 15:06:14 >  


# 15:06:14 >  
# 15:06:14 >  Done.
# 15:06:14 >  


--- NEW FILE: function_call_not_handled.SF-2864179.sql ---
create table table_a1 (
    table_a1_id integer not null auto_increment,
    column_a1 integer
);

create function insert_table_a1 (value_a1 integer)
returns integer
begin
    declare id_table_a1 integer;

    insert into table_a1 (
        column_a1 )
    values (
        value_a1
    );

    set id_table_a1 = (select max(table_a1_id)
                      from table_a1);

  return id_table_a1;
end;

create function insert_table_error ()
returns integer
begin
  declare id_table_a1 integer;

  set id_table_a1 = insert_table_a1 ( 1 );

  return 0;
end;

create function insert_table_correct ()
returns integer
begin
  declare id_table_a1 integer;

  set id_table_a1 = insert_table_a1 ( 1 );

  return id_table_a1;
end;

select insert_table_error();

select * from table_a1;

select insert_table_correct();

select * from table_a1;



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to