From: Aaron Schulz Date: Thu, 20 Aug 2015 00:47:49 +0000 (-0700) Subject: Prevent PRAGMA query spam in debug/DBPerformance logs X-Git-Tag: 1.31.0-rc.0~10314^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=32f0abe6cae1350e7754fc4364f7de2ffea882ea;p=lhc%2Fweb%2Fwiklou.git Prevent PRAGMA query spam in debug/DBPerformance logs Change-Id: If567ea573f615e879e062a545c4b619ed8358e76 --- diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index 9c93951a21..656547b52e 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -284,7 +284,7 @@ class DatabaseSqlite extends DatabaseBase { * @return bool */ function isWriteQuery( $sql ) { - return parent::isWriteQuery( $sql ) && !preg_match( '/^ATTACH\b/i', $sql ); + return parent::isWriteQuery( $sql ) && !preg_match( '/^(ATTACH|PRAGMA)\b/i', $sql ); } /**