Permalink
Browse files

Implement getDateSubMonthExpression function.

  • Loading branch information...
1 parent b2141df commit 6c97818026be2f1cfdd7f83a4acd0aa8a1f8c011 @posulliv committed Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -86,7 +86,7 @@ public function getDateAddMonthExpression($date, $months)
public function getDateSubMonthExpression($date, $months)
{
- // TODO
+ return 'DATE_SUB(' . $date . ', INTERVAL ' . $months . ' MONTH)';
}
/**

0 comments on commit 6c97818

Please sign in to comment.