﻿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
9055	Percent sign in SQL statement behaves different with CursorDebugWrapper	Thomas Güttler	Claude Paroz	"Hi,

cursor.execute(sql_string) behaves different if used with !CursorDebugWrapper or not, if the string
contains a percent sign.

If it is a psycopg2 cursor I need no escaping. If it is a !CursorDebugWrapper,
I need to do sql=sql.replace('%', '%%') first.

The one line patch is attached.

My question on comp.lang.python:
http://groups.google.de/group/comp.lang.python/browse_frm/thread/10ed61a621ea5aaa/0ff82407042441b1?hl=de&lnk=st&q=corner+case+python+guettler#0ff82407042441b1

Related: #3041"	Bug	closed	Database layer (models, ORM)	dev	Release blocker	fixed		hv@… walter+django@…	Ready for checkin	1	0	0	0	0	0
