Kimmo Kinnunen <kimmok@iki.fi>
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Feb 2008 07:18:39 +0000 (07:18 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Feb 2008 07:18:39 +0000 (07:18 +0000)
commitc9f46a3840176d457a3f1664d62be2678ac5e208
treeb0abb1ce3706298b45ddc7d06b60309cdfb96463
parentd1fe75fdfb17a808bc789b61eacc028d8fa2407b
Kimmo Kinnunen  <kimmok@iki.fi>

Reviewed by Tim Hatcher.

Fixes: http://bugs.webkit.org/show_bug.cgi?id=17191
HTML5: Client-side database queries should return values of type number
Test: storage/sql-data-types.html

Make the DB queries return a value as a number if it was inserted
as a number to the database.
* platform/sql/SQLiteStatement.cpp:
(WebCore::SQLiteStatement::getColumnValue): new member function to return SQLValues
* platform/sql/SQLiteStatement.h:
* storage/SQLStatement.cpp:
(WebCore::SQLStatement::execute): use getColumnValue instead of getColumnText

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
WebCore/ChangeLog
WebCore/platform/sql/SQLiteStatement.cpp
WebCore/platform/sql/SQLiteStatement.h
WebCore/storage/SQLStatement.cpp