Skip to content

Commit 336b44b

Browse files
committed
Disable operators for Mongo
1 parent 6ca8dcd commit 336b44b

File tree

4 files changed

+402
-0
lines changed

4 files changed

+402
-0
lines changed

src/Database/Adapter.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,13 @@ abstract public function getSupportForSpatialAttributes(): bool;
10771077
*/
10781078
abstract public function getSupportForSpatialIndexNull(): bool;
10791079

1080+
/**
1081+
* Does the adapter support operators?
1082+
*
1083+
* @return bool
1084+
*/
1085+
abstract public function getSupportForOperators(): bool;
1086+
10801087
/**
10811088
* Adapter supports optional spatial attributes with existing rows.
10821089
*

src/Database/Adapter/Mongo.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,6 +2889,16 @@ public function getSupportForSpatialIndexNull(): bool
28892889
return false;
28902890
}
28912891

2892+
/**
2893+
* Does the adapter support operators?
2894+
*
2895+
* @return bool
2896+
*/
2897+
public function getSupportForOperators(): bool
2898+
{
2899+
return false;
2900+
}
2901+
28922902
/**
28932903
* Does the adapter includes boundary during spatial contains?
28942904
*

src/Database/Adapter/SQL.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,16 @@ public function getSupportForSpatialIndexNull(): bool
15521552
return false;
15531553
}
15541554

1555+
/**
1556+
* Does the adapter support operators?
1557+
*
1558+
* @return bool
1559+
*/
1560+
public function getSupportForOperators(): bool
1561+
{
1562+
return true;
1563+
}
1564+
15551565
/**
15561566
* Does the adapter support order attribute in spatial indexes?
15571567
*

0 commit comments

Comments
 (0)