RESOLVED FIXED Bug 44695
Add index insertion support to IndexedDB.
https://bugs.webkit.org/show_bug.cgi?id=44695
Summary Add index insertion support to IndexedDB.
Jeremy Orlow
Reported 2010-08-26 10:38:34 PDT
Add index insertion support to IndexedDB.
Attachments
Patch (31.36 KB, patch)
2010-08-26 10:42 PDT, Jeremy Orlow
no flags
Patch (31.56 KB, patch)
2010-08-31 06:55 PDT, Jeremy Orlow
no flags
Patch (31.56 KB, patch)
2010-09-03 06:24 PDT, Jeremy Orlow
steveblock: review+
Jeremy Orlow
Comment 1 2010-08-26 10:40:55 PDT
+ Darin to look at the asserts I've added to WebKit.
Jeremy Orlow
Comment 2 2010-08-26 10:42:12 PDT
Jeremy Orlow
Comment 3 2010-08-31 06:55:01 PDT
Darin Fisher (:fishd, Google)
Comment 4 2010-08-31 09:52:51 PDT
Comment on attachment 66046 [details] Patch > +++ b/WebKit/chromium/public/WebVector.h > @@ -115,8 +115,16 @@ public: > size_t size() const { return m_size; } > bool isEmpty() const { return !m_size; } > > - T& operator[](size_t i) { return m_ptr[i]; } > - const T& operator[](size_t i) const { return m_ptr[i]; } > + T& operator[](size_t i) > + { > + WEBKIT_ASSERT(i < m_size); > + return m_ptr[i]; > + } > + const T& operator[](size_t i) const > + { > + WEBKIT_ASSERT(i < m_size); > + return m_ptr[i]; > + } > > T* data() { return m_ptr; } > const T* data() const { return m_ptr; } LGTM for the above change.
Jeremy Orlow
Comment 5 2010-09-02 10:41:47 PDT
Comment on attachment 66046 [details] Patch Steve did a review with me on my computer. His 2 comments: > doDelete(sqliteDatabase(), "DELETE FROM IndexData WHERE indexId IN (SELECT id FROM Indexes WHERE objectStoreId = ?)", objectStore->id()); Index on the indexID. ? static void putObjectStoreData(SQLiteDatabase& db, bool isExistingValue, IDBKey* key, SerializedScriptValue* value, int64_t objectStoreId, int64_t* dataRowId) get rid of isExistingValue..just key off of dataRowId
Jeremy Orlow
Comment 6 2010-09-03 06:24:20 PDT
WebKit Review Bot
Comment 7 2010-09-03 06:55:55 PDT
Steve Block
Comment 8 2010-09-03 06:59:02 PDT
Comment on attachment 66486 [details] Patch IDBObjectStoreBackendImpl.cpp:128 Oops! r=me, subject to typo fix
Jeremy Orlow
Comment 9 2010-09-05 09:29:15 PDT
Will land after next webkit roll. Thanks!
Jeremy Orlow
Comment 10 2010-09-06 03:33:54 PDT
WebKit Review Bot
Comment 11 2010-09-06 04:19:11 PDT
http://trac.webkit.org/changeset/66820 might have broken Qt Linux Release
Note You need to log in before you can comment on or make changes to this bug.