Skip to content
Permalink
Browse files

Update dlg_import_vector.py

  • Loading branch information
Ailurupoda committed Dec 27, 2018
1 parent fe1292c commit 5b8de9abaeaaedcaaaf444672470cb46f816dd39
Showing with 3 additions and 4 deletions.
  1. +3 −4 python/plugins/db_manager/dlg_import_vector.py
@@ -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:
@@ -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()

0 comments on commit 5b8de9a

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