Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SQL-Layer from DB-Manager #29251

Closed
qgib opened this issue Mar 1, 2019 · 2 comments
Closed

Create SQL-Layer from DB-Manager #29251

qgib opened this issue Mar 1, 2019 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Mar 1, 2019

Author Name: Michael Otto (Michael Otto)
Original Redmine Issue: 21434
Affected QGIS version: 3.6.0
Redmine category:python_plugins


I will create a new Layer of a Oracle-Spatial DB by using a SQL-Command in DB-Manager.
The query works. Results are shown in the table.
But when i check "add as new layer" with id and geometry rows defined nothing will happens.
No layer is created and the following error appears on the python-log.

2019-03-01T08:52:39 WARNING Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 434, in loadSqlLayer
layer = self._getSqlLayer(self.filter)
File "C:/PROGRA1/QGIS31.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 396, in _getSqlLayer
query = self._getSqlExecutableQuery()
AttributeError: 'DlgSqlWindow' object has no attribute '_getSqlExecutableQuery'

2019-03-01T08:52:56 WARNING Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 628, in setFilter
layer = self._getSqlLayer("")
File "C:/PROGRA1/QGIS31.6/apps/qgis/./python/plugins\db_manager\dlg_sql_window.py", line 396, in _getSqlLayer
query = self._getSqlExecutableQuery()
AttributeError: 'DlgSqlWindow' object has no attribute '_getSqlExecutableQuery'


Related issue(s): #29171 (duplicates)
Redmine related issue(s): 21353


@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2019

Author Name: Alessandro Pasotti (@elpaso)


@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2019

Author Name: Alessandro Pasotti (@elpaso)


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Mar 1, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Plugins labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Plugins
Projects
None yet
Development

No branches or pull requests

1 participant