8000 Fixed issue: Added a call to the getValue method. Without this, raw S… · lozobojan/laravel-framework@d19e995 · GitHub
[go: up one dir, main page]

Skip to content

Commit d19e995

Browse files
author
Bojan Lozo
committed
Fixed issue: Added a call to the getValue method. Without this, raw SQL queries in conditions throw an exception.
1 parent 9451a9e commit d19e995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Database/Query/Grammars/Grammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ protected function concatenateWhereClauses($query, $sql)
246246
*/
247247
protected function whereRaw(Builder $query, $where)
248248
{
249-
return $where['sql'];
249+
return $where['sql']->getValue($this);
250250
}
251251

252252
/**

0 commit comments

Comments
 (0)
0