Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement getDateDiffExpression function.

  • Loading branch information...
commit 9e5af6beb387c567e7ffea3a5238c0fe8e180247 1 parent 74ff267
Padraig O'Sullivan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
2  lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
View
@@ -66,7 +66,7 @@ public function getLocateExpression($str, $substr, $startPos = false)
public function getDateDiffExpression($date1, $date2)
{
- // TODO
+ return 'DATEDIFF(' . $date1 . ', ' . $date2 . ')';
}
public function getDateAddDaysExpression($date, $days)
Please sign in to comment.
Something went wrong with that request. Please try again.