Skip to content

Commit

Permalink
Fix build (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored Dec 6, 2024
1 parent a128a1c commit 37865e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sqlAst/data/sql-ast-narrowing.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ public function ifnull(PDO $pdo): void

$stmt = $pdo->query('SELECT ifnull(c_int, "default") as col from typemix');
foreach ($stmt as $row) {
assertType('array{col: lowercase-string&numeric-string, 0: lowercase-string&numeric-string}', $row);
assertType('array{col: lowercase-string&numeric-string&uppercase-string, 0: lowercase-string&numeric-string&uppercase-string}', $row);
}

$stmt = $pdo->query('SELECT ifnull(c_nullable_tinyint, "default") as col from typemix');
foreach ($stmt as $row) {
assertType("array{col: 'default'|(lowercase-string&numeric-string), 0: 'default'|(lowercase-string&numeric-string)}", $row);
assertType("array{col: 'default'|(lowercase-string&numeric-string&uppercase-string), 0: 'default'|(lowercase-string&numeric-string&uppercase-string)}", $row);
}

$stmt = $pdo->query('SELECT ifnull(c_nullable_tinyint, 5000) as col from typemix');
Expand All @@ -203,7 +203,7 @@ public function ifnull(PDO $pdo): void

$stmt = $pdo->query('SELECT ifnull(c_int, 123.23) as col from typemix');
foreach ($stmt as $row) {
assertType("array{col: lowercase-string&numeric-string, 0: lowercase-string&numeric-string}", $row);
assertType("array{col: lowercase-string&numeric-string&uppercase-string, 0: lowercase-string&numeric-string&uppercase-string}", $row);
}

$stmt = $pdo->query('SELECT ifnull(123.23, c_int) as col from typemix');
Expand Down

0 comments on commit 37865e4

Please sign in to comment.