Permalink
Browse files

Implement getDateSubDaysExpression function.

  • Loading branch information...
1 parent 227f159 commit 4f25bd20277e087ec0637e63ba824f5dfea1eef6 @posulliv committed Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -76,7 +76,7 @@ public function getDateAddDaysExpression($date, $days)
public function getDateSubDaysExpression($date, $days)
{
- // TODO
+ return 'DATE_SUB(' . $date . ', INTERVAL ' . $days . ' DAY)';
}
public function getDateAddMonthExpression($date, $months)

0 comments on commit 4f25bd2

Please sign in to comment.