Sources/Subs-Db-postgresql.php 1 location
|
@@ 802-807 (lines=6) @@
|
| 799 |
|
$returning = ''; |
| 800 |
|
$with_returning = false; |
| 801 |
|
// lets build the returning string, mysql allow only in normal mode |
| 802 |
|
if (!empty($keys) && (count($keys) > 0) && $returnmode > 0) |
| 803 |
|
{ |
| 804 |
|
// we only take the first key |
| 805 |
|
$returning = ' RETURNING '.$keys[0]; |
| 806 |
|
$with_returning = true; |
| 807 |
|
} |
| 808 |
|
|
| 809 |
|
if (!empty($data)) |
| 810 |
|
{ |
Sources/Subs-Db-mysql.php 1 location
|
@@ 792-797 (lines=6) @@
|
| 789 |
|
|
| 790 |
|
$with_returning = false; |
| 791 |
|
|
| 792 |
|
if (!empty($keys) && (count($keys) > 0) && $returnmode > 0) |
| 793 |
|
{ |
| 794 |
|
$with_returning = true; |
| 795 |
|
if ($returnmode == 2) |
| 796 |
|
$return_var = array(); |
| 797 |
|
} |
| 798 |
|
|
| 799 |
|
// Inserting data as a single row can be done as a single array. |
| 800 |
|
if (!is_array($data[array_rand($data)])) |