Version 3 #1
@ -578,16 +578,16 @@ abstract class AbstractDriver
|
||||
// set the update condition
|
||||
$fields = array_unique(
|
||||
array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) {
|
||||
$affectedRows++;
|
||||
$affectedRows++;
|
||||
$keys = array_diff(array_keys($current), [$where]);
|
||||
|
||||
if ($previous === NULL)
|
||||
{
|
||||
return $keys;
|
||||
}
|
||||
if ($previous === NULL)
|
||||
{
|
||||
return $keys;
|
||||
}
|
||||
|
||||
return array_merge($previous, $keys);
|
||||
})
|
||||
return array_merge($previous, $keys);
|
||||
})
|
||||
);
|
||||
|
||||
// Create the CASE blocks for each data set
|
||||
|
@ -6,13 +6,12 @@
|
||||
*
|
||||
* PHP version 7.1
|
||||
*
|
||||
* @package Query
|
||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||
* @package Query
|
||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||
* @copyright 2012 - 2018 Timothy J. Warren
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
*/
|
||||
|
||||
namespace Query;
|
||||
|
||||
/**
|
||||
|
@ -6,16 +6,16 @@
|
||||
*
|
||||
* PHP version 7
|
||||
*
|
||||
* @package Query
|
||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||
* @package Query
|
||||
* @author Timothy J. Warren <tim@timshomepage.net>
|
||||
* @copyright 2012 - 2016 Timothy J. Warren
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
*/
|
||||
|
||||
use Query\{
|
||||
ConnectionManager,
|
||||
QueryBuilderInterface
|
||||
ConnectionManager,
|
||||
QueryBuilderInterface
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,6 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
*/
|
||||
|
||||
namespace Query\Tests;
|
||||
|
||||
/**
|
||||
|
@ -12,7 +12,6 @@
|
||||
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
||||
* @link https://git.timshomepage.net/aviat4ion/Query
|
||||
*/
|
||||
|
||||
namespace Query\Tests\Drivers\PgSQL;
|
||||
|
||||
use PDO;
|
||||
|
Loading…
Reference in New Issue
Block a user