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

Query from DB Manager SQL window no longer loads as new layer #29171

Closed
qgib opened this issue Feb 22, 2019 · 6 comments
Closed

Query from DB Manager SQL window no longer loads as new layer #29171

qgib opened this issue Feb 22, 2019 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin Easy fix Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Feb 22, 2019

Author Name: José de Paula Rodrigues Neto Assis (@espinafre)
Original Redmine Issue: 21353
Affected QGIS version: 3.5(master)
Redmine category:db_manager
Assignee: Alessandro Pasotti


I've just installed qgis-3.6.0 from sources, built Debian packages (current Debian Sid) and installed them. I opened one of my projects, which uses layers from PostGIS. I issued an SQL query from the SQL Window of DB Manager that returns some lines with geometry columns; so far, so good. I then check the "Load as new layer" box, select the primary key field, choose the correct geometry column and click the "Load" button. Nothing happens. I've uninstalled this 3.6.0 qgis, installed my previous 3.4.4, and the same actions produce a new layer on my project called QueryLayer.


Related issue(s): #29227 (duplicates), #29251 (duplicates)
Redmine related issue(s): 21410, 21434


@qgib
Copy link
Contributor Author

qgib commented Feb 22, 2019

Author Name: José de Paula Rodrigues Neto Assis (@espinafre)


Forgot to say that I've started with a clean state in both cases (i.e., I've deleted my .local/share/QGIS before starting up either version to confirm the bug).

The following simple SQL query (requires PostGIS) shows the bug:

select 1 as id, st_geomfromtext('POINT(-47.8669271 -15.7992462)', 4326) as geom;

This result in a layer with a single point in QGIS-3.4.4, and nothing with QGIS-3.6.0.

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


#9247


  • easy_fix was changed from 0 to 1
  • resolution was changed from to fixed/implemented
  • pull_request_patch_supplied was changed from 0 to 1
  • status_id was changed from Open to In Progress

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Alessandro Pasotti (@elpaso)


Applied in changeset 74aa8ca.


  • done_ratio was changed from 0 to 100
  • status_id was changed from In Progress to Closed

@qgib qgib closed this as completed Feb 23, 2019
@qgib
Copy link
Contributor Author

qgib commented Feb 27, 2019

Author Name: Alessandro Pasotti (@elpaso)


@qgib
Copy link
Contributor Author

qgib commented Mar 1, 2019

Author Name: Alessandro Pasotti (@elpaso)


@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin Regression Something which used to work, but doesn't anymore Easy fix 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! DB Manager Relating to the DB Manager core plugin Easy fix Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant