Skip to content

Commit

Permalink
Rename CursorProxy to CursorAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
strk committed Jan 9, 2020
1 parent e0ec0e0 commit 6aa87fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/db_manager/db_plugins/postgis/connector.py
Expand Up @@ -56,10 +56,10 @@ def classFactory():
return PostGisDBConnector


class CursorProxy():
class CursorAdapter():

def _debug(self, msg):
print("XXX CursorProxy[" + hex(id(self)) + "]: " + msg)
print("XXX CursorAdapter[" + hex(id(self)) + "]: " + msg)

def __init__(self, connection, sql=None):
self._debug("Created with sql: " + str(sql))
Expand Down Expand Up @@ -1119,15 +1119,15 @@ def _execute(self, cursor, sql):
if cursor != None:
cursor._execute(sql)
return cursor
return CursorProxy(self, sql)
return CursorAdapter(self, sql)

def _executeSql(self, sql):
return self.core_connection.executeSql(sql)

def _get_cursor(self, name=None):
if name is not None:
print("XXX _get_cursor called with a Name: " + name)
return CursorProxy(self, name)
return CursorAdapter(self, name)

def _commit(self):
pass
Expand Down

0 comments on commit 6aa87fa

Please sign in to comment.