Skip to content

Commit d236e30

Browse files
committedOct 19, 2016
Fix [DB Manager] Allow lowercase field names for homogenize PostGIS Import
1 parent 003504a commit d236e30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎python/plugins/db_manager/dlg_import_vector.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def setupWorkingMode(self, mode):
7676

7777
self.editPrimaryKey.setText(self.default_pk)
7878
self.editGeomColumn.setText(self.default_geom)
79+
80+
self.chkLowercaseFieldNames.setEnabled(self.db.hasLowercaseFieldNamesOption())
81+
if not self.chkLowercaseFieldNames.isEnabled():
82+
self.chkLowercaseFieldNames.setChecked(False)
7983
else:
8084
# set default values
8185
self.checkSupports()

0 commit comments

Comments
 (0)
Please sign in to comment.