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

Modified Files:
        All 
Added Files:
        copy-format.SF-2468513.sql copy-format.SF-2468513.stable.err 
        copy-format.SF-2468513.stable.out 
Log Message:
sql_result - upgrade the handling of value parsing to align with gdk.
various tests added that call for our attention, i.e. to properly handle
varchar size bounds and typing errors.



--- NEW FILE: copy-format.SF-2468513.sql ---
start transaction;
CREATE TABLE my_copytest (
col1 INT,
col2 INT,
col3 INT,
col4 VARCHAR(1),
col5 VARCHAR(1)
) ;

COPY 3 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
NULL as '';
123|1.01||aaa|bbb
553|.02||aaa|bbb
223|2.03||aaa|bbb

select * from my_copytest;
abort;

U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/BugTracker-2008/Tests/All,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- All 27 Dec 2008 22:52:32 -0000      1.14
+++ All 28 Dec 2008 09:58:47 -0000      1.15
@@ -36,3 +36,4 @@
 blob_insert_crash.SF-2388542
 subselect_with_or.SF-2466725
 OOM_query.SF-2457195
+copy-format.SF-2468513

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


# 09:34:55 >  
# 09:34:55 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/export/scratch0/mk/dbfarm" --set 
"sql_logdir=/export/scratch0/mk/dblogs/logs/sql"  --set mapi_open=true --set 
xrpc_open=true --set mapi_port=34345 --set xrpc_port=41040 --set monet_prompt= 
--trace  "--dbname=mTests_src_test_BugTracker-2008" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 09:34:55 >  

# 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://eir.ins.cwi.nl:34345/
# MonetDB/SQL module v2.27.0 loaded

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

Over..

# 09:34:56 >  
# 09:34:56 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=34345 
# 09:34:56 >  


# 09:34:56 >  
# 09:34:56 >  Done.
# 09:34:56 >  


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


# 09:34:55 >  
# 09:34:55 >   mserver5 "--config=/ufs/mk/monet5//Linux/etc/monetdb5.conf" 
--debug=10 --set gdk_nr_threads=0 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/export/scratch0/mk/dbfarm" --set 
"sql_logdir=/export/scratch0/mk/dblogs/logs/sql"  --set mapi_open=true --set 
xrpc_open=true --set mapi_port=34345 --set xrpc_port=41040 --set monet_prompt= 
--trace  "--dbname=mTests_src_test_BugTracker-2008" --set mal_listing=0 
"--dbinit= include sql;" ; echo ; echo Over..
# 09:34:55 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.27.0
# builtin opt   monet_pid = 14323
# builtin opt   prefix = /ufs/mk/monet5//Linux
# 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/mk/monet5//Linux
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/mk/monet5//Linux
# config opt    exec_prefix = ${prefix}
# 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_init = ${exec_prefix}/lib/MonetDB5/sql_init.sql
# config opt    gdk_dbfarm = /export/scratch0/mk/dbfarm
# config opt    sql_logdir = /export/scratch0/mk/dblogs/logs/sql
# cmdline opt   config = /ufs/mk/monet5//Linux/etc/monetdb5.conf
# cmdline opt   gdk_nr_threads = 0
# cmdline opt   monet_mod_path = 
/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin
# cmdline opt   gdk_dbfarm = /export/scratch0/mk/dbfarm
# cmdline opt   sql_logdir = /export/scratch0/mk/dblogs/logs/sql
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 34345
# cmdline opt   xrpc_port = 41040
# 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/mk/monet5//Linux/etc/monetdb5.conf)

# 09:34:56 >  
# 09:34:56 >  mclient -lsql -umonetdb -Pmonetdb --host=eir --port=34345 
# 09:34:56 >  

MAPI  = mone...@eir:34345
QUERY = COPY 3 RECORDS INTO my_copytest FROM stdin USING DELIMITERS '|','\n'
ERROR = !SQLException:sql:value '1.01' while parsing '1.01||aaa|bbb' from line 
0 field 1 not inserted, expecting type int
        !SQLException:importTable:failed to import table
MAPI  = mone...@eir:34345
QUERY = 553|.02||aaa|bbb
ERROR = !current transaction is aborted (please ROLLBACK)
MAPI  = mone...@eir:34345
QUERY = abort;
ERROR = !current transaction is aborted (please ROLLBACK)

# 09:34:56 >  
# 09:34:56 >  Done.
# 09:34:56 >  



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

Reply via email to