id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
3	Getting the text from the newest revision should use "LIMIT 1" in SQL clause	Juanma Barranquero	athomas	I think this would be a small enhancement, at least for heavily modified pages.\r\n\r\n{{{\r\n#!text/x-diff\r\n--- TOC.py.orig_Mon Nov 29 15:58:54 2004\r\n+++ TOC.py_Mon Nov 29 16:43:31 2004\r\n@@ -43,3 +43,3 @@\r\n             cursor = db.cursor()\r\n-            cursor.execute("select text from wiki where name='%s' order by version desc" % page)\r\n+            cursor.execute("select text from wiki where name='%s' order by version desc limit 1" % page)\r\n             row = cursor.fetchone()\r\n}}}	enhancement	closed	normal	TocMacro	normal	fixed			
