File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ public function whereDistance(
49
49
{
50
50
$ this ->whereRaw (
51
51
sprintf (
52
- 'ST_DISTANCE(%s, %s) %s %s ' ,
52
+ 'ST_DISTANCE(%s, %s) %s ? ' ,
53
53
$ this ->getQuery ()->getGrammar ()->wrap ($ column ),
54
54
$ this ->toExpression ($ geometryOrColumn ),
55
55
$ operator ,
56
- $ value ,
57
- )
56
+ ) ,
57
+ [ $ value ],
58
58
);
59
59
60
60
return $ this ;
@@ -109,12 +109,12 @@ public function whereDistanceSphere(
109
109
{
110
110
$ this ->whereRaw (
111
111
sprintf (
112
- 'ST_DISTANCE_SPHERE(%s, %s) %s %s ' ,
112
+ 'ST_DISTANCE_SPHERE(%s, %s) %s ? ' ,
113
113
$ this ->getQuery ()->getGrammar ()->wrap ($ column ),
114
114
$ this ->toExpression ($ geometryOrColumn ),
115
115
$ operator ,
116
- $ value
117
- )
116
+ ),
117
+ [ $ value ],
118
118
);
119
119
120
120
return $ this ;
@@ -276,11 +276,11 @@ public function whereSrid(
276
276
{
277
277
$ this ->whereRaw (
278
278
sprintf (
279
- 'ST_SRID(%s) %s %s ' ,
279
+ 'ST_SRID(%s) %s ? ' ,
280
280
$ this ->getQuery ()->getGrammar ()->wrap ($ column ),
281
281
$ operator ,
282
- $ value ,
283
- )
282
+ ) ,
283
+ [ $ value ],
284
284
);
285
285
286
286
return $ this ;
You can’t perform that action at this time.
0 commit comments