2007-11-19 Doug Turner <dougt@meer.net>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Nov 2007 18:01:58 +0000 (18:01 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Nov 2007 18:01:58 +0000 (18:01 +0000)
        Reviewed by Timothy Hatcher.

        http://bugs.webkit.org/show_bug.cgi?id=16050
        sqlite3_prepare16_v2 build bustage.

        Using the correct SQLITE_VERSION_NUMBER around sqlite_prepare16_v2
        to fix build bustage.

        * platform/sql/SQLiteStatement.cpp:
        (WebCore::SQLiteStatement::prepare):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27910 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/sql/SQLiteStatement.cpp

index 8e431cdb14b5013f942c5dc4183508cfb3312a59..bf840c84bf852aec5f69f8a2e7df35698d16a4a4 100644 (file)
@@ -1,3 +1,16 @@
+2007-11-19  Doug Turner  <dougt@meer.net>
+
+        Reviewed by Timothy Hatcher.
+
+        http://bugs.webkit.org/show_bug.cgi?id=16050
+        sqlite3_prepare16_v2 build bustage.
+
+        Using the correct SQLITE_VERSION_NUMBER around sqlite_prepare16_v2
+        to fix build bustage.
+
+        * platform/sql/SQLiteStatement.cpp:
+        (WebCore::SQLiteStatement::prepare):
+
 2007-11-19  Mark Rowe  <mrowe@apple.com>
 
         Build fix.  Don't over-qualify the constructor name.
index e5bde172732d34a1c50febf83f3b16cd450214f9..97fe4ceca0e16fd57a39b00c7744c5295d117299 100644 (file)
@@ -50,7 +50,7 @@ int SQLiteStatement::prepare()
 {    
     const void* tail;
     LOG(SQLDatabase, "SQL - prepare - %s", m_query.ascii().data());
-#if SQLITE_VERSION_NUMBER > 3003000 
+#if SQLITE_VERSION_NUMBER >= 3003009
     if (sqlite3_prepare16_v2(m_database.sqlite3Handle(), m_query.characters(), -1, &m_statement, &tail) != SQLITE_OK) {
 #else
     if (sqlite3_prepare16(m_database.sqlite3Handle(), m_query.characters(), -1, &m_statement, &tail) != SQLITE_OK) {