Re: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-08 Thread Jeremy Orlow
On Thu, Jul 7, 2011 at 1:46 PM, Jonas Sicking jo...@sicking.cc wrote: On Wed, Jul 6, 2011 at 9:41 PM, Jeremy Orlow jor...@chromium.org wrote: On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.com We believe an error should be thrown because of the violation of the unique

Re: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-07 Thread Jonas Sicking
On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.com wrote: What is the expected behavior when calling update() in a cursor index that requires unique values.  Firefox allows the update, even when it results in a duplicate value.  Chrome throws an error event with the code

Re: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-07 Thread Jonas Sicking
On Wed, Jul 6, 2011 at 9:41 PM, Jeremy Orlow jor...@chromium.org wrote: On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.com We believe an error should be thrown because of the violation of the unique value index constraint and the error code should be set to CONSTRAINT_ERR.  

RE: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-07 Thread Israel Hilerio
On Thursday, July 07, 2011 1:46 PM, Jonas Sicking wrote: On Wed, Jul 6, 2011 at 9:41 PM, Jeremy Orlow jor...@chromium.org wrote: On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.com We believe an error should be thrown because of the violation of the unique value index

Re: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-07 Thread Jonas Sicking
On Thu, Jul 7, 2011 at 6:35 PM, Israel Hilerio isra...@microsoft.com wrote: On Thursday, July 07, 2011 1:46 PM, Jonas Sicking wrote: On Wed, Jul 6, 2011 at 9:41 PM, Jeremy Orlow jor...@chromium.org wrote: On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.com We believe an

[indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-06 Thread Israel Hilerio
What is the expected behavior when calling update() in a cursor index that requires unique values. Firefox allows the update, even when it results in a duplicate value. Chrome throws an error event with the code set to UNKNOWN_ERR. We believe an error should be thrown because of the violation

Re: [indexeddb] Calling update on a cursor index with a unique value constraint

2011-07-06 Thread Jeremy Orlow
On Wed, Jul 6, 2011 at 10:06 AM, Israel Hilerio isra...@microsoft.comwrote: What is the expected behavior when calling update() in a cursor index that requires unique values. Firefox allows the update, even when it results in a duplicate value. Chrome throws an error event with the code set