Creating a view in DB Manager causes python error and qgis must be killed #16979
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
DB Manager
Relating to the DB Manager core plugin
High Priority
Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 8151
Affected QGIS version: master
Redmine category:db_manager
Apparently in DB Manager I can create a view like
@create VIEW test_view AS
SELECT a.gid AS gid, a.descricao, ST_Intersection(a.geom,b.geom)::geometry(LineString,3763) AS geom
FROM training.rede_ferroviaria a, training.evora b
WHERE ST_Intersects(a.geom, b.geom);@
without errors.
If the same query is done to create a table it would give
@geometry type (MultiLineString) does not match column type (LineString)
@
So... if afterwards I open the "table" or "preview" tab of the created view, DB Manager will give first
and then
over and over, and the only way out is to kill the program.
The text was updated successfully, but these errors were encountered: