Skip to content

Commit

Permalink
Merge pull request #36823 from elpaso/bugfix-gh-36205-dbmanager-strip…
Browse files Browse the repository at this point in the history
…-semicolon

DB Manager: remove semicolon from SQL window queries
  • Loading branch information
elpaso committed May 29, 2020
2 parents da21127 + dc2ff12 commit 81abbbb
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 81abbbb

Please sign in to comment.