Version 3 #1

Manually merged
timw4mail merged 47 commits from develop into master 2020-04-23 18:39:27 -04:00
5 changed files with 17 additions and 20 deletions
Showing only changes of commit 2839e6ad6e - Show all commits

View File

@ -578,16 +578,16 @@ abstract class AbstractDriver
// set the update condition // set the update condition
$fields = array_unique( $fields = array_unique(
array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) { array_reduce($data, function ($previous, $current) use (&$affectedRows, $where) {
$affectedRows++; $affectedRows++;
$keys = array_diff(array_keys($current), [$where]); $keys = array_diff(array_keys($current), [$where]);
if ($previous === NULL) if ($previous === NULL)
{ {
return $keys; return $keys;
} }
return array_merge($previous, $keys); return array_merge($previous, $keys);
}) })
); );
// Create the CASE blocks for each data set // Create the CASE blocks for each data set

View File

@ -6,13 +6,12 @@
* *
* PHP version 7.1 * PHP version 7.1
* *
* @package Query * @package Query
* @author Timothy J. Warren <tim@timshomepage.net> * @author Timothy J. Warren <tim@timshomepage.net>
* @copyright 2012 - 2018 Timothy J. Warren * @copyright 2012 - 2018 Timothy J. Warren
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://git.timshomepage.net/aviat4ion/Query * @link https://git.timshomepage.net/aviat4ion/Query
*/ */
namespace Query; namespace Query;
/** /**

View File

@ -6,16 +6,16 @@
* *
* PHP version 7 * PHP version 7
* *
* @package Query * @package Query
* @author Timothy J. Warren <tim@timshomepage.net> * @author Timothy J. Warren <tim@timshomepage.net>
* @copyright 2012 - 2016 Timothy J. Warren * @copyright 2012 - 2016 Timothy J. Warren
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://git.timshomepage.net/aviat4ion/Query * @link https://git.timshomepage.net/aviat4ion/Query
*/ */
use Query\{ use Query\{
ConnectionManager, ConnectionManager,
QueryBuilderInterface QueryBuilderInterface
}; };
/** /**

View File

@ -12,7 +12,6 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://git.timshomepage.net/aviat4ion/Query * @link https://git.timshomepage.net/aviat4ion/Query
*/ */
namespace Query\Tests; namespace Query\Tests;
/** /**

View File

@ -12,7 +12,6 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link https://git.timshomepage.net/aviat4ion/Query * @link https://git.timshomepage.net/aviat4ion/Query
*/ */
namespace Query\Tests\Drivers\PgSQL; namespace Query\Tests\Drivers\PgSQL;
use PDO; use PDO;