[Webkit-unassigned] [Bug 137154] New: IndexedDB is deleting data when a PK is shared amongst two objectStores
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 26 13:16:52 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=137154
Summary: IndexedDB is deleting data when a PK is shared amongst
two objectStores
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: raymondcamden at gmail.com
Imagine you have one indexeddb instance and two objectstores: people and notes
If you add data to people with an assigned PK of 1, and then do the same to note, the data in people is erased.
If you switch to using auto number PKs then the same thing happens (since they both end up having the same ID).
Primary keys are supposed to be unique per objectStore, not the entire database.
Here is a blog entry showing examples of this issue: http://www.raymondcamden.com/2014/9/25/IndexedDB-on-iOS-8--Broken-Bad#cFF30B25B-F01B-05AB-E8041ED50386A176
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list