Code Duplication    Length = 4-4 lines in 2 locations

ecrire/req/sqlite_generique.php 2 locations

@@ 3047-3050 (lines=4) @@
3044
		//
3045
		// Correction Create Database
3046
		// Create Database -> requete ignoree
3047
		if (strpos($this->query, 'CREATE DATABASE') === 0) {
3048
			spip_log("Sqlite : requete non executee -> $this->query", 'sqlite.' . _LOG_AVERTISSEMENT);
3049
			$this->query = "SELECT 1";
3050
		}
3051
3052
		// Correction Insert Ignore
3053
		// INSERT IGNORE -> insert (tout court et pas 'insert or replace')
@@ 3054-3057 (lines=4) @@
3051
3052
		// Correction Insert Ignore
3053
		// INSERT IGNORE -> insert (tout court et pas 'insert or replace')
3054
		if (strpos($this->query, 'INSERT IGNORE') === 0) {
3055
			spip_log("Sqlite : requete transformee -> $this->query", 'sqlite.' . _LOG_DEBUG);
3056
			$this->query = 'INSERT ' . substr($this->query, '13');
3057
		}
3058
3059
		// Correction des dates avec INTERVAL
3060
		// utiliser sql_date_proche() de preference