Code Duplication    Length = 2-2 lines in 2 locations

ecrire/req/pg.php 1 location

@@ 199-200 (lines=2) @@
196
		foreach ($desc['field'] as $k=>$v){
197
			$v = strtolower(ltrim($v));
198
			// ne pas ajouter de timestamp now() si un default est specifie
199
			if (strpos($v, 'timestamp')===0 AND strpos($v, 'default')===false)
200
				$tables[$table][] = $k;
201
		}
202
	}
203
	

ecrire/req/sqlite_generique.php 1 location

@@ 2020-2021 (lines=2) @@
2017
		$tables[$table] = array();
2018
2019
		foreach ($desc['field'] as $k => $v){
2020
			if (strpos(strtolower(ltrim($v)), 'timestamp')===0)
2021
				$tables[$table][$k] = "datetime('now')";
2022
		}
2023
	}
2024