From 908eeb4811350205845abef7167868eead786b24 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 31 May 2011 08:18:50 +1200 Subject: [PATCH] MINOR Fixed SQL quoting in DbDatetimeTest (broke PostgreSQL) --- tests/model/DbDatetimeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/model/DbDatetimeTest.php b/tests/model/DbDatetimeTest.php index 471e9e76d..add4c1c27 100644 --- a/tests/model/DbDatetimeTest.php +++ b/tests/model/DbDatetimeTest.php @@ -91,7 +91,7 @@ class DbDatetimeTest extends FunctionalTest { $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 @@ class DbDatetimeTest extends FunctionalTest { $query = new SQLQuery(); $query->select($this->adapter->datetimeDifferenceClause('"LastEdited"', '"Created"') . ' AS "test"') - ->from("DbDateTimeTest_Team") + ->from('"DbDateTimeTest_Team"') ->limit(1); $result = $query->execute()->value();