Skip to content

Commit

Permalink
Remove test about deprecated LOCATE() function in DBAL SQLite platform
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 6, 2024
1 parent 0f98bd1 commit 039d325
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/Type/Doctrine/Query/QueryResultTypeWalkerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1530,23 +1530,6 @@ private function yieldConditionalDataset(): iterable
];
}

yield 'locate function' => [
$this->constantArray([
[new ConstantIntegerType(1), $this->uintOrStringified()],
[new ConstantIntegerType(2), TypeCombinator::addNull($this->uintOrStringified())],
[new ConstantIntegerType(3), TypeCombinator::addNull($this->uintOrStringified())],
[new ConstantIntegerType(4), $this->uintOrStringified()],
]),
'
SELECT LOCATE(m.stringColumn, m.stringColumn, 0),
LOCATE(m.stringNullColumn, m.stringColumn, 0),
LOCATE(m.stringColumn, m.stringNullColumn, 0),
LOCATE(\'f\', \'foo\', 0)
FROM QueryResult\Entities\Many m
',
null,
];

$ormVersion = InstalledVersions::getVersion('doctrine/orm');
$hasOrm3 = $ormVersion !== null && strpos($ormVersion, '3.') === 0;

Expand Down

0 comments on commit 039d325

Please sign in to comment.