Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into column_type_classes2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 5, 2024
2 parents cc4a3f5 + 236133e commit ae78592
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ public function testAlterColumn(): void
*/
public function testBatchInsert(
string $table,
array $columns,
iterable $values,
array $columns,
string $expected,
array $expectedParams = [],
int $insertedRow = 1
): void {
parent::testBatchInsert($table, $columns, $values, $expected, $expectedParams, $insertedRow);
parent::testBatchInsert($table, $values, $columns, $expected, $expectedParams, $insertedRow);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions tests/Provider/CommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public static function batchInsert(): array
{
$batchInsert = parent::batchInsert();

$batchInsert['batchInsert binds json params'] = [
$batchInsert['binds json params'] = [
'{{%type}}',
['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'],
[
[1, 'a', 0.0, true, ['a' => 1, 'b' => true, 'c' => [1, 2, 3]]],
[2, 'b', -1.0, false, new JsonExpression(['d' => 'e', 'f' => false, 'g' => [4, 5, null]])],
],
['int_col', 'char_col', 'float_col', 'bool_col', 'json_col'],
'expected' => 'INSERT INTO `type` (`int_col`, `char_col`, `float_col`, `bool_col`, `json_col`) '
. 'VALUES (:qp0, :qp1, :qp2, :qp3, :qp4), (:qp5, :qp6, :qp7, :qp8, :qp9)',
'expectedParams' => [
Expand Down
4 changes: 2 additions & 2 deletions tests/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ public function testAlterColumn(): void
*/
public function testBatchInsert(
string $table,
array $columns,
iterable $rows,
array $columns,
string $expected,
array $expectedParams = [],
): void {
parent::testBatchInsert($table, $columns, $rows, $expected, $expectedParams);
parent::testBatchInsert($table, $rows, $columns, $expected, $expectedParams);
}

/**
Expand Down

0 comments on commit ae78592

Please sign in to comment.