W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Indexed database API autoIncrement

From: Futomi Hatano <info@html5.jp>
Date: Sun, 23 Oct 2011 20:20:06 +0900
To: public-webapps@w3.org
Message-Id: <20111023202006.699B.C8DE7135@html5.jp>
Hello everyone,

I'm not a W3C member, can I send a mail to the list?

I've tried to use Indexed database API using IE10 PP3 and Chrome 16 dev.
I found a different behavior between the two.
I set autoIncrement to true when I created a Object Store as below.

var store = db.createObjectStore(store_name, { keyPath: 'id', autoIncrement: true });

Then, I added some records.

IE10 PP3 set the key value of the first recored to 0, while Chrome 16 set it to 1.
Which is correct?
I couldn't find the definition about this in the spec.
The first value of autoIncrement should be defined in the spec, 
or the spec should allow us to set the first value of autoIncrement, I think.

Sorry in advance if the discussion has already been done.
Thank you for your time.

-- 
Futomi Hatano <info@html5.jp>
http://www.html5.jp/
http://www.futomi.com/
http://twitter.com/futomi
Received on Sunday, 23 October 2011 11:22:19 GMT

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