Bugs item #1964658, was opened at 2008-05-15 17:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1964658&group_id=56967
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB4 CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marcin Zukowski (e-r00)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with names of reverse()'d BATs.
Initial Comment:
I have a MIL operator that requires a bat name as a parameter. Later, this bat
name is used to retrieve the actual bat and do something with it.
If I have a BAT as a variable in MIL, I typically do the following:
var batId := b.bbpname();
operator(batId);
However, if batId is a result of a reverse() operation, as in:
var a := bat(void, int);
var b := a.reverse();
now both a.bbpname() and b.bbpname() are the same. If I give b to the operator,
and then search for it with BBPindex (in C), I get a, not b.
Any way to avoid this ambiguity? And please, I don't consider rename() the
solution - it's just oh-so-unsafe, example:
var x := new(void, int);
x.rename("A");
x.info().find("batId").print(); # A
var y := x.reverse();
y.info().find("batId").print(); # A
y.rename("B");
y.info().find("batId").print(); # B
var z := y.reverse();
z.info().find("batId").print(); # A
z.rename("C");
z.info().find("batId").print(); # C
x.info().find("batId").print(); # C (!!!)
Above can be seen as a bug by itself probably
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1964658&group_id=56967
-------------------------------------------------------------------------
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-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs