Changeset 86665 in webkit
- Timestamp:
- May 17, 2011, 3:12:12 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r86663 r86665 1 2011-05-12 Hans Wennborg <hans@chromium.org> 2 3 Reviewed by Steve Block. 4 5 IndexedDB: Index population should ignore records without key for index 6 https://bugs.webkit.org/show_bug.cgi?id=60697 7 8 Test that we can create a new index for which not all current records 9 have a key. 10 11 * storage/indexeddb/index-basics-expected.txt: 12 * storage/indexeddb/index-basics.html: 13 1 14 2011-05-17 Alexander Pavlov <apavlov@chromium.org> 2 15 -
trunk/LayoutTests/storage/indexeddb/index-basics-expected.txt
r80471 r86665 28 28 PASS 'get' in indexObject is true 29 29 store.add({x: 'value', y: 'zzz', z: 2.72}, 'key') 30 event.target.source.add({x: 'value2', y: 'zzz2', z: 2.71 }, 'key2')30 event.target.source.add({x: 'value2', y: 'zzz2', z: 2.71, foobar: 12}, 'key2') 31 31 store.createIndex('indexWhileAddIsInFlight', 'x') 32 store.createIndex('indexWithWeirdKeyPath', 'foobar') 32 33 indexObject.getKey('value') 33 34 PASS event.target.result is "key" -
trunk/LayoutTests/storage/indexeddb/index-basics.html
r80471 r86665 69 69 function addMore() 70 70 { 71 request = evalAndLog("event.target.source.add({x: 'value2', y: 'zzz2', z: 2.71 }, 'key2')");71 request = evalAndLog("event.target.source.add({x: 'value2', y: 'zzz2', z: 2.71, foobar: 12}, 'key2')"); 72 72 request.onsuccess = getData; 73 73 request.onerror = unexpectedErrorCallback; 74 74 window.indexObject4 = evalAndLog("store.createIndex('indexWhileAddIsInFlight', 'x')"); 75 window.indexObject5 = evalAndLog("store.createIndex('indexWithWeirdKeyPath', 'foobar')"); 75 76 } 76 77 -
trunk/Source/WebCore/ChangeLog
r86664 r86665 1 2011-05-12 Hans Wennborg <hans@chromium.org> 2 3 Reviewed by Steve Block. 4 5 IndexedDB: Index population should ignore records without key for index 6 https://bugs.webkit.org/show_bug.cgi?id=60697 7 8 When populating a new index, records which do not have a key on the 9 index's key path should be ignored. 10 11 * storage/IDBObjectStoreBackendImpl.cpp: 12 1 13 2011-05-17 Young Han Lee <joybro@company100.net> 2 14 -
trunk/Source/WebCore/storage/IDBObjectStoreBackendImpl.cpp
r85238 r86665 351 351 RefPtr<IDBKey> indexKey = fetchKeyFromKeyPath(objectValue.get(), m_indexKeyPath); 352 352 353 if (!indexKey) 354 return true; 353 355 if (!m_backingStore.putIndexDataForRecord(m_databaseId, m_objectStoreId, m_indexId, *indexKey, recordIdentifier)) 354 356 return false;
Note:
See TracChangeset
for help on using the changeset viewer.