Skip to content

Commit

Permalink
Allow scalar values for Query::select() (#296)
Browse files Browse the repository at this point in the history
* Update tests according main PR

* Apply Rector changes (CI)

* Revert "Apply Rector changes (CI)"

This reverts commit 8664633.

* Disable Rector for tests

* Add type string to test

---------

Co-authored-by: Tigrov <[email protected]>
Co-authored-by: Sergei Predvoditelev <[email protected]>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent ca6e276 commit 889c21f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/QueryBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1141,4 +1141,10 @@ public function testAlterColumnWithExpression(): void

$this->assertEquals($expected, $sql);
}

/** @dataProvider \Yiisoft\Db\Mssql\Tests\Provider\QueryBuilderProvider::selectScalar */
public function testSelectScalar(array|bool|float|int|string $columns, string $expected): void
{
parent::testSelectScalar($columns, $expected);
}
}

0 comments on commit 889c21f

Please sign in to comment.