incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1359224 - /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py
Date Mon, 09 Jul 2012 15:39:23 GMT
Author: gjm
Date: Mon Jul  9 15:39:23 2012
New Revision: 1359224

URL: http://svn.apache.org/viewvc?rev=1359224&view=rev
Log:
dashboard: fixing problem with sql for postgres as instructed - #132

Modified:
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py?rev=1359224&r1=1359223&r2=1359224&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/ticket.py Mon Jul
 9 15:39:23 2012
@@ -187,7 +187,7 @@ class TicketFieldValuesWidget(WidgetBase
             fieldnm = query.group
             sql, v = query.get_sql() 
             sql = "SELECT COALESCE(%(name)s, '') , count(COALESCE(%(name)s, ''))"\
-                    "FROM (%(sql)s) GROUP BY COALESCE(%(name)s, '')" % \
+                    "FROM (%(sql)s) AS foo GROUP BY COALESCE(%(name)s, '')" % \
                     { 'name' : fieldnm, 'sql' : sql }
             db = self.env.get_db_cnx()
             try :



Mime
View raw message