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); |