-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
QueryBuilderTest::testBatchInsert()
(#789)
- Loading branch information
Showing
5 changed files
with
30 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => '[email protected]', ':qp1' => 'silverfire', ':qp2' => 'Kyiv {{city}}, Ukraine'], | ||
'expectedParams' => [':qp0' => '[email protected]', ':qp1' => 'silverfire', ':qp2' => 'Kyiv {{city}}, Ukraine'], | ||
], | ||
'escape-danger-chars' => [ | ||
'customer', | ||
|
@@ -157,7 +157,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => "SQL-danger chars are escaped: '); --"], | ||
'expectedParams' => [':qp0' => "SQL-danger chars are escaped: '); --"], | ||
], | ||
'customer2' => [ | ||
'customer', | ||
|
@@ -175,7 +175,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => 'no columns passed'], | ||
'expectedParams' => [':qp0' => 'no columns passed'], | ||
], | ||
'bool-false, bool2-null' => [ | ||
'type', | ||
|
@@ -187,7 +187,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => 0, ':qp1' => null], | ||
'expectedParams' => [':qp0' => false, ':qp1' => null], | ||
], | ||
'wrong' => [ | ||
'{{%type}}', | ||
|
@@ -199,7 +199,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => null, ':qp1' => null], | ||
'expectedParams' => [':qp0' => null, ':qp1' => null], | ||
], | ||
'bool-false, time-now()' => [ | ||
'{{%type}}', | ||
|
@@ -211,7 +211,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => null], | ||
'expectedParams' => [':qp0' => false], | ||
], | ||
'column table names are not checked' => [ | ||
'{{%type}}', | ||
|
@@ -223,7 +223,7 @@ public static function batchInsert(): array | |
SQL, | ||
static::$driverName, | ||
), | ||
[':qp0' => null, ':qp1' => null], | ||
'expectedParams' => [':qp0' => true, ':qp1' => false], | ||
], | ||
'empty-sql' => [ | ||
'{{%type}}', | ||
|