https://www.w3.org/Bugs/Public/show_bug.cgi?id=16714
Summary: IndexedDB: creating an object store with Array-type
key path and key generator should be forbidden
Product: WebAppsWG
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Indexed Database API
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected], [email protected]
Per discussion on the list, specifying both a key generator for an object store
(via autoIncrement: true) and a key path which is an Array (via keyPath: [...])
would lead to inconsistent keys. This should not be supported.
This spec change should cover it:
OLD: If the optionalParameters parameter is specified, and autoIncrement is set
to true, and the keyPath parameter is specified to the empty string, or
specified to an Array and one of the items is an empty string, this function
must throw a InvalidAccessError exception.
NEW: If the optionalParameters parameter is specified, and autoIncrement is set
to true, and the keyPath parameter is specified to the empty string, or
specified to an Array, this function must throw a InvalidAccessError exception.
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.