Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 745-750 (lines=6) @@
742
743
	$with_returning = false;
744
745
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
746
	{
747
		$with_returning = true;
748
		if ($returnmode == 2)
749
			$return_var = array();
750
	}
751
752
	// Inserting data as a single row can be done as a single array.
753
	if (!is_array($data[array_rand($data)]))

Sources/Subs-Db-postgresql.php 1 location

@@ 777-782 (lines=6) @@
774
	$returning = '';
775
	$with_returning = false;
776
	// lets build the returning string, mysql allow only in normal mode
777
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
778
	{
779
		// we only take the first key
780
		$returning = ' RETURNING '.$keys[0];
781
		$with_returning = true;
782
	}
783
784
	if (!empty($data))
785
	{