Skip to content
Permalink
Browse files

allow execution of the selected text in the SQL window

  • Loading branch information
Gustry committed Dec 19, 2014
1 parent ddb406d commit 06c6ca0044657280df79fb8bcce8fcef8c85ccba
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 06c6ca0

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