Update of /cvsroot/monetdb/sql/src/test/mapi/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28910

Modified Files:
      Tag: SQL_2-24
        All 
Added Files:
      Tag: SQL_2-24
        utf8test.SQL.bat utf8test.SQL.sh utf8test.stable.err 
        utf8test.stable.out 
Log Message:
Added test to test mclient's ability to cope with accented characters.

--- NEW FILE: utf8test.SQL.bat ---
@echo on
@prompt # $t $g  

%SQL_CLIENT% -s "create table utf8test (s varchar(50))"
%SQL_CLIENT% -s "insert into utf8test values ('value without special 
characters')"
%SQL_CLIENT% -s "insert into utf8test values ('funny characters: àáâãäå')"
%SQL_CLIENT% -fraw -s "select * from utf8test"
%SQL_CLIENT% -fsql -s "select * from utf8test"
%SQL_CLIENT% -fraw -Eiso-8859-1 -s "select * from utf8test"
%SQL_CLIENT% -fsql -Eiso-8859-1 -s "select * from utf8test"
%SQL_CLIENT% -s "drop table utf8test"

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


# 10:26:27 >  
# 10:26:27 >   mserver5 
"--config=/ufs/sjoerd/Monet-virgin-stable/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/lib:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/bin"
 --set 
"gdk_dbfarm=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/dbfarm"
 --set 
"sql_logdir=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/sql_logs"
 --set 
"xquery_logdir=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/xquery_logs"
 --set mapi_open=true --set xrpc_open=true --set mapi_port=32641 --set 
xrpc_port=40706 --set monet_prompt= --trace  "--dbname=mTests_src_test_mapi" 
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 10:26:27 >  





# MonetDB server v5.6.1, based on kernel v1.24.1
# Serving database 'mTests_src_test_mapi'
# Compiled for x86_64-unknown-linux-gnu/64bit with 32bit 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://ottar.ins.cwi.nl:32641/
# MonetDB/SQL module v2.24.1 loaded

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

Over..

# 10:26:27 >  
# 10:26:27 >  ./utf8test.SQL.sh utf8test 
# 10:26:27 >  


# 10:26:27 >  
# 10:26:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s 'create table utf8test (s varchar(50))'
# 10:26:27 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s "insert into utf8test values ('value without 
special characters')"
# 10:26:28 >  

[ 1     ]

# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s "insert into utf8test values ('funny characters: 
àáâãäå')"
# 10:26:28 >  

[ 1     ]

# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -fraw -s 'select * from utf8test'
# 10:26:28 >  

% sys.utf8test # table_name
% s # name
% varchar # type
% 32 # length
[ "value without special characters"    ]
[ "funny characters: àáâãäå"      ]

# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -fsql -s 'select * from utf8test'
# 10:26:28 >  

+----------------------------------+
| s                                |
+==================================+
| value without special characters |
| funny characters: àáâãäå         |
+----------------------------------+

# 10:28:27 >  
# 10:28:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=31669  -fraw -Eiso-8859-1 -s 'select * from utf8test'
# 10:28:27 >  

% sys.utf8test # table_name
% s # name
% varchar # type
% 32 # length
[ "value without special characters"    ]
[ "funny characters: àáâãäå"    ]

# 10:28:27 >  
# 10:28:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=31669  -fsql -Eiso-8859-1 -s 'select * from utf8test'
# 10:28:27 >  

+----------------------------------+
| s                                |
+==================================+
| value without special characters |
| funny characters: àáâãäå         |
+----------------------------------+

# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s 'drop table utf8test'
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Done.
# 10:26:28 >  


U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/mapi/Tests/All,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -u -d -r1.4 -r1.4.4.1
--- All 24 Oct 2007 08:01:24 -0000      1.4
+++ All 12 Sep 2008 08:30:45 -0000      1.4.4.1
@@ -10,4 +10,4 @@
 HAVE_PYTHON_SWIG?python_dbapi
 HAVE_PYTHON_SWIG?python_dbapi_embedded
 HAVE_PHP?php_monetdb
-
+utf8test

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


# 10:26:27 >  
# 10:26:27 >   mserver5 
"--config=/ufs/sjoerd/Monet-virgin-stable/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/lib:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/bin"
 --set 
"gdk_dbfarm=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/dbfarm"
 --set 
"sql_logdir=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/sql_logs"
 --set 
"xquery_logdir=/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/xquery_logs"
 --set mapi_open=true --set xrpc_open=true --set mapi_port=32641 --set 
xrpc_port=40706 --set monet_prompt= --trace  "--dbname=mTests_src_test_mapi" 
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 10:26:27 >  

# builtin opt   gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt   gdk_version = 1.24.1
# builtin opt   monet_pid = 4008
# builtin opt   prefix = /ufs/sjoerd/Monet-virgin-stable
# 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 = ${prefix}/lib64/MonetDB:${prefix}/lib64/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/sql_logs
# builtin opt   xquery_logdir = ${prefix}/var/MonetDB/xquery_logs
# builtin opt   standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt   standoff_start = start
# builtin opt   standoff_end = end
# config opt    prefix = /ufs/sjoerd/Monet-virgin-stable
# config opt    config = ${prefix}/etc/monetdb5.conf
# config opt    prefix = /ufs/sjoerd/Monet-virgin-stable
# 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 = 
${prefix}/lib64/MonetDB5:${prefix}/lib64/MonetDB5/lib:${prefix}/lib64/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 = ${prefix}/lib64/MonetDB5/mal_init.mal
# config opt    mal_listing = 15
# config opt    checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt    mapi_port = 50000
# config opt    mapi_open = false
# config opt    sql_debug = 0
# config opt    sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt    sql_init = ${prefix}/lib64/MonetDB5/sql_init.sql
# cmdline opt   config = /ufs/sjoerd/Monet-virgin-stable/etc/monetdb5.conf
# cmdline opt   monet_mod_path = 
/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5/.libs:/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/src/backends/monet5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/lib:/ufs/sjoerd/Monet-virgin-stable/lib64/MonetDB5/bin
# cmdline opt   gdk_dbfarm = 
/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/dbfarm
# cmdline opt   sql_logdir = 
/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/sql_logs
# cmdline opt   xquery_logdir = 
/ufs/sjoerd/src/MonetDB/virgin-stable/sql/x86_64-unknown-linux-gnu/xquery_logs
# cmdline opt   mapi_open = true
# cmdline opt   xrpc_open = true
# cmdline opt   mapi_port = 32641
# cmdline opt   xrpc_port = 40706
# cmdline opt   monet_prompt = 
# cmdline opt   gdk_dbname = mTests_src_test_mapi
# cmdline opt   mal_listing = 0
# cmdline opt   gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/sjoerd/Monet-virgin-stable/etc/monetdb5.conf)

# 10:26:27 >  
# 10:26:27 >  ./utf8test.SQL.sh utf8test 
# 10:26:27 >  


# 10:26:27 >  
# 10:26:27 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s 'create table utf8test (s varchar(50))'
# 10:26:27 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s "insert into utf8test values ('value without 
special characters')"
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s "insert into utf8test values ('funny characters: 
àáâãäå')"
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -fraw -s 'select * from utf8test'
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -fsql -s 'select * from utf8test'
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -fsql -Eiso-8859-1 -s 'select * from utf8test'
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Mtimeout -timeout 60 mclient -lsql -umonetdb -Pmonetdb 
--host=ottar --port=32641  -s 'drop table utf8test'
# 10:26:28 >  


# 10:26:28 >  
# 10:26:28 >  Done.
# 10:26:28 >  


--- NEW FILE: utf8test.SQL.sh ---
(This appears to be a binary file; contents omitted.)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to