Permalink
Browse files

MINOR Fixed SQL quoting in DbDatetimeTest (broke PostgreSQL)

  • Loading branch information...
1 parent e1931c1 commit 908eeb4811350205845abef7167868eead786b24 @chillu chillu committed May 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/DbDatetimeTest.php
@@ -91,7 +91,7 @@ function testDbDatetimeInterval() {
$query = new SQLQuery();
$query->select($this->adapter->datetimeIntervalClause('"Created"', '-15 Minutes') . ' AS "test"')
- ->from("DbDateTimeTest_Team")
+ ->from('"DbDateTimeTest_Team"')
->limit(1);
$result = $query->execute()->value();
$this->matchesRoughly($result, date('Y-m-d H:i:s', strtotime(Dataobject::get_one('DbDateTimeTest_Team')->Created) - 900), '15 Minutes before creating fixture');
@@ -116,7 +116,7 @@ function testDbDatetimeDifference() {
$query = new SQLQuery();
$query->select($this->adapter->datetimeDifferenceClause('"LastEdited"', '"Created"') . ' AS "test"')
- ->from("DbDateTimeTest_Team")
+ ->from('"DbDateTimeTest_Team"')
->limit(1);
$result = $query->execute()->value();

0 comments on commit 908eeb4

Please sign in to comment.