Update of /cvsroot/monetdb/MonetDB4/tests/BugsViaSourgeforce/Tests
In directory
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4702/tests/BugsViaSourgeforce/Tests
Added Files:
Tag: GDK-2
ID.1122410.milS ID.823516.milS
Removed Files:
Tag: GDK-2
ID.1122410.milM ID.823516.milM
Log Message:
propagated changes of Monday Sep 10 2007 - Tuesday Sep 18 2007
from the development trunk to the GDK-2 branch
--- NEW FILE: ID.1122410.milS ---
print(1);
# comment without trailing newline
--- NEW FILE: ID.823516.milS ---
module(xtables);
var b := new(oid, int).rename("b");
b.insert(oid(1), 1);
b.insert(oid(2), 2);
b.insert(oid(3), 3);
b.access(BAT_READ);
# Create a view bat
var c := b.select(int(nil), int(nil)).rename("c");
# print(b.info(),c.info());
# save the list of BATs
var pre := view_bbp_name().copy().rename("pre");
# build a histogram (accellerator)
# on both the original BAT and the view BAT
b.histogram().print();
c.histogram().print();
# remove both the view BAT and the original BAT
c := 0;
b := 0;
# check which BATs still exist
var post := view_bbp_name().copy().rename("post");
# both the original BAT and the view BAT
# are gone. correct.
kdiff(pre,post).reverse().project(nil).sort().reverse().print();
# the post BAT is new. correct.
# the histogram-accellerator BAT of the view
# didn't get removed and is still there. Wrong!
kdiff(post,pre).reverse().project(nil).sort().reverse().print();
--- ID.1122410.milM DELETED ---
--- ID.823516.milM DELETED ---
-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins