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

RE: [indexedDB] transaction.objectStore(...) method question

From: Israel Hilerio <israelh@microsoft.com>
Date: Tue, 26 Apr 2011 01:52:17 +0000
To: Jonas Sicking <jonas@sicking.cc>
CC: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <F695AF7AA77CC745A271AD0F61BBC61E3D02AB37@TK5EX14MBXC113.redmond.corp.microsoft.com>
On Monday, April 25, 2011, 6:37 PM, Jonas Sicking wrote:
> On Monday, April 25, 2011, Israel Hilerio <israelh@microsoft.com> wrote:
> > According to the objectStore method definition in IDBTransaction, the
> method will return the same IDBObjectStore everytime it is invoked.
> >
> > Imagine the situation when the transaction is aborted, what happens when
> I call the objectStore method from the IDBTransaction? My interpretation of
> the spec is that we will continue to return the same IDBObjectStore instance.
> >
> > However, the next time I use the IDBObjectStore instance to read or write a
> value to the db, I will get an exception because the "Steps for asynchronously
> executing a request" would fail with a "TRANSACTION_INACTIVE_ERR."
> >
> > Do you agree?
> 
> Yup!
> 
> / Jonas

Great!  I will work with Eliot to make a note on the spec about this.
Received on Tuesday, 26 April 2011 01:52:45 GMT

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