Skip to content

Commit

Permalink
DB Manager: remove semicolon from SQL window queries
Browse files Browse the repository at this point in the history
Partial fix for #36205
  • Loading branch information
elpaso committed May 29, 2020
1 parent 41e541f commit dc2ff12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -653,7 +653,9 @@ def _getSqlQuery(self):
return sql

def _getExecutableSqlQuery(self):
sql = self._getSqlQuery()
sql = self._getSqlQuery().strip()
if sql.endswith(';'):
sql = sql[:-1]

uncommented_sql = check_comments_in_sql(sql)
return uncommented_sql
Expand Down

0 comments on commit dc2ff12

Please sign in to comment.