Skip to content

Commit

Permalink
Merge 14c97af into d4a3be2
Browse files Browse the repository at this point in the history
  • Loading branch information
thieman committed Jun 6, 2018
2 parents d4a3be2 + 14c97af commit a71dbb7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cid/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.2.0'
__version__ = '0.2.1'


default_app_config = 'cid.apps.CidAppConfig'
7 changes: 5 additions & 2 deletions cid/backends/mysql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

class DatabaseWrapper(BaseMySQLWrapper):

def create_cursor(self):
base_cursor = super(DatabaseWrapper, self).create_cursor()
def create_cursor(self, name=None):
if name:
base_cursor = super(DatabaseWrapper, self).create_cursor(name)
else:
base_cursor = super(DatabaseWrapper, self).create_cursor()
return CidCursorWrapper(base_cursor)
7 changes: 5 additions & 2 deletions cid/backends/oracle/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

class DatabaseWrapper(BaseOracleWrapper):

def create_cursor(self):
base_cursor = super(DatabaseWrapper, self).create_cursor()
def create_cursor(self, name=None):
if name:
base_cursor = super(DatabaseWrapper, self).create_cursor(name)
else:
base_cursor = super(DatabaseWrapper, self).create_cursor()
return CidCursorWrapper(base_cursor)
7 changes: 5 additions & 2 deletions cid/backends/postgresql/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

class DatabaseWrapper(BasePostgresqlWrapper):

def create_cursor(self):
base_cursor = super(DatabaseWrapper, self).create_cursor()
def create_cursor(self, name=None):
if name:
base_cursor = super(DatabaseWrapper, self).create_cursor(name)
else:
base_cursor = super(DatabaseWrapper, self).create_cursor()
return CidCursorWrapper(base_cursor)
7 changes: 5 additions & 2 deletions cid/backends/sqlite3/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

class DatabaseWrapper(BaseSqliteWrapper):

def create_cursor(self):
base_cursor = super(DatabaseWrapper, self).create_cursor()
def create_cursor(self, name=None):
if name:
base_cursor = super(DatabaseWrapper, self).create_cursor(name)
else:
base_cursor = super(DatabaseWrapper, self).create_cursor()
return CidCursorWrapper(base_cursor)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
history = open('HISTORY.rst').read().replace('.. :changelog:', '')

setup(
name='django-cid',
name='mbq-django-cid',
version=version,
description="""Correlation IDs in Django for debugging requests""",
long_description=readme + '\n\n' + history,
Expand Down

0 comments on commit a71dbb7

Please sign in to comment.