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

@@ 722-727 (lines=6) @@
719
	$returning = '';
720
	$with_returning = false;
721
	// lets build the returning string, mysql allow only in normal mode
722
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
723
	{
724
		// we only take the first key
725
		$returning = ' RETURNING '.$keys[0];
726
		$with_returning = true;
727
	}
728
729
	if (!empty($data))
730
	{