Ticket #19873: 0001-19873-DebugCursor.execute-default-args-to-None.patch

File 0001-19873-DebugCursor.execute-default-args-to-None.patch, 755 bytes (added by Grégory Starck, 12 years ago)

simple workaround / fix

  • django/db/backends/util.py

    From b6596a995fa72aab60b203ad095d871d468e279e Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Gr=C3=A9gory=20Starck?= <g.starck@mondialtelecom.be>
    Date: Thu, 21 Feb 2013 13:56:02 +0100
    Subject: [PATCH] #19873: DebugCursor.execute: default args to None.
    
    ---
     django/db/backends/util.py |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/django/db/backends/util.py b/django/db/backends/util.py
    index 32e0f4f..06eeb50 100644
    a b class CursorWrapper(object):  
    3333
    3434class CursorDebugWrapper(CursorWrapper):
    3535
    36     def execute(self, sql, params=()):
     36    def execute(self, sql, params=None):
    3737        self.set_dirty()
    3838        start = time()
    3939        try:
Back to Top