projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2292bd0
)
clarify the internal use of day_of_month instead of plain day
Alexander Hartmaier [Fri, 11 Mar 2011 17:43:30 +0000 (18:43 +0100)]
lib/DBIx/Class/SQLMaker/DateOps.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/SQLMaker/DateOps.pm
b/lib/DBIx/Class/SQLMaker/DateOps.pm
index
25fb271
..
3ea3e15
100644
(file)
--- a/
lib/DBIx/Class/SQLMaker/DateOps.pm
+++ b/
lib/DBIx/Class/SQLMaker/DateOps.pm
@@
-116,6
+116,8
@@
sub _where_op_GET_DATETIME_DAY {
my $lhs = shift;
+ # we use day_of_month instead of plain day internally
+ # because some databases also support day_of_week and day_of_year
return $self->_where_op_GET_DATETIME($op, $lhs, [day_of_month => $rhs])
}