Changes between Initial Version and Version 1 of Ticket #9976, comment 1
- Timestamp:
- Jun 29, 2015, 8:13:26 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9976, comment 1
initial v1 1 1 The solution is to modify a SQL statement in the macros.py file to be valid with Postgresql. 2 2 Below is the new SQL statement (macros.py (line 246)): 3 3 4 current: 4 {{{ 5 #!sql 5 {{{#!sql 6 6 sql = "SELECT name, text, max(version) FROM wiki WHERE name LIKE '%s%%' GROUP BY name ORDER BY name" % curpage 7 7 }}} 8 8 9 9 new: 10 {{{ 11 #!sql 10 {{{#!sql 12 11 sql = "SELECT name, text, version FROM wiki WHERE name LIKE '%s%%' AND version = (select max(version) FROM wiki WHERE name LIKE '%s%%')" % (curpage, curpage) 13 12 }}}