Permalink
Browse files

use 0.12 compatible DB API (per http://trac-hacks.org/ticket/9803)

  • Loading branch information...
1 parent fa4304b commit e667722d1305d7786b575e717f267ab972a59e26 @ejucovy ejucovy committed Feb 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 e667722

Please sign in to comment.