Skip to content

Commit f0c0a8f

Browse files
committed
Update DistanceTest.php
1 parent 5582243 commit f0c0a8f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/DistanceTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ protected function getExpectedSqlStatements(): array
2020
{
2121
return [
2222
"SELECT (c0_.point <@> '(2.320041, 48.858889)') AS sclr_0 FROM ContainsPoints c0_",
23+
"SELECT (c0_.point <@> c0_.point2) AS sclr_0 FROM ContainsPoints c0_",
24+
"SELECT ('(1.0, 1.0)' <@> '(2.0, 2.0)') AS sclr_0 FROM ContainsPoints c0_",
2325
];
2426
}
2527

2628
protected function getDqlStatements(): array
2729
{
2830
return [
2931
\sprintf("SELECT DISTANCE(e.point, '(2.320041, 48.858889)') FROM %s e", ContainsPoints::class),
32+
\sprintf("SELECT DISTANCE(e.point, e.point2) FROM %s e", ContainsPoints::class),
33+
\sprintf("SELECT DISTANCE('(1.0, 1.0)', '(2.0, 2.0)') FROM %s e", ContainsPoints::class),
3034
];
3135
}
3236
}

0 commit comments

Comments
 (0)