﻿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
3041	Bug with LIKE raw SQL in CursorDebugWrapper	yopi	Adrian Holovaty	"Using SQL statement including the % operator (in query such as:
SELECT count(*), avg(b) FROM t1 WHERE c LIKE '%%%s%%'"" %num_string)

the CursorDebugWrapper fails (/db/backends/util.py +19)
with error:
""not enough arguments for format string""
as the operator is not properly escaped.

Turning off the DEBUG variable bypass this debug."	defect	closed	Database layer (models, ORM)		normal	invalid			Unreviewed	0	0	0	0	0	0
