Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

@@ 737-742 (lines=6) @@
734
735
	$with_returning = false;
736
737
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
738
	{
739
		$with_returning = true;
740
		if ($returnmode == 2)
741
			$return_var = array();
742
	}
743
744
	// Inserting data as a single row can be done as a single array.
745
	if (!is_array($data[array_rand($data)]))

Sources/Subs-Db-postgresql.php 1 location

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