Skip to content

Commit 08dd620

Browse files
committedMay 27, 2015
Create a view from the selected query (PR#1999)
1 parent d40c763 commit 08dd620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/db_manager/dlg_sql_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def createView( self ):
343343
name, ok = QInputDialog.getText(None, "View name", "View name")
344344
if ok:
345345
try:
346-
self.db.connector.createSpatialView( name, self.editSql.text() )
346+
self.db.connector.createSpatialView( name, self._getSqlQuery() )
347347
except BaseError as e:
348348
DlgDbError.showError(e, self)
349349

0 commit comments

Comments
 (0)
Please sign in to comment.