X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FDatabaseSqlite.php;h=dd2e813e55a9f83d4b6cef9922f98f3893b6d10a;hb=eae1f41e72a9a0b67bfda9c7c6f58e6887e023bb;hp=af687b249e750893814df2b6e07df6feb5ac56ca;hpb=a83900b360d9bf08ae90a616bbfdcfdb35f61ef5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/DatabaseSqlite.php b/includes/db/DatabaseSqlite.php index af687b249e..dd2e813e55 100644 --- a/includes/db/DatabaseSqlite.php +++ b/includes/db/DatabaseSqlite.php @@ -666,7 +666,7 @@ class DatabaseSqlite extends DatabaseBase { } /** - * @return string wikitext of a link to the server software's web site + * @return string Wikitext of a link to the server software's web site */ public function getSoftwareLink() { return "[{{int:version-db-sqlite-url}} SQLite]"; @@ -873,6 +873,9 @@ class DatabaseSqlite extends DatabaseBase { } elseif ( preg_match( '/^\s*DROP INDEX/i', $s ) ) { // DROP INDEX is database-wide, not table-specific, so no ON clause. $s = preg_replace( '/\sON\s+[^\s]*/i', '', $s ); + } elseif ( preg_match( '/^\s*INSERT IGNORE\b/i', $s ) ) { + // INSERT IGNORE --> INSERT OR IGNORE + $s = preg_replace( '/^\s*INSERT IGNORE\b/i', 'INSERT OR IGNORE', $s ); } return $s;