1
0
mirror of https://github.com/django/django.git synced 2025-07-05 02:09:13 +00:00

[boulder-oracle-sprint] fixed bug in [3967]

git-svn-id: http://code.djangoproject.com/svn/django/branches/boulder-oracle-sprint@3973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2006-11-04 20:24:01 +00:00
parent 6ab11188d5
commit c7b4311864

View File

@ -71,7 +71,7 @@ class FormatStylePlaceholderCursor(Database.Cursor):
def execute(self, query, params=None):
if params is None:
params = []
args = [(':arg%s' % i) for i in range(num_params)]
args = [(':arg%s' % i) for i in range(len(params))]
query = query % tuple(args)
# cx can not execute the query with the closing ';'