[Webkit-unassigned] [Bug 58762] localStorage string values truncated at \x00 characters on browser restart
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 13 02:30:01 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=58762
--- Comment #19 from Jonathan Dong <jonathan.dong at torchmobile.com.cn> 2011-07-13 02:30:01 PST ---
(From update of attachment 100391)
View in context: https://bugs.webkit.org/attachment.cgi?id=100391&action=review
>> Source/WebCore/storage/StorageAreaSync.cpp:276
>> + SQLiteStatement query(m_database, "SELECT value FROM ItemTable where rowid = 1");
>
> Hm...will this always work? What if someone inserts something, inserts another something, then deletes that first something. Won't then there be items in it but no rowid = 1? I think you just want s/where rowid = 1/limit 1/. Right?
yes your way is more appropriate, thanks.
>> Source/WebCore/storage/StorageAreaSync.cpp:277
>> + if (query.isColumnDeclaredAsBlob(0))
>
> Wait, will this work if there was no data in the table?
I've tested on the empty ItemTable and it works. Actually we just prepare() but not really step() the statement in isColumnDeclaredAsBlob() function, as the sqlite3_column_decltype16() do not need to execute the statement.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list