From e8e55c252b44a04af6b1ae6e46f295268a1092d4 Mon Sep 17 00:00:00 2001 From: ZVanoZ Date: Mon, 27 Sep 2021 19:07:40 +0300 Subject: [PATCH] #214 @fix: "MySQL integration test fail in section testNamedParameters"/fix test "testBindParamByFieldNameIsFail" - wrong name of a fieldName --- test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php b/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php index 2c45f74a..29d86677 100644 --- a/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php +++ b/test/integration/Adapter/Driver/Pdo/Mysql/QueryTest.php @@ -180,9 +180,9 @@ public function testBindParamByFieldNameIsFail() try { //real named parameters $stmt->execute([ - 'name' => 'bar', // OK -- 0 ":c_0" "name" varchar(255) - 'value' => 'foo', // OK -- 1 ":c_1" "value" varchar(255) - 'idFieldName' => 1, // FAIL -- 2 ":where1" "id" int + 'name' => 'bar', // OK -- 0 ":c_0" "name" varchar(255) + 'value' => 'foo', // OK -- 1 ":c_1" "value" varchar(255) + 'idFieldName' => 1, // FAIL -- 2 ":where1" "id" int ]); $this->assertTrue(false, __METHOD__, "/Fail. Extect exception."); } catch (Exception $e) {