Skip to content
This repository was archived by the owner on Aug 19, 2022. It is now read-only.

Commit 70c5f33

Browse files
committed
Updated to 1.1.6 version
1 parent f3563bc commit 70c5f33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Database/Provider/PDOprovider/PDOprovider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public function replace($table, $data, $statements) {
380380

381381
$columnIdName = $columns[0];
382382

383-
if (count($data) == count($statements) && isset($statements[0][1])) {
383+
if (isset($statements[0][1]) && count($data) == count($statements)) {
384384

385385
$id = $statements[0][1];
386386

tests/Database/Test/TruncateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testTruncateTableQuery($db) {
7070
*
7171
* @expectedException Josantonius\Database\Exception\DBException
7272
*
73-
* @expectedExceptionMessageRegExp (table|not|found)
73+
* @expectedExceptionMessageRegExp (table|not|found|Table|exists)
7474
*
7575
* @return void
7676
*/
@@ -119,7 +119,7 @@ public function testTruncateTableMethod($db) {
119119
*
120120
* @expectedException Josantonius\Database\Exception\DBException
121121
*
122-
* @expectedExceptionMessageRegExp (table|not|found)
122+
* @expectedExceptionMessageRegExp (table|not|found|Table|exists)
123123
*
124124
* @return void
125125
*/

0 commit comments

Comments
 (0)