This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17538 - [IndexedDB] Remove error clauses for invalid index keys
Summary: [IndexedDB] Remove error clauses for invalid index keys
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-18 18:14 UTC by Joshua Bell
Modified: 2012-07-15 09:27 UTC (History)
3 users (show)

See Also:


Attachments

Description Joshua Bell 2012-06-18 18:14:11 UTC
The exception tables for IDBObjectStore's add() and put() methods include:

"DataError"
"The calculated key for the insertion was not a valid key. Also thrown if the calculated key for any of the indexes which belong to this object store had a calculated key which was not a valid key"

However, consensus was reached that if the calculated key for an index is not a valid key then that index is simply skipped rather than failing the add()/put() -see "steps for storing a record into an object store".

I believe the second sentence ("Also thrown if...") should be removed.
Comment 1 Jonas Sicking (Not reading bugmail) 2012-07-15 09:27:26 UTC
http://dvcs.w3.org/hg/IndexedDB/rev/63c710c23079