Code Duplication    Length = 2-2 lines in 2 locations

ecrire/req/pg.exp.php 1 location

@@ 220-221 (lines=2) @@
217
		foreach ($desc['field'] as $k => $v) {
218
			$v = strtolower(ltrim($v));
219
			// ne pas ajouter de timestamp now() si un default est specifie
220
			if (strpos($v, 'timestamp') === 0 and strpos($v, 'default') === false) {
221
				$tables[$table][] = $k;
222
			}
223
		}
224
	}

ecrire/req/sqlite_generique.php 1 location

@@ 2727-2728 (lines=2) @@
2724
		$tables[$table] = array();
2725
2726
		foreach ($desc['field'] as $k => $v) {
2727
			if (strpos(strtolower(ltrim($v)), 'timestamp') === 0) {
2728
				$tables[$table][$k] = "datetime('now')";
2729
			}
2730
		}
2731
	}