id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 2913 [patch] Logic error re sql param interpolation in CursorDebugWrapper.execute artdent@… Adrian Holovaty "The relevant code, inside db/backends/util.py, is as follows: {{{ #!python if not isinstance(params, (tuple, dict)): params = tuple(params) self.db.queries.append({ 'sql': sql % tuple(params), 'time': ""%.3f"" % (stop - start), }) }}} The second instance in that code of converting params into a tuple is erroneous (if params is a dictionary, it should not be converted into a tuple). As a result, string interpolation using the %(name)s syntax fails in debug mode." defect closed Database layer (models, ORM) 0.95 normal fixed Unreviewed 1 0 0 0 0 0