Re: [IndexedDB] Multientry with invalid keys

Crap, we need to better about filing bugs :-)

Yes, my understanding is that there was agreement to update the spec such
that if evaluating and index's keyPath does not yield a valid key that does
not affect weather the value is inserted in the objectStore.

In other words, indexes do not add constraints other than when explicitly
called out using the 'unique' feature.

My logic was that it would be consistent with this behaviour to ignore any
invalid keys in a multiEntry index rather than to throw the whole thing out.

If people are on with this ill edit this into the spec over the weekend.

/ Jonas

On Saturday, March 3, 2012, Israel Hilerio wrote:

>  I’ve created a bug to track this issue:****
>
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=16211****
>
> ** **
>
> Israel****
>
> ** **
>
> On Friday, March 02, 2012 4:39 PM, Odin Hørthe Omdal wrote:****
>
> From: "Israel Hilerio" <israelh@microsoft.com <javascript:_e({}, 'cvml',
> 'israelh@microsoft.com');>>****
>
> > Unfortunately, we didn’t update the spec to reflect this agreement.****
>
> > You or I could open a bug to ensure the spec is updated to capture****
>
> > this change.****
>
> ** **
>
> Yes, better get it into the spec :-)****
>
> ** **
>
> About the behavior itself, FWIW, I think it's a reasonable one.****
>
> ** **
>
> --****
>
> Odin, Opera****
>

Received on Saturday, 3 March 2012 01:43:14 UTC