Code Duplication    Length = 6-6 lines in 2 locations

Sources/Subs-Db-postgresql.php 1 location

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

Sources/Subs-Db-mysql.php 1 location

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