Skip to content
Permalink
Browse files

Merge pull request #1741 from Gustry/master

[DB Manager] Allow execution of the selected text in the SQL window
  • Loading branch information
NathanW2 committed Dec 21, 2014
2 parents 099e0b9 + 06c6ca0 commit df0605728224bbf099f394f4c742f18a4768551c
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/plugins/db_manager/dlg_sql_window.py
@@ -130,7 +130,13 @@ def clearSql(self):
self.editSql.setFocus()

def executeSql(self):
sql = self.editSql.text()

sql = ""
if self.editSql.hasSelectedText():
sql = self.editSql.selectedText()
else:
sql = self.editSql.text()

if sql == "":
return

0 comments on commit df06057

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