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

Modified Files:
        All 
Added Files:
        text.SQL.sh text.stable.err text.stable.out varchar.SQL.sh 
        varchar.stable.err varchar.stable.out 
Log Message:
add varchar and text tests

U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/pg_regress/Tests/All,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- All 1 Aug 2009 20:19:26 -0000       1.4
+++ All 1 Aug 2009 20:29:39 -0000       1.5
@@ -1,6 +1,10 @@
 load
-# needs to go here, later tests depend on char_tbl to exist
+
+# these need to go here, later tests depend on their tables to exist
 char
+varchar
+text
+
 strings_concat
 strings_cast
 strings_like

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


# 22:22:59 >  
# 22:22:59 >   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=30462 --set 
xrpc_port=40583 --set monet_prompt= --trace  
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include 
sql;" ; echo ; echo Over..
# 22:22:59 >  

# 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:30462/
# MonetDB/SQL module v2.31.0 loaded

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

Over..

# 22:22:59 >  
# 22:22:59 >  ./varchar.SQL.sh varchar 
# 22:22:59 >  


# 22:22:59 >  
# 22:22:59 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=pegasus --port=30462  -e < 
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/varchar.sql
# 22:22:59 >  

#--
#-- VARCHAR
#--
#CREATE TABLE VARCHAR_TBL(f1 varchar(1));
[ 1     ]
[ 1     ]
#-- any of the following three input formats are acceptable 
[ 1     ]
[ 1     ]
[ 1     ]
#-- zero-length char 
[ 1     ]
#-- try varchar's of greater than 1 length 
#INSERT INTO VARCHAR_TBL (f1) VALUES ('cd');
#INSERT INTO VARCHAR_TBL (f1) VALUES ('c     ');
#SELECT '' AS seven, VARCHAR_TBL.* FROM VARCHAR_TBL;
% .,    sys.varchar_tbl # table_name
% seven,        f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "a"     ]
[ "",   "A"     ]
[ "",   "1"     ]
[ "",   "2"     ]
[ "",   "3"     ]
[ "",   ""      ]
#SELECT '' AS six, c.*
% .,    sys.c # table_name
% six,  f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "A"     ]
[ "",   "1"     ]
[ "",   "2"     ]
[ "",   "3"     ]
[ "",   ""      ]
#SELECT '' AS one, c.*
% .,    sys.c # table_name
% one,  f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "a"     ]
#SELECT '' AS five, c.*
% .,    sys.c # table_name
% five, f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "A"     ]
[ "",   "1"     ]
[ "",   "2"     ]
[ "",   "3"     ]
[ "",   ""      ]
#SELECT '' AS six, c.*
% .,    sys.c # table_name
% six,  f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "a"     ]
[ "",   "A"     ]
[ "",   "1"     ]
[ "",   "2"     ]
[ "",   "3"     ]
[ "",   ""      ]
#SELECT '' AS one, c.*
% .,    sys.c # table_name
% one,  f1 # name
% char, varchar # type
% 0,    0 # length
#SELECT '' AS two, c.*
% .,    sys.c # table_name
% two,  f1 # name
% char, varchar # type
% 0,    1 # length
[ "",   "a"     ]
#DROP TABLE VARCHAR_TBL;
#--
#-- Now test longer arrays of char
#--
#CREATE TABLE VARCHAR_TBL(f1 varchar(4));
[ 1     ]
[ 1     ]
[ 1     ]
#INSERT INTO VARCHAR_TBL (f1) VALUES ('abcde');
#INSERT INTO VARCHAR_TBL (f1) VALUES ('abcd    ');
#SELECT '' AS four, VARCHAR_TBL.* FROM VARCHAR_TBL;
% .,    sys.varchar_tbl # table_name
% four, f1 # name
% char, varchar # type
% 0,    4 # length
[ "",   "a"     ]
[ "",   "ab"    ]
[ "",   "abcd"  ]
#DROP TABLE VARCHAR_TBL;

# 22:22:59 >  
# 22:22:59 >  Done.
# 22:22:59 >  


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


# 22:26:27 >  
# 22:26:27 >   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=35864 --set 
xrpc_port=45235 --set monet_prompt= --trace  
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include 
sql;" ; echo ; echo Over..
# 22:26:27 >  

# 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 = 35864
# cmdline opt   xrpc_port = 45235
# 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:26:27 >  
# 22:26:27 >  ./text.SQL.sh text 
# 22:26:27 >  


# 22:26:27 >  
# 22:26:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=pegasus --port=35864  -e < 
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/text.sql
# 22:26:27 >  

MAPI  = mone...@pegasus:35864
QUERY = SELECT text 'this is a text string' = text 'this is a text string' AS 
true;
ERROR = !syntax error, unexpected CLOB in: "select text"
MAPI  = mone...@pegasus:35864
QUERY = SELECT text 'this is a text string' = text 'this is a text strin' AS 
false;
ERROR = !syntax error, unexpected CLOB in: "select text"

# 22:26:27 >  
# 22:26:27 >  Done.
# 22:26:27 >  


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


# 22:26:27 >  
# 22:26:27 >   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=35864 --set 
xrpc_port=45235 --set monet_prompt= --trace  
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include 
sql;" ; echo ; echo Over..
# 22:26:27 >  

# 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:35864/
# MonetDB/SQL module v2.31.0 loaded

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

Over..

# 22:26:27 >  
# 22:26:27 >  ./text.SQL.sh text 
# 22:26:27 >  


# 22:26:27 >  
# 22:26:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=pegasus --port=35864  -e < 
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/text.sql
# 22:26:27 >  

#--
#-- TEXT
#--
#SELECT text 'this is a text string' = text 'this is a text string' AS true;
#SELECT text 'this is a text string' = text 'this is a text strin' AS false;
#CREATE TABLE TEXT_TBL (f1 text);
[ 1     ]
[ 1     ]
#SELECT '' AS two, * FROM TEXT_TBL;
[ output should go here ]

# 22:26:27 >  
# 22:26:27 >  Done.
# 22:26:27 >  


--- NEW FILE: text.SQL.sh ---
#!/usr/bin/env bash

Mlog -x "$SQL_CLIENT -e < $RELSRCDIR/../monetdb/$TST.sql"

--- NEW FILE: varchar.SQL.sh ---
#!/usr/bin/env bash

Mlog -x "$SQL_CLIENT -e < $RELSRCDIR/../monetdb/$TST.sql"

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


# 22:22:59 >  
# 22:22:59 >   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=30462 --set 
xrpc_port=40583 --set monet_prompt= --trace  
"--dbname=mTests_src_test_pg_regress" --set mal_listing=0 "--dbinit= include 
sql;" ; echo ; echo Over..
# 22:22:59 >  

# 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 = 30462
# cmdline opt   xrpc_port = 40583
# 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:22:59 >  
# 22:22:59 >  ./varchar.SQL.sh varchar 
# 22:22:59 >  


# 22:22:59 >  
# 22:22:59 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=pegasus --port=30462  -e < 
../../../../../../../../../../mirror/fabian/monetdb/current/sql/src/test/pg_regress/Tests/../monetdb/varchar.sql
# 22:22:59 >  

MAPI  = mone...@pegasus:30462
QUERY = INSERT INTO VARCHAR_TBL (f1) VALUES ('cd');
ERROR = !SQLException:str_cast:value too long for type (var)char(1)
MAPI  = mone...@pegasus:30462
QUERY = INSERT INTO VARCHAR_TBL (f1) VALUES ('c     ');
ERROR = !SQLException:str_cast:value too long for type (var)char(1)
MAPI  = mone...@pegasus:30462
QUERY = INSERT INTO VARCHAR_TBL (f1) VALUES ('abcde');
ERROR = !SQLException:str_cast:value too long for type (var)char(4)
MAPI  = mone...@pegasus:30462
QUERY = INSERT INTO VARCHAR_TBL (f1) VALUES ('abcd    ');
ERROR = !SQLException:str_cast:value too long for type (var)char(4)

# 22:22:59 >  
# 22:22:59 >  Done.
# 22:22:59 >  



------------------------------------------------------------------------------
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

Reply via email to