Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 4886:a116de39e38c
Fix sort-representation for RDBMS backends
...when sorting on Multilinks in python
This fixes issue2550834 "postgres gets error with Date attribute in
groupby sort".
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 04 Apr 2014 08:09:30 +0200 |
| parents | e68920390aad |
| children | 0a05c4d9a221 |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Wed Apr 02 17:43:19 2014 +0200 +++ b/roundup/backends/rdbms_common.py Fri Apr 04 08:09:30 2014 +0200 @@ -2675,7 +2675,8 @@ # Compute values needed for sorting in proptree.sort for p in proptree: if hasattr(p, 'auxcol'): - p.sort_ids = p.sort_result = [row[p.auxcol] for row in l] + p.sort_ids = [row[p.auxcol] for row in l] + p.sort_result = p._sort_repr (p.propclass.sort_repr, p.sort_ids) # return the IDs (the first column) # XXX numeric ids l = [str(row[0]) for row in l]
