Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MINOR Fixed SQL quoting in DbDatetimeTest (broke PostgreSQL)

  • Loading branch information...
commit 908eeb4811350205845abef7167868eead786b24 1 parent e1931c1
@chillu chillu authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/DbDatetimeTest.php
View
4 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();
Please sign in to comment.
Something went wrong with that request. Please try again.