From 7bdb3b2f4b4a84df66cce63b539cfd7c8fdd2154 Mon Sep 17 00:00:00 2001 From: Jan Nedbal Date: Thu, 27 Jun 2024 13:29:51 +0200 Subject: [PATCH] Add test for wrapped TypedExpression --- .../QueryResultTypeWalkerFetchTypeMatrixTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php b/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php index 0d1e3b34..2623181e 100644 --- a/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php +++ b/tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php @@ -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',