Changeset 93395 in webkit


Ignore:
Timestamp:
Aug 19, 2011 5:13:20 AM (13 years ago)
Author:
jochen@chromium.org
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r93393 r93395  
     12011-08-19  Jochen Eisinger  <jochen@chromium.org>
     2
     3        IDBSQLiteBackingStore::deleteObjectStore should maintain referential integrity.
     4        https://bugs.webkit.org/show_bug.cgi?id=66470
     5
     6        Reviewed by Tony Gentilcore.
     7
     8        * storage/IDBSQLiteBackingStore.cpp:
     9        (WebCore::IDBSQLiteBackingStore::deleteObjectStore):
     10
    1112011-08-19  Takashi Toyoshima  <toyoshim@chromium.org>
    212
  • trunk/Source/WebCore/storage/IDBSQLiteBackingStore.cpp

    r92950 r93395  
    294294void IDBSQLiteBackingStore::deleteObjectStore(int64_t, int64_t objectStoreId)
    295295{
    296     doDelete(m_db, "DELETE FROM ObjectStores WHERE id = ?", objectStoreId);
    297     doDelete(m_db, "DELETE FROM ObjectStoreData WHERE objectStoreId = ?", objectStoreId);
    298296    doDelete(m_db, "DELETE FROM IndexData WHERE indexId IN (SELECT id FROM Indexes WHERE objectStoreId = ?)", objectStoreId);
    299297    doDelete(m_db, "DELETE FROM Indexes WHERE objectStoreId = ?", objectStoreId);
     298    doDelete(m_db, "DELETE FROM ObjectStoreData WHERE objectStoreId = ?", objectStoreId);
     299    doDelete(m_db, "DELETE FROM ObjectStores WHERE id = ?", objectStoreId);
    300300}
    301301
Note: See TracChangeset for help on using the changeset viewer.