Bug 17538 - [IndexedDB] Remove error clauses for invalid index keys
[IndexedDB] Remove error clauses for invalid index keys
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API
unspecified
All All
: P2 normal
: ---
Assigned To: This bug has no owner yet - up for the taking
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-18 18:14 UTC by Joshua Bell
Modified: 2012-07-15 09:27 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 2012-07-15 09:27:26 UTC
http://dvcs.w3.org/hg/IndexedDB/rev/63c710c23079