DB Manager doesn't import PostGIS data in view with dblink #19607
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
Author Name: Moreno Comelli (Moreno Comelli)
Original Redmine Issue: 11311
Affected QGIS version: master
Redmine category:db_manager
I tried to import in QGIS a view with a PostGIS geometry column, which data are obtained from a second db (using dblink in Postgres).
It works through the normal 'Add PostGIS layer', not through DB Manager.
CREATE OR REPLACE VIEW my_view AS
SELECT id, geomfromtext('POINT('|| x_coo || ' ' || y_coo || ')', 3003)
FROM dblink('host=127.0.0.1 port=5432 dbname=xxx user=xxx password=xxx',
'SELECT id, x_coo, y_coo FROM my_table;') AS m (id numeric, x_coo numeric, y_coo numeric);
The text was updated successfully, but these errors were encountered: