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

@@ 2627-2628 (lines=2) @@
2624
		$tables[$table] = array();
2625
2626
		foreach ($desc['field'] as $k => $v) {
2627
			if (strpos(strtolower(ltrim($v)), 'timestamp') === 0) {
2628
				$tables[$table][$k] = "datetime('now')";
2629
			}
2630
		}
2631
	}