summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-12-22 16:13:08 -0800
committerBharat Mediratta <bharat@menalto.com>2009-12-22 16:13:08 -0800
commit71e154b6748a2bedd2289133c6b4c6f3f58d3603 (patch)
treeaf2d400c6557b7302ce915c1b4a4568950a1b5d0 /modules
parentbdd7c68ede05d46ba758b0ab3e04b46202d761af (diff)
Use a Database_Expression to handle the MAX() function.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/tests/Gallery_Installer_Test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Gallery_Installer_Test.php b/modules/gallery/tests/Gallery_Installer_Test.php
index f36f638f..43399fb4 100644
--- a/modules/gallery/tests/Gallery_Installer_Test.php
+++ b/modules/gallery/tests/Gallery_Installer_Test.php
@@ -35,7 +35,7 @@ class Gallery_Installer_Test extends Unit_Test_Case {
public function install_creates_root_item_test() {
$max_right_ptr = ORM::factory("item")
- ->select("MAX(`right_ptr`) AS `right_ptr`")
+ ->select(new Database_Expression("MAX(`right_ptr`) AS `right_ptr`"))
->find()->right_ptr;
$root = ORM::factory('item')->find(1);
$this->assert_equal("Gallery", $root->title);