Commit a31d0ecf authored by beidson's avatar beidson
Browse files

Reviewed by Mitz Pettel!!!

        Change the error code check for common functions from SQLResultOk to SQLResultDone 

        * loader/icon/IconDatabase.cpp:
        (WebCore::IconDatabase::forgetPageURLQuery):
        (WebCore::IconDatabase::setIconIDForPageURLQuery):
        (WebCore::IconDatabase::addIconForIconURLQuery):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8b09e507
2006-09-28 Brady Eidson <beidson@apple.com>
Reviewed by Mitz Pettel!!!
Change the error code check for common functions from SQLResultOk to SQLResultDone
* loader/icon/IconDatabase.cpp:
(WebCore::IconDatabase::forgetPageURLQuery):
(WebCore::IconDatabase::setIconIDForPageURLQuery):
(WebCore::IconDatabase::addIconForIconURLQuery):
2006-09-28 Dave Hyatt <hyatt@apple.com>
 
Just eliminate MapWindowPoints usage and use the HWND as
......@@ -1009,7 +1009,7 @@ void IconDatabase::forgetPageURLQuery(SQLDatabase& db, const String& pageURL)
readySQLStatement(m_forgetPageURLStatement, db, "DELETE FROM PageURL WHERE url = (?);");
m_forgetPageURLStatement->bindText16(1, pageURL, false);
if (m_forgetPageURLStatement->step() != SQLResultOk)
if (m_forgetPageURLStatement->step() != SQLResultDone)
LOG_ERROR("forgetPageURLQuery failed");
m_forgetPageURLStatement->reset();
......@@ -1021,7 +1021,7 @@ void IconDatabase::setIconIDForPageURLQuery(SQLDatabase& db, int64_t iconID, con
m_setIconIDForPageURLStatement->bindText16(1, pageURL, false);
m_setIconIDForPageURLStatement->bindInt64(2, iconID);
if (m_setIconIDForPageURLStatement->step() != SQLResultOk)
if (m_setIconIDForPageURLStatement->step() != SQLResultDone)
LOG_ERROR("setIconIDForPageURLQuery failed");
m_setIconIDForPageURLStatement->reset();
......@@ -1051,7 +1051,7 @@ int64_t IconDatabase::addIconForIconURLQuery(SQLDatabase& db, const String& icon
m_addIconForIconURLStatement->bindText16(1, iconURL, false);
int64_t result = m_addIconForIconURLStatement->step();
if (result== SQLResultOk)
if (result == SQLResultDone)
result = db.lastInsertRowID();
else {
LOG_ERROR("addIconForIconURLQuery failed");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment