Skip to content

Commit

Permalink
Add test for wrapped TypedExpression
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored and ondrejmirtes committed Jun 27, 2024
1 parent afb40db commit 7bdb3b2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3913,6 +3913,22 @@ public static function provideCases(): iterable
'stringify' => self::STRINGIFY_NONE,
];

yield '-INT_PI()' => [
'data' => self::dataDefault(),
'select' => 'SELECT -INT_PI() FROM %s t',
'mysql' => self::mixed(),
'sqlite' => self::mixed(),
'pdo_pgsql' => self::mixed(),
'pgsql' => self::mixed(),
'mssql' => self::mixed(),
'mysqlResult' => '-3.14159',
'sqliteResult' => -3.14159,
'pdoPgsqlResult' => '-3.14159',
'pgsqlResult' => '-3.14159',
'mssqlResult' => '-3.14159',
'stringify' => self::STRINGIFY_DEFAULT,
];

yield 'BOOL_PI()' => [
'data' => self::dataDefault(),
'select' => 'SELECT BOOL_PI() FROM %s t',
Expand Down

0 comments on commit 7bdb3b2

Please sign in to comment.