Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1063)

Unified Diff: WebCore/storage/IDBKey.cpp

Issue 5800002: Merge 73697 - 2010-12-10 Hans Wennborg <hans@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/storage/IDBKey.h ('k') | WebKit/chromium/ChangeLog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/storage/IDBKey.cpp
===================================================================
--- WebCore/storage/IDBKey.cpp (revision 73901)
+++ WebCore/storage/IDBKey.cpp (working copy)
@@ -38,7 +38,7 @@
{
}
-IDBKey::IDBKey(int32_t number)
+IDBKey::IDBKey(double number)
: m_type(NumberType)
, m_number(number)
{
@@ -65,7 +65,7 @@
}
if (!query.isColumnNull(baseColumn + 2))
- return IDBKey::create(query.getColumnInt(baseColumn + 2));
+ return IDBKey::create(query.getColumnDouble(baseColumn + 2));
return IDBKey::create(); // Null.
}
@@ -147,7 +147,7 @@
query.bindText(column, m_string);
return 1;
case IDBKey::NumberType:
- query.bindInt(column, m_number);
+ query.bindDouble(column, m_number);
return 1;
case IDBKey::NullType:
return 0;
@@ -168,7 +168,7 @@
case IDBKey::NumberType:
query.bindNull(baseColumn + 0);
query.bindNull(baseColumn + 1);
- query.bindInt(baseColumn + 2, m_number);
+ query.bindDouble(baseColumn + 2, m_number);
break;
case IDBKey::NullType:
query.bindNull(baseColumn + 0);
« no previous file with comments | « WebCore/storage/IDBKey.h ('k') | WebKit/chromium/ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698