Skip to content

Commit 24f3cc5

Browse files
committedOct 19, 2016
Fix [DB Manager] Allow lowercase field names for homogenize PostGIS Import
1 parent 7cec859 commit 24f3cc5

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
@@ -74,6 +74,10 @@ def setupWorkingMode(self, mode):
7474

7575
self.editPrimaryKey.setText(self.default_pk)
7676
self.editGeomColumn.setText(self.default_geom)
77+
78+
self.chkLowercaseFieldNames.setEnabled(self.db.hasLowercaseFieldNamesOption())
79+
if not self.chkLowercaseFieldNames.isEnabled():
80+
self.chkLowercaseFieldNames.setChecked(False)
7781
else:
7882
# set default values
7983
self.checkSupports()

0 commit comments

Comments
 (0)
Please sign in to comment.