Skip to content

Commit

Permalink
Allow scalar values for Query::select() (#292)
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 132fef7.

* Disable Rector for tests

* Add type string to test

---------

Co-authored-by: Tigrov <Tigrov@users.noreply.github.com>
Co-authored-by: Sergei Predvoditelev <sergei@predvoditelev.ru>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent 4a95c6b commit 6f82dfc
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 @@ -770,4 +770,10 @@ public function testJsonColumn()
$qb->insert('json_table', ['json_col' => new JsonExpression(['a' => 1, 'b' => 2])]),
);
}

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

0 comments on commit 6f82dfc

Please sign in to comment.