Changeset: 1c06075da019 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1c06075da019
Modified Files:
        sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
        sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.stable.out
Branch: Feb2013
Log Message:

crash_on_concurrent_use.SF-1411926: updated test according to recent Python API 
changes:
>From bug 3254:
"
Previously the API would accept multiple queries, as long as no multiple
SELECTs where executed with different column type and count. The results
returned by fetchall() would give the latest result of a SELECT.

This behavior has changed, that you can do as many weird queries as you want in
one execute() statement. fetchall() returns the results of the lasts query,
which in this case is "DROP table t1", which should return nothing.

I think the test is a valid test again by removing the "DROP TABLE t1"
statement, since this is done in a uncommited transaction anyway.
"


diffs (32 lines):

diff --git 
a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py 
b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
--- a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
+++ b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.SQL.py
@@ -14,7 +14,7 @@ insert into t1 values(8);
 insert into t1 values(9);
 insert into t1 values(0);
 select * from t1;
-drop table t1;
+--drop table t1;
 '''
 
 class Client(threading.Thread):
diff --git 
a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.stable.out 
b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.stable.out
--- a/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.stable.out
+++ b/sql/test/concurrent/Tests/crash_on_concurrent_use.SF-1411926.stable.out
@@ -19,11 +19,11 @@ Ready.
 # 11:01:29 >  "/usr/bin/python" "crash_on_concurrent_use.SF-1411926.SQL.py" 
"crash_on_concurrent_use.SF-1411926"
 # 11:01:29 >  
 
-(0, [(32,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
-(1, [(32,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
-(2, [(32,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
-(3, [(32,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
-(4, [(32,), (1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
+(0, [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
+(1, [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
+(2, [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
+(3, [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
+(4, [(1,), (2,), (3,), (4,), (5,), (6,), (7,), (8,), (9,), (0,)])
 
 # 11:01:30 >  
 # 11:01:30 >  "Done."
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to