projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fixed wrong literal SQL + bind examples (missing operator and placeholders).
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Manual
/
FAQ.pod
diff --git
a/lib/DBIx/Class/Manual/FAQ.pod
b/lib/DBIx/Class/Manual/FAQ.pod
index
df12b83
..
cf75fd2
100644
(file)
--- a/
lib/DBIx/Class/Manual/FAQ.pod
+++ b/
lib/DBIx/Class/Manual/FAQ.pod
@@
-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: