Fixed wrong literal SQL + bind examples (missing operator and placeholders).
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Manual / FAQ.pod
index df12b83..cf75fd2 100644 (file)
@@ -247,7 +247,7 @@ documentation for details.
 
 To use an SQL function on the left hand side of a comparison:
 
- ->search({ -nest => \[ 'YEAR(date_of_birth)', [ dummy => 1979 ] ] });
+ ->search({ -nest => \[ 'YEAR(date_of_birth) = ?', [ dummy => 1979 ] ] });
 
 Or, if you have quoting off: