Permalink
Browse files

Merge branch 'trac-0.12-compat'

  • Loading branch information...
2 parents a499999 + e667722 commit 3acd71a4a18c502880e627f4f49521a7c4185865 @ejucovy ejucovy committed Feb 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 multireposearch/sqlindexer.py
View
4 multireposearch/sqlindexer.py
@@ -83,7 +83,9 @@ def do_reindex(db):
def find_words(self, query):
db = self.env.get_read_db()
sql, args = search_to_sql(db, ['contents'], query)
- for id, filename, repo in db(self.query % sql, args):
+ cursor = db.cursor()
+ cursor.execute(self.query % sql, args)
+ for id, filename, repo in cursor:
yield filename, repo

0 comments on commit 3acd71a

Please sign in to comment.