Re: Re: Maybe problems with Metakit 2.4.9.3
"Brian Kelley" <[email protected]>
| Newsgroups | gmane.comp.db.metakit |
|---|---|
| Message-ID | <[email protected]> |
I have some test more test cases for blocked ordered views that fail.
Here is a nice juicy one suitable for debugging. Only the
blocked.ordered() views fail.
As a further mystery, in some cases find fails for a blocked ordered
view for two integer columns if the second one is negative.
import metakit
st = metakit.storage()
vw = st.getas("test[_B[a:I,b:I]]").blocked().ordered()
vw.append((1,1))
vw.append((2,-1))
vw.append((3,2))
# positive second columns are okay
assert vw.find(a=3, b=2) != -1
assert vw.search(a=3) != -1
assert vw.find(a=2, b=-1) != -1
assert vw.search(a=2) != -1
# find now fails - negative second column is bad :(
assert vw.find(a=2) != -1
_____________________________________________
Metakit mailing list - [email protected]
http://www.equi4.com/mailman/listinfo/metakit