Title: [93395] trunk/Source/WebCore
- Revision
- 93395
- Author
- joc...@chromium.org
- Date
- 2011-08-19 05:13:20 -0700 (Fri, 19 Aug 2011)
Log Message
IDBSQLiteBackingStore::deleteObjectStore should maintain referential integrity.
https://bugs.webkit.org/show_bug.cgi?id=66470
Reviewed by Tony Gentilcore.
* storage/IDBSQLiteBackingStore.cpp:
(WebCore::IDBSQLiteBackingStore::deleteObjectStore):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (93394 => 93395)
--- trunk/Source/WebCore/ChangeLog 2011-08-19 11:37:20 UTC (rev 93394)
+++ trunk/Source/WebCore/ChangeLog 2011-08-19 12:13:20 UTC (rev 93395)
@@ -1,3 +1,13 @@
+2011-08-19 Jochen Eisinger <joc...@chromium.org>
+
+ IDBSQLiteBackingStore::deleteObjectStore should maintain referential integrity.
+ https://bugs.webkit.org/show_bug.cgi?id=66470
+
+ Reviewed by Tony Gentilcore.
+
+ * storage/IDBSQLiteBackingStore.cpp:
+ (WebCore::IDBSQLiteBackingStore::deleteObjectStore):
+
2011-08-19 Takashi Toyoshima <toyos...@chromium.org>
[WebSocket] CloseEvent's code and reason properties support.
Modified: trunk/Source/WebCore/storage/IDBSQLiteBackingStore.cpp (93394 => 93395)
--- trunk/Source/WebCore/storage/IDBSQLiteBackingStore.cpp 2011-08-19 11:37:20 UTC (rev 93394)
+++ trunk/Source/WebCore/storage/IDBSQLiteBackingStore.cpp 2011-08-19 12:13:20 UTC (rev 93395)
@@ -293,10 +293,10 @@
void IDBSQLiteBackingStore::deleteObjectStore(int64_t, int64_t objectStoreId)
{
- doDelete(m_db, "DELETE FROM ObjectStores WHERE id = ?", objectStoreId);
- doDelete(m_db, "DELETE FROM ObjectStoreData WHERE objectStoreId = ?", objectStoreId);
doDelete(m_db, "DELETE FROM IndexData WHERE indexId IN (SELECT id FROM Indexes WHERE objectStoreId = ?)", objectStoreId);
doDelete(m_db, "DELETE FROM Indexes WHERE objectStoreId = ?", objectStoreId);
+ doDelete(m_db, "DELETE FROM ObjectStoreData WHERE objectStoreId = ?", objectStoreId);
+ doDelete(m_db, "DELETE FROM ObjectStores WHERE id = ?", objectStoreId);
}
namespace {
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes