Update of /cvsroot/monetdb/sql/src/test/pg_regress/Tests
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv14183/Tests
Modified Files:
All
Added Files:
char.SQL.sh char.stable.err char.stable.out
Log Message:
add char test, with manually annotated stable output
--- NEW FILE: char.stable.out ---
stdout of test 'char` in directory 'src/test/pg_regress` itself:
# 22:08:26 >
# 22:08:26 > mserver5
"--config=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf"
--debug=10 --set gdk_nr_threads=0 --set
"monet_mod_path=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin"
--set
"gdk_dbfarm=/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38104 --set
xrpc_port=41400 --set monet_prompt= --trace
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include
sql;" ; echo ; echo Over..
# 22:08:26 >
# MonetDB server v5.13.0, based on kernel v1.31.0
# Serving database 'mTests_src_test_pg_regress', using 1 thread
# Compiled for x86_64-pc-solaris2.11/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://pegasus.ins.cwi.nl:38104/
# MonetDB/SQL module v2.31.0 loaded
Ready.
#function user.main():void;
# clients.quit();
#end main;
Over..
# 22:08:26 >
# 22:08:26 > ./char.SQL.sh char
# 22:08:26 >
# 22:08:26 >
# 22:08:26 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=38104 -e <
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/char.sql
# 22:08:26 >
#--
#-- CHAR
#--
#-- fixed-length by value
#-- internally passed by value if <= 4 bytes in storage
#SELECT char 'c' = char 'c' AS true;
#--
#-- Build a table for testing
#--
#CREATE TABLE CHAR_TBL(f1 char);
[ 1 ]
[ 1 ]
#-- any of the following three input formats are acceptable
[ 1 ]
[ 1 ]
[ 1 ]
#-- zero-length char
[ 1 ]
#-- try char's of greater than 1 length
#INSERT INTO CHAR_TBL (f1) VALUES ('cd');
#INSERT INTO CHAR_TBL (f1) VALUES ('c ');
#SELECT '' AS seven, CHAR_TBL.*;
[ output needs to go here ]
#SELECT '' AS six, c.*
% ., sys.c # table_name
% six, f1 # name
% char, char # type
% 0, 1 # length
[ "", "A" ]
[ "", "1" ]
[ "", "2" ]
[ "", "3" ]
[ "", "" ]
#SELECT '' AS one, c.*
% ., sys.c # table_name
% one, f1 # name
% char, char # type
% 0, 1 # length
[ "", "a" ]
#SELECT '' AS five, c.*
% ., sys.c # table_name
% five, f1 # name
% char, char # type
% 0, 1 # length
[ "", "A" ]
[ "", "1" ]
[ "", "2" ]
[ "", "3" ]
[ "", "" ]
#SELECT '' AS six, c.*
% ., sys.c # table_name
% six, f1 # name
% char, char # type
% 0, 1 # length
[ "", "a" ]
[ "", "A" ]
[ "", "1" ]
[ "", "2" ]
[ "", "3" ]
[ "", "" ]
#SELECT '' AS one, c.*
% ., sys.c # table_name
% one, f1 # name
% char, char # type
% 0, 1 # length
#SELECT '' AS two, c.*
% ., sys.c # table_name
% two, f1 # name
% char, char # type
% 0, 1 # length
[ "", "a" ]
#DROP TABLE CHAR_TBL;
#--
#-- Now test longer arrays of char
#--
#CREATE TABLE CHAR_TBL(f1 char(4));
[ 1 ]
[ 1 ]
[ 1 ]
#INSERT INTO CHAR_TBL (f1) VALUES ('abcde');
#INSERT INTO CHAR_TBL (f1) VALUES ('abcd ');
#SELECT '' AS four, CHAR_TBL.*;
[ output should go here ]
# 22:08:26 >
# 22:08:26 > Done.
# 22:08:26 >
--- NEW FILE: char.stable.err ---
stderr of test 'char` in directory 'src/test/pg_regress` itself:
# 22:08:26 >
# 22:08:26 > mserver5
"--config=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf"
--debug=10 --set gdk_nr_threads=0 --set
"monet_mod_path=/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin"
--set
"gdk_dbfarm=/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38104 --set
xrpc_port=41400 --set monet_prompt= --trace
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include
sql;" ; echo ; echo Over..
# 22:08:26 >
# builtin opt gdk_arch = 64bitx86_64-pc-solaris2.11
# builtin opt gdk_version = 1.31.0
# builtin opt prefix =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# 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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# config opt config = ${prefix}/etc/monetdb5.conf
# config opt prefix =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc
# 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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/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 =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf
# cmdline opt gdk_nr_threads = 0
# cmdline opt monet_mod_path =
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/lib:/export/scratch/stripe/fabian/monetdb/current/program-i86pc/lib/MonetDB5/bin
# cmdline opt gdk_dbfarm =
/export/scratch/stripe/fabian/monetdb/current/mtest-pegasus.ins.cwi.nl/sql/dbfarm
# cmdline opt mapi_open = true
# cmdline opt xrpc_open = true
# cmdline opt mapi_port = 38104
# cmdline opt xrpc_port = 41400
# cmdline opt monet_prompt =
# cmdline opt gdk_dbname = mTests_src_test_pg_regress
# cmdline opt mal_listing = 0
#warning: please don't forget to set your vault key!
#(see
/export/scratch/stripe/fabian/monetdb/current/program-i86pc/etc/monetdb5.conf)
# 22:08:26 >
# 22:08:26 > ./char.SQL.sh char
# 22:08:26 >
# 22:08:26 >
# 22:08:26 > Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb
--host=pegasus --port=38104 -e <
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/char.sql
# 22:08:26 >
MAPI = mone...@pegasus:38104
QUERY = SELECT char 'c' = char 'c' AS true;
ERROR = !syntax error, unexpected CHARACTER in: "select char"
MAPI = mone...@pegasus:38104
QUERY = INSERT INTO CHAR_TBL (f1) VALUES ('cd');
ERROR = !SQLException:str_cast:value too long for type (var)char(1)
MAPI = mone...@pegasus:38104
QUERY = INSERT INTO CHAR_TBL (f1) VALUES ('c ');
ERROR = !SQLException:str_cast:value too long for type (var)char(1)
MAPI = mone...@pegasus:38104
QUERY = INSERT INTO CHAR_TBL (f1) VALUES ('abcde');
ERROR = !SQLException:str_cast:value too long for type (var)char(4)
MAPI = mone...@pegasus:38104
QUERY = INSERT INTO CHAR_TBL (f1) VALUES ('abcd ');
ERROR = !SQLException:str_cast:value too long for type (var)char(4)
# 22:08:26 >
# 22:08:26 > Done.
# 22:08:26 >
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/pg_regress/Tests/All,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- All 1 Aug 2009 20:01:29 -0000 1.3
+++ All 1 Aug 2009 20:19:26 -0000 1.4
@@ -1,3 +1,6 @@
load
+# needs to go here, later tests depend on char_tbl to exist
+char
strings_concat
+strings_cast
strings_like
--- NEW FILE: char.SQL.sh ---
#!/usr/bin/env bash
Mlog -x "$SQL_CLIENT -e < $RELSRCDIR/../monetdb/$TST.sql"
------------------------------------------------------------------------------
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