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

Modified Files:
        All 
Added Files:
        alter_drop_column_insert_crash.sql 
        alter_drop_column_insert_crash.stable.err 
        alter_drop_column_insert_crash.stable.out 
Log Message:
Add test for a crash 'alter add column /drop column / insert  crashes'


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


# 10:07:25 >  
# 10:07:25 >   mserver5 
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/dbfarm" 
--set 
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=39781 --set 
xrpc_port=48413 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs" 
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 10:07:25 >  

#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf)

# 10:07:25 >  
# 10:07:25 >  mclient -lsql -umonetdb -Pmonetdb --host=koala --port=39781 
# 10:07:25 >  


# 10:07:25 >  
# 10:07:25 >  Done.
# 10:07:25 >  


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


# 10:07:25 >  
# 10:07:25 >   mserver5 
"--config=/ufs/niels/scratch/monetdb/Linux-x86_64/etc/monetdb5.conf" --debug=10 
--set 
"monet_mod_path=/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/monetdb/Linux-x86_64/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/dbfarm" 
--set 
"sql_logdir=/ufs/niels/scratch/monetdb/Linux-x86_64/var/MonetDB5/sql_logs"  
--set mapi_open=true --set xrpc_open=true --set mapi_port=39781 --set 
xrpc_port=48413 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs" 
--set mal_listing=0 "--dbinit= include sql;" ; echo ; echo Over..
# 10:07:25 >  

# MonetDB server v5.3.0, based on kernel v1.21.0
# Serving database 'mTests_src_test_bugs'
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2007 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://koala.ins.cwi.nl:39781/
# MonetDB/SQL module v2.21.0 loaded

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

Over..

# 10:07:25 >  
# 10:07:25 >  mclient -lsql -umonetdb -Pmonetdb --host=koala --port=39781 
# 10:07:25 >  

[ 1     ]
[ 1     ]
[ 1     ]
% sys.test01,   sys.test01 # table_name
% col1, col2 # name
% int,  int # type
% 1,    1 # length
[ 1,    2       ]
[ 3,    4       ]
[ 5,    6       ]
% sys.test01,   sys.test01,     sys.test01 # table_name
% col1, col2,   col3 # name
% int,  int,    int # type
% 1,    1,      1 # length
[ 1,    2,      NULL    ]
[ 3,    4,      NULL    ]
[ 5,    6,      NULL    ]
[ 1     ]
[ 1     ]
[ 1     ]
% sys.test01,   sys.test01,     sys.test01 # table_name
% col1, col2,   col3 # name
% int,  int,    int # type
% 1,    1,      1 # length
[ 1,    2,      NULL    ]
[ 3,    4,      NULL    ]
[ 5,    6,      NULL    ]
[ 1,    2,      3       ]
[ 3,    4,      5       ]
[ 5,    6,      7       ]
[ 1     ]
% sys.test01,   sys.test01 # table_name
% col1, col3 # name
% int,  int # type
% 1,    1 # length
[ 1,    NULL    ]
[ 3,    NULL    ]
[ 5,    NULL    ]
[ 1,    3       ]
[ 3,    5       ]
[ 5,    7       ]
[ 7,    8       ]

# 10:07:25 >  
# 10:07:25 >  Done.
# 10:07:25 >  


Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/bugs/Tests/All,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -d -r1.105 -r1.106
--- All 29 Jan 2008 22:06:57 -0000      1.105
+++ All 30 Jan 2008 09:10:34 -0000      1.106
@@ -78,3 +78,4 @@
 not_in_null_bug
 copy_into_quote
 alter_add_column-bug
+alter_drop_column_insert_crash

--- NEW FILE: alter_drop_column_insert_crash.sql ---
CREATE TABLE test01 ( col1 INT, col2 INT ) ;

INSERT INTO test01 VALUES (1,2) ;
INSERT INTO test01 VALUES (3,4) ;
INSERT INTO test01 VALUES (5,6) ;

select * from test01;

ALTER TABLE test01 ADD COLUMN col3 INT ;

select * from test01;

INSERT INTO test01 VALUES (1,2,3) ;
INSERT INTO test01 VALUES (3,4,5) ;
INSERT INTO test01 VALUES (5,6,7) ;

select * from test01;

ALTER TABLE test01 DROP COLUMN col2 ;

INSERT INTO test01 VALUES (7,8) ;

select * from test01;

DROP   TABLE test01 ;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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

Reply via email to