Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Update dlg_import_vector.py
- Loading branch information
Showing
with
3 additions
and
4 deletions.
-
+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() |
|
|