Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-postgresql.php 1 location

@@ 799-804 (lines=6) @@
796
	$returning = '';
797
	$with_returning = false;
798
	// lets build the returning string, mysql allow only in normal mode
799
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
800
	{
801
		// we only take the first key
802
		$returning = ' RETURNING '.$keys[0];
803
		$with_returning = true;
804
	}
805
806
	if (!empty($data))
807
	{

Sources/Subs-Db-mysql.php 1 location

@@ 789-794 (lines=6) @@
786
	
787
	$with_returning = false;
788
	
789
	if (!empty($keys) && (count($keys) > 0) && $returnmode > 0)
790
	{
791
		$with_returning = true;
792
		if ($returnmode == 2)
793
			$return_var = array();
794
	}
795
796
	// Inserting data as a single row can be done as a single array.
797
	if (!is_array($data[array_rand($data)]))