W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2010

Re: [IndexedDB] Re: [Bug 9882] New: Behavior when attempting to write data to an objectStore opened as read only unspecified

From: Jeremy Orlow <jorlow@chromium.org>
Date: Tue, 8 Jun 2010 19:08:17 +0100
Message-ID: <AANLkTikprDN0b_Wz1T2BdtJT4NxD_0w7NFgFbJVvcwx4@mail.gmail.com>
To: Shawn Wilsher <sdwilsh@mozilla.com>
Cc: public-webapps@w3.org
On Tue, Jun 8, 2010 at 6:56 PM, Shawn Wilsher <sdwilsh@mozilla.com> wrote:

> On 6/8/2010 10:22 AM, bugzilla@jessica.w3.org wrote:
>
>> When you open an objectStore with a read only mode, any subsequent write
>> operation should probably result in an error.  I don't see anywhere in the
>> spec
>> that specifically says this or mentions what error code should be used.
>> Currently in the spec, writing with the noOverwrite flag set causes a
>> CONSTRAINT_ERR, so I'm guessing that's the best one to go with for this
>> condition as well?
>>
> What about just creating a new error code for this?  I don't like
> overloading error codes here for different meanings (while I can see how
> someone might view this as a constraint error, I think we could do better).
>  New error codes are cheap, right?
>

Good point.  Do you have a suggestion for the name?
Received on Tuesday, 8 June 2010 18:09:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:38 GMT