From 5c08cda6113cf65ca489385bdbece43cd8b1913c Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Tue, 10 May 2011 12:28:29 +0000 Subject: [PATCH] [1.3.X] Fixed #13648 - '%s' escaping support for sqlite3 regression. Thanks to master for the report and initial patch, and salgado and others for work on the patch. Backport of [16209] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16210 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/sqlite3/base.py | 2 +- tests/regressiontests/backends/tests.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 8344bad2a0..2de2818100 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -220,7 +220,7 @@ class DatabaseWrapper(BaseDatabaseWrapper): if self.settings_dict['NAME'] != ":memory:": BaseDatabaseWrapper.close(self) -FORMAT_QMARK_REGEX = re.compile(r'(?![^%])%s') +FORMAT_QMARK_REGEX = re.compile(r'(?