Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Commit

Permalink
prevent string interpolation with default empty tuple when contains %…
Browse files Browse the repository at this point in the history
…, fixes issue #94
  • Loading branch information
jalvz committed Feb 18, 2016
1 parent 4f36b64 commit 8dadef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opbeat/instrumentation/packages/dbapi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def extract_signature(sql):
class CursorProxy(wrapt.ObjectProxy):
provider_name = None

def callproc(self, procname, params=()):
def callproc(self, procname, params=None):
return self._trace_sql(self.__wrapped__.callproc, procname,
params)

def execute(self, sql, params=()):
def execute(self, sql, params=None):
return self._trace_sql(self.__wrapped__.execute, sql, params)

def executemany(self, sql, param_list):
Expand Down

0 comments on commit 8dadef7

Please sign in to comment.