Skip to content

Commit

Permalink
fqcn
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Jan 28, 2024
1 parent 3357dba commit cb0da36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Query/Mysql/TrigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testSin(): void
$sql = 'SELECT b0_.id AS id_0, b0_.created AS created_1, b0_.longitude AS longitude_2, b0_.latitude AS latitude_3 FROM BlogPost b0_ WHERE SIN(RADIANS(b0_.latitude)) * SIN(RADIANS(b0_.longitude)) = 1';
$this->assertEquals($sql, $q->getSql());

if (\Doctrine\ORM\Version::compare('2.4.0') <= 0) {
if (Version::compare('2.4.0') <= 0) {
$dql = "SELECT SIN(RADIANS(p.latitude)) * SIN(RADIANS(p.longitude)) FROM {$this->entity} p ";
} else {
$dql = "SELECT (SIN(RADIANS(p.latitude)) * SIN(RADIANS(p.longitude))) FROM {$this->entity} p ";
Expand Down

0 comments on commit cb0da36

Please sign in to comment.