RESOLVED FIXED 65993
IndexedDB: Overwriting key in unique index should be possible
https://bugs.webkit.org/show_bug.cgi?id=65993
Summary IndexedDB: Overwriting key in unique index should be possible
Hans Wennborg
Reported 2011-08-10 09:52:33 PDT
IndexedDB: Overwriting key in unique index should be possible
Attachments
Patch (13.00 KB, patch)
2011-08-10 09:57 PDT, Hans Wennborg
tony: review+
Hans Wennborg
Comment 1 2011-08-10 09:57:23 PDT
WebKit Review Bot
Comment 2 2011-08-10 10:00:02 PDT
Attachment 103499 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/stor..." exit_code: 1 Source/WebCore/storage/IDBLevelDBBackingStore.cpp:794: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/storage/IDBSQLiteBackingStore.h:65: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/storage/IDBLevelDBBackingStore.h:70: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/storage/IDBBackingStore.h:84: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Source/WebCore/storage/IDBSQLiteBackingStore.cpp:678: The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Total errors found: 5 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
Hans Wennborg
Comment 3 2011-08-10 10:01:20 PDT
I noticed this bug when dealing with the unique index stuff recently. David, would you like to take a look? I believe the style bot errors here are bogus...
David Grogan
Comment 4 2011-08-10 14:53:42 PDT
Comment on attachment 103499 [details] Patch LGTM
Hans Wennborg
Comment 5 2011-08-11 02:50:47 PDT
Tony, would you like to take a look?
Tony Chang
Comment 6 2011-08-11 10:24:10 PDT
Comment on attachment 103499 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=103499&action=review > LayoutTests/storage/indexeddb/index-unique.html:141 > + request.onsuccess = function() { done(); } Nit: Can you just do request.onsuccess = done; ? >> Source/WebCore/storage/IDBBackingStore.h:84 > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Nit: I would give the first IDBKey a name like searchKey to disambiguate it. >> Source/WebCore/storage/IDBLevelDBBackingStore.h:70 >> + virtual bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& foundPrimaryKey); > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Ditto. >> Source/WebCore/storage/IDBSQLiteBackingStore.h:65 >> + virtual bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& foundPrimaryKey); > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] Ditto.
Hans Wennborg
Comment 7 2011-08-12 01:51:34 PDT
Hans Wennborg
Comment 8 2011-08-12 02:04:46 PDT
(In reply to comment #6) > (From update of attachment 103499 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=103499&action=review Thanks Tony! > > > LayoutTests/storage/indexeddb/index-unique.html:141 > > + request.onsuccess = function() { done(); } > > Nit: Can you just do request.onsuccess = done; ? Done. > > >> Source/WebCore/storage/IDBBackingStore.h:84 > > > > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] > > Nit: I would give the first IDBKey a name like searchKey to disambiguate it. Done. > > >> Source/WebCore/storage/IDBLevelDBBackingStore.h:70 > >> + virtual bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& foundPrimaryKey); > > > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] > > Ditto. Done. > > >> Source/WebCore/storage/IDBSQLiteBackingStore.h:65 > >> + virtual bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, RefPtr<IDBKey>& foundPrimaryKey); > > > > The parameter type should use PassRefPtr instead of RefPtr. [readability/pass_ptr] [5] > > Ditto. Done.
Note You need to log in before you can comment on or make changes to this bug.