[Jifty-commit] jifty-dbi branch, master, updated. 0.74-6-g1f52a9d

Jifty commits jifty-commit at lists.jifty.org
Tue Jan 29 14:40:59 EST 2013


The branch, master has been updated
       via  1f52a9de918bdabfe65668e0238c04c2f5587315 (commit)
      from  ecdcb17af5e4d8debd3b58f17e30cede29b309d5 (commit)

Summary of changes:
 t/14handle-pg.t | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 1f52a9de918bdabfe65668e0238c04c2f5587315
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Jan 29 11:39:23 2013 -0800

    Update test to account for the ported bug fix in f9439a0
    
    The aggregate functions may now be MAX() or MIN() instead of just min().

diff --git a/t/14handle-pg.t b/t/14handle-pg.t
index 8733ade..746535a 100644
--- a/t/14handle-pg.t
+++ b/t/14handle-pg.t
@@ -64,8 +64,8 @@ package main;
     $package->distinct_query(\$stmt, $collection);
     is $stmt,
        'SELECT blah FROM ( SELECT main.id FROM select * from users  GROUP BY main.id'
-       . '   ORDER BY main.id ASC, min(main.name) DESC, min(foo.id) DESC, '
-       . 'min(foo.name) DESC, id ASC, min(blood) ASC, min(session_offset) ASC  ) '
+       . '   ORDER BY main.id ASC, MAX(main.name) DESC, MAX(foo.id) DESC, '
+       . 'MAX(foo.name) DESC, id ASC, MIN(blood) ASC, MIN(session_offset) ASC  ) '
        . 'distinctquery, bars main WHERE (main.id = distinctquery.id)',
        'distinct_query works';
 }

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list