Title: [291306] trunk/Source/WebCore
Revision
291306
Author
cdu...@apple.com
Date
2022-03-15 11:53:28 -0700 (Tue, 15 Mar 2022)

Log Message

Fix SQL statement in ApplicationCacheStorage::verifySchemaVersion()
https://bugs.webkit.org/show_bug.cgi?id=237905

Reviewed by Geoffrey Garen.

This was leading to the following logging:
`SQLiteDatabase::prepareStatement: Failed to prepare statement PRAGMA user_version=%7`

* loader/appcache/ApplicationCacheStorage.cpp:
(WebCore::ApplicationCacheStorage::verifySchemaVersion):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (291305 => 291306)


--- trunk/Source/WebCore/ChangeLog	2022-03-15 18:47:49 UTC (rev 291305)
+++ trunk/Source/WebCore/ChangeLog	2022-03-15 18:53:28 UTC (rev 291306)
@@ -1,3 +1,16 @@
+2022-03-15  Chris Dumez  <cdu...@apple.com>
+
+        Fix SQL statement in ApplicationCacheStorage::verifySchemaVersion()
+        https://bugs.webkit.org/show_bug.cgi?id=237905
+
+        Reviewed by Geoffrey Garen.
+
+        This was leading to the following logging:
+        `SQLiteDatabase::prepareStatement: Failed to prepare statement PRAGMA user_version=%7`
+
+        * loader/appcache/ApplicationCacheStorage.cpp:
+        (WebCore::ApplicationCacheStorage::verifySchemaVersion):
+
 2022-03-15  Antti Koivisto  <an...@apple.com>
 
         background-clip:text doesn't work with display:flex

Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp (291305 => 291306)


--- trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp	2022-03-15 18:47:49 UTC (rev 291305)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp	2022-03-15 18:53:28 UTC (rev 291306)
@@ -567,7 +567,7 @@
     SQLiteTransaction setDatabaseVersion(m_database);
     setDatabaseVersion.begin();
 
-    auto statement = m_database.prepareStatementSlow(makeString("PRAGMA user_version=%", schemaVersion));
+    auto statement = m_database.prepareStatementSlow(makeString("PRAGMA user_version=", schemaVersion));
     if (!statement)
         return;
     
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to