Update of /cvsroot/monetdb/sql/src/test/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7880
Modified Files:
All
Added Files:
copy_into.sql copy_into.stable.err copy_into.stable.out
Log Message:
added example/test for copy to and from file.
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/Tests/All,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- All 14 Dec 2007 20:40:14 -0000 1.49
+++ All 4 Jan 2008 21:13:53 -0000 1.50
@@ -91,3 +91,4 @@
NOT_WIN32?crashme
NOT_WIN32?50ways
load_with_offset
+copy_into
--- NEW FILE: copy_into.stable.err ---
stderr of test 'copy_into` in directory 'src/test` itself:
# 22:07:46 >
# 22:07:46 > Mserver
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/MonetDB.conf" --debug=10
--set
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/dbfarm"
--set
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/sql_logs"
--set
"xquery_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/xquery_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38816 --set
xrpc_port=42827 --set monet_prompt= --trace "--dbname=mTests_src_test"
"--dbinit= module(sql_server);" ; echo ; echo Over..
# 22:07:46 >
# 22:07:47 >
# 22:07:47 > mclient -lsql -umonetdb -Pmonetdb --host=koala --port=38816
# 22:07:47 >
# 22:07:47 >
# 22:07:47 > Done.
# 22:07:47 >
--- NEW FILE: copy_into.stable.out ---
stdout of test 'copy_into` in directory 'src/test` itself:
# 22:07:46 >
# 22:07:46 > Mserver
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/MonetDB.conf" --debug=10
--set
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB4/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/dbfarm"
--set
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/sql_logs"
--set
"xquery_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB4/xquery_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=38816 --set
xrpc_port=42827 --set monet_prompt= --trace "--dbname=mTests_src_test"
"--dbinit= module(sql_server);" ; echo ; echo Over..
# 22:07:46 >
# MonetDB Server v4.21.0
# based on GDK v1.21.0
# Copyright (c) 1993-2007, CWI. All rights reserved.
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs; dynamically
linked.
# Visit http://monetdb.cwi.nl/ for further information.
# MonetDB/SQL module v2.21.0 loaded
printf("\nReady.\n");
Ready.
quit();
Over..
# 22:07:47 >
# 22:07:47 > mclient -lsql -umonetdb -Pmonetdb --host=koala --port=38816
# 22:07:47 >
[ 1 ]
[ 1 ]
[ 1 ]
[ 1 ]
% sys.copyouttest, sys.copyouttest # table_name
% str, str2 # name
% varchar, varchar # type
% 6, 4 # length
[ "", "test" ]
[ "test", "" ]
[ "", "" ]
[ " Test ", "" ]
[ 4 ]
[ 4 ]
% sys.copyintest, sys.copyintest # table_name
% str, str2 # name
% varchar, varchar # type
% 6, 4 # length
[ "", "test" ]
[ "test", "" ]
[ "", "" ]
[ " Test ", "" ]
# 22:07:47 >
# 22:07:47 > Done.
# 22:07:47 >
--- NEW FILE: copy_into.sql ---
create table copyouttest ( str VARCHAR(20), str2 VARCHAR(20));
insert into copyouttest values ('', 'test');
insert into copyouttest values ('test', '');
insert into copyouttest values ('','');
insert into copyouttest values (' Test ','');
select * from copyouttest;
copy select * from copyouttest into 'x.dat' delimiters '[]', '\n';
drop table copyouttest;
create table copyintest ( str VARCHAR(20), str2 VARCHAR(20));
copy into copyintest from 'x.dat' delimiters '[]', '\n';
select * from copyintest;
drop table copyintest;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins