Skip to content
Permalink
Browse files

Update oracle, vlayer, spatialite connector.py

  • Loading branch information
Ailurupoda committed Jan 23, 2019
1 parent ad81e66 commit 00852f16422e6832c3ebd8c002a1d50550e9d18b
@@ -1336,7 +1336,7 @@ def deleteTableColumn(self, table, column):

def updateTableColumn(self, table, column, new_name=None,
data_type=None, not_null=None,
default=None):
default=None, comment=None):
"""Update properties of a column in a table."""

schema, tablename = self.getSchemaTableName(table)
@@ -583,7 +583,7 @@ def deleteTableColumn(self, table, column):
sql = u"SELECT DiscardGeometryColumn(%s, %s)" % (self.quoteString(tablename), self.quoteString(column))
self._execute_and_commit(sql)

def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None):
def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None, new_comment=None):
return False # column editing not supported

def renameTableColumn(self, table, column, new_name):
@@ -349,7 +349,7 @@ def addTableColumn(self, table, field_def):
def deleteTableColumn(self, table, column):
print("**unimplemented** deleteTableColumn")

def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None):
def updateTableColumn(self, table, column, new_name, new_data_type=None, new_not_null=None, new_default=None, new_comment=None):
print("**unimplemented** updateTableColumn")

def renameTableColumn(self, table, column, new_name):

0 comments on commit 00852f1

Please sign in to comment.
You can’t perform that action at this time.