@@ -31,7 +31,7 @@ public function withDistance(
31
31
$ this ->selectRaw (
32
32
sprintf (
33
33
'ST_DISTANCE(%s, %s) AS %s ' ,
34
- " ` { $ column} ` " ,
34
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
35
35
$ this ->toExpression ($ geometryOrColumn ),
36
36
$ alias ,
37
37
)
@@ -50,7 +50,7 @@ public function whereDistance(
50
50
$ this ->whereRaw (
51
51
sprintf (
52
52
'ST_DISTANCE(%s, %s) %s %s ' ,
53
- " ` { $ column} ` " ,
53
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
54
54
$ this ->toExpression ($ geometryOrColumn ),
55
55
$ operator ,
56
56
$ value ,
@@ -69,7 +69,7 @@ public function orderByDistance(
69
69
$ this ->orderByRaw (
70
70
sprintf (
71
71
'ST_DISTANCE(%s, %s) %s ' ,
72
- " ` { $ column} ` " ,
72
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
73
73
$ this ->toExpression ($ geometryOrColumn ),
74
74
$ direction ,
75
75
)
@@ -91,7 +91,7 @@ public function withDistanceSphere(
91
91
$ this ->selectRaw (
92
92
sprintf (
93
93
'ST_DISTANCE_SPHERE(%s, %s) AS %s ' ,
94
- " ` { $ column} ` " ,
94
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
95
95
$ this ->toExpression ($ geometryOrColumn ),
96
96
$ alias ,
97
97
)
@@ -110,7 +110,7 @@ public function whereDistanceSphere(
110
110
$ this ->whereRaw (
111
111
sprintf (
112
112
'ST_DISTANCE_SPHERE(%s, %s) %s %s ' ,
113
- " ` { $ column} ` " ,
113
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
114
114
$ this ->toExpression ($ geometryOrColumn ),
115
115
$ operator ,
116
116
$ value
@@ -129,7 +129,7 @@ public function orderByDistanceSphere(
129
129
$ this ->orderByRaw (
130
130
sprintf (
131
131
'ST_DISTANCE_SPHERE(%s, %s) %s ' ,
132
- " ` { $ column} ` " ,
132
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
133
133
$ this ->toExpression ($ geometryOrColumn ),
134
134
$ direction
135
135
)
@@ -143,7 +143,7 @@ public function whereWithin(string $column, Geometry|string $geometryOrColumn):
143
143
$ this ->whereRaw (
144
144
sprintf (
145
145
'ST_WITHIN(%s, %s) ' ,
146
- " ` { $ column} ` " ,
146
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
147
147
$ this ->toExpression ($ geometryOrColumn ),
148
148
)
149
149
);
@@ -156,7 +156,7 @@ public function whereNotWithin(string $column, Geometry|string $geometryOrColumn
156
156
$ this ->whereRaw (
157
157
sprintf (
158
158
'ST_WITHIN(%s, %s) = 0 ' ,
159
- " ` { $ column} ` " ,
159
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
160
160
$ this ->toExpression ($ geometryOrColumn ),
161
161
)
162
162
);
@@ -169,7 +169,7 @@ public function whereContains(string $column, Geometry|string $geometryOrColumn)
169
169
$ this ->whereRaw (
170
170
sprintf (
171
171
'ST_CONTAINS(%s, %s) ' ,
172
- " ` { $ column} ` " ,
172
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
173
173
$ this ->toExpression ($ geometryOrColumn ),
174
174
)
175
175
);
@@ -182,7 +182,7 @@ public function whereNotContains(string $column, Geometry|string $geometryOrColu
182
182
$ this ->whereRaw (
183
183
sprintf (
184
184
'ST_CONTAINS(%s, %s) = 0 ' ,
185
- " ` { $ column} ` " ,
185
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
186
186
$ this ->toExpression ($ geometryOrColumn ),
187
187
)
188
188
);
@@ -195,7 +195,7 @@ public function whereTouches(string $column, Geometry|string $geometryOrColumn):
195
195
$ this ->whereRaw (
196
196
sprintf (
197
197
'ST_TOUCHES(%s, %s) ' ,
198
- " ` { $ column} ` " ,
198
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
199
199
$ this ->toExpression ($ geometryOrColumn ),
200
200
)
201
201
);
@@ -208,7 +208,7 @@ public function whereIntersects(string $column, Geometry|string $geometryOrColum
208
208
$ this ->whereRaw (
209
209
sprintf (
210
210
'ST_INTERSECTS(%s, %s) ' ,
211
- " ` { $ column} ` " ,
211
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
212
212
$ this ->toExpression ($ geometryOrColumn ),
213
213
)
214
214
);
@@ -221,7 +221,7 @@ public function whereCrosses(string $column, Geometry|string $geometryOrColumn):
221
221
$ this ->whereRaw (
222
222
sprintf (
223
223
'ST_CROSSES(%s, %s) ' ,
224
- " ` { $ column} ` " ,
224
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
225
225
$ this ->toExpression ($ geometryOrColumn ),
226
226
)
227
227
);
@@ -234,7 +234,7 @@ public function whereDisjoint(string $column, Geometry|string $geometryOrColumn)
234
234
$ this ->whereRaw (
235
235
sprintf (
236
236
'ST_DISJOINT(%s, %s) ' ,
237
- " ` { $ column} ` " ,
237
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
238
238
$ this ->toExpression ($ geometryOrColumn ),
239
239
)
240
240
);
@@ -247,7 +247,7 @@ public function whereOverlaps(string $column, Geometry|string $geometryOrColumn)
247
247
$ this ->whereRaw (
248
248
sprintf (
249
249
'ST_OVERLAPS(%s, %s) ' ,
250
- " ` { $ column} ` " ,
250
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
251
251
$ this ->toExpression ($ geometryOrColumn ),
252
252
)
253
253
);
@@ -260,7 +260,7 @@ public function whereEquals(string $column, Geometry|string $geometryOrColumn):
260
260
$ this ->whereRaw (
261
261
sprintf (
262
262
'ST_EQUALS(%s, %s) ' ,
263
- " ` { $ column} ` " ,
263
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
264
264
$ this ->toExpression ($ geometryOrColumn ),
265
265
)
266
266
);
@@ -277,7 +277,7 @@ public function whereSrid(
277
277
$ this ->whereRaw (
278
278
sprintf (
279
279
'ST_SRID(%s) %s %s ' ,
280
- " ` { $ column} ` " ,
280
+ $ this -> getQuery ()-> getGrammar ()-> wrap ( $ column) ,
281
281
$ operator ,
282
282
$ value ,
283
283
)
0 commit comments