Skip to content

Commit

Permalink
Update dlg_import_vector.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailurupoda authored Dec 27, 2018
1 parent fe1292c commit 5b8de9a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/plugins/db_manager/dlg_import_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def chooseInputFile(self):

self.cboInputLayer.setEditText(filename)


def reloadInputLayer(self):
""" create the input layer and update available options """
if self.mode != self.ASK_FOR_INPUT_MODE:
Expand Down Expand Up @@ -369,10 +368,10 @@ def accept(self):
if self.chkSpatialIndex.isEnabled() and self.chkSpatialIndex.isChecked():
self.db.connector.createSpatialIndex((schema, table), geom)

#Add comment on table
# add comment on table
if self.chkCom.isEnabled() and self.chkCom.isChecked():
#Using connector executing COMMENT ON TABLE query (with editCome.text() value)
self.db.connector._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS E\'{2}E\''.format(schema, table ,self.editCom.text()))
# using connector executing COMMENT ON TABLE query (with editCome.text() value)
self.db.connector._execute(None, 'COMMENT ON TABLE "{0}"."{1}" IS E\'{2}E\''.format(schema, table, self.editCom.text()))

self.db.connection().reconnect()
self.db.refresh()
Expand Down

0 comments on commit 5b8de9a

Please sign in to comment.