Skip to content
Permalink
Browse files

[dbmanager] fixes #17476: QGIS master: update SQL layer error if name…

… contains uppercase chars
  • Loading branch information
slarosa committed Nov 16, 2017
1 parent b2c6464 commit 9b4a6c08f8f2ad57a65119f59752c1d2667a8d77
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/db_manager/dlg_sql_layer_window.py
@@ -154,9 +154,9 @@ def __init__(self, iface, layer, parent=None):
if not sql.startswith('(') and not sql.endswith(')'):
schema = uri.schema()
if schema and schema.upper() != 'PUBLIC':
sql = 'SELECT * FROM ' + schema + '.' + sql
sql = 'SELECT * FROM {0}.{1}'.format(self.db.connector.quoteId(schema), self.db.connector.quoteId(sql))
else:
sql = 'SELECT * FROM ' + sql
sql = 'SELECT * FROM {0}'.format(self.db.connector.quoteId(sql))
self.editSql.setText(sql)
self.executeSql()

0 comments on commit 9b4a6c0

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