From b9087460bbdd9a1f1dad1e2b969e8382e6e3b56a Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Thu, 28 Jan 2016 21:12:29 +0100 Subject: [PATCH] Fixed wrong SQL in the querybuilder docs --- docs/guide/db-query-builder.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/db-query-builder.md b/docs/guide/db-query-builder.md index e96c05c..44b6123 100644 --- a/docs/guide/db-query-builder.md +++ b/docs/guide/db-query-builder.md @@ -176,7 +176,7 @@ $query->where('status=1'); $query->where('status=:status', [':status' => $status]); // raw SQL using MySQL YEAR() function on a date field -$query->where('YEAR(somedate) == 2015'); +$query->where('YEAR(somedate) = 2015'); ``` Do NOT embed variables directly in the condition like the following, especially if the variable values come from