Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-mysql.php 1 location

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

Sources/Subs-Db-postgresql.php 1 location

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