Index: trunk/phase3/includes/db/DatabaseSqlite.php |
— | — | @@ -164,6 +164,13 @@ |
165 | 165 | } |
166 | 166 | |
167 | 167 | /** |
| 168 | + * @see DatabaseBase::isWriteQuery() |
| 169 | + */ |
| 170 | + function isWriteQuery( $sql ) { |
| 171 | + return parent::isWriteQuery( $sql ) && !preg_match( '/^ATTACH\b/i', $sql ); |
| 172 | + } |
| 173 | + |
| 174 | + /** |
168 | 175 | * SQLite doesn't allow buffered results or data seeking etc, so we'll use fetchAll as the result |
169 | 176 | */ |
170 | 177 | function doQuery( $sql ) { |