Skip to content

Commit 8ed7971

Browse files
committed
Another fix try
1 parent 832eb40 commit 8ed7971

File tree

7 files changed

+7
-8
lines changed

7 files changed

+7
-8
lines changed

python/plugins/db_manager/db_plugins/gpkg/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def runVacuum(self):
620620
""" run vacuum on the db """
621621
self._execute_and_commit("VACUUM")
622622

623-
def commentTable(self, schema, tablename, comment=None, db):
623+
def commentTable(self, schema, tablename, db, comment=None):
624624
"""Comment the table"""
625625
return ''
626626

python/plugins/db_manager/db_plugins/oracle/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1307,7 +1307,7 @@ def renameSchema(self, schema, new_schema):
13071307
# Unsupported in Oracle
13081308
pass
13091309

1310-
def commentTable(self, schema, tablename, comment=None, db):
1310+
def commentTable(self, schema, tablename, db, comment=None):
13111311
"""Comment the table"""
13121312
return ''
13131313

python/plugins/db_manager/db_plugins/postgis/connector.py

-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,6 @@ def commentTable(self, schema, tablename, comment=None, db):
748748
else:
749749
db.connector._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS E\'{2}\';'.format(schema, tablename, comment))
750750

751-
752751
def getComment(self, tablename, field, db):
753752
"""Returns the comment for a field"""
754753
# SQL Query checking if a comment exists for the field

python/plugins/db_manager/db_plugins/spatialite/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def runVacuum(self):
571571
c.execute('VACUUM')
572572
self.connection.isolation_level = '' # reset to default isolation
573573

574-
def commentTable(self, schema, tablename, comment=None, db):
574+
def commentTable(self, schema, tablename, db, comment=None):
575575
"""Comment the table"""
576576
return ''
577577

python/plugins/db_manager/db_plugins/vlayers/connector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def runVacuum(self):
342342
print("**unimplemented** runVacuum")
343343
return False
344344

345-
def commentTable(self, schema, tablename, comment=None, db):
345+
def commentTable(self, schema, tablename, db, comment=None):
346346
"""Comment the table"""
347347
return ''
348348

python/plugins/db_manager/dlg_import_vector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ def accept(self):
376376
supportCom = self.db.supportsComment()
377377
if self.chkCom.isEnabled() and self.chkCom.isChecked() and supportCom == True:
378378
# using connector executing COMMENT ON TABLE query (with editCome.text() value)
379-
self.db.connector.commentTable(schema, table, self.editCom.text(), self.db)
379+
self.db.connector.commentTable(schema, table, self.db, self.editCom.text())
380380

381381
self.db.connection().reconnect()
382382
self.db.refresh()

python/plugins/db_manager/dlg_table_properties.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def createComment(self):
341341
schem = self.table.schema().name
342342
tab = self.table.name
343343
com = self.viewComment.text()
344-
self.db.connector.commentTable(schem, tab, com, self.db)
344+
self.db.connector.commentTable(schem, tab, self.db, com)
345345
except DbError as e:
346346
DlgDbError.showError(e, self)
347347
return
@@ -354,7 +354,7 @@ def deleteComment(self):
354354
try:
355355
schem = self.table.schema().name
356356
tab = self.table.name
357-
self.db.connector.unCommentTable(schem, tab, self.db)
357+
self.db.connector.commentTable(schem, tab, self.db)
358358
except DbError as e:
359359
DlgDbError.showError(e, self)
360360
return

0 commit comments

Comments
 (0)