Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implement getDateSubDaysExpression function.

  • Loading branch information...
commit 4f25bd20277e087ec0637e63ba824f5dfea1eef6 1 parent 227f159
Padraig O'Sullivan authored August 11, 2012
2  lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -76,7 +76,7 @@ public function getDateAddDaysExpression($date, $days)
76 76
 
77 77
     public function getDateSubDaysExpression($date, $days)
78 78
     {
79  
-        // TODO
  79
+        return 'DATE_SUB(' . $date . ', INTERVAL ' . $days . ' DAY)';
80 80
     }
81 81
 
82 82
     public function getDateAddMonthExpression($date, $months)

0 notes on commit 4f25bd2

Please sign in to comment.
Something went wrong with that request. Please try again.