Skip to content

Commit

Permalink
DB Manager: remove semicolon from SQL window queries
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Jun 2, 2020
1 parent 8da482b commit 4d7364c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Expand Up @@ -634,9 +634,10 @@ def _getSqlQuery(self):
return sql

def _getExecutableSqlQuery(self):
sql = self._getSqlQuery()
sql = self._getSqlQuery().strip()

uncommented_sql = check_comments_in_sql(sql)
uncommented_sql = uncommented_sql.rstrip(';')
return uncommented_sql

def uniqueChanged(self):
Expand Down

0 comments on commit 4d7364c

Please sign in to comment.