Modify ↓
Opened 21 years ago
Closed 21 years ago
#3 closed enhancement (fixed)
Getting the text from the newest revision should use "LIMIT 1" in SQL clause
| Reported by: | Juanma Barranquero | Owned by: | Alec Thomas |
|---|---|---|---|
| Priority: | normal | Component: | TocMacro |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: |
Description
I think this would be a small enhancement, at least for heavily modified pages.
-
TOC.py
old new 43 43 cursor = db.cursor() 44 cursor.execute("select text from wiki where name='%s' order by version desc " % page)44 cursor.execute("select text from wiki where name='%s' order by version desc limit 1" % page) 45 45 row = cursor.fetchone()
Attachments (0)
Change History (2)
comment:1 Changed 21 years ago by
| Summary: | Getting the text from the newest revision should use {{{LIMIT 1}}} in SQL clause → Getting the text from the newest revision should use "LIMIT 1" in SQL clause |
|---|
comment:2 Changed 21 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



Done, thanks for the request.