#860 closed bug (fixed)
PostGIS Layer in Project not Reloadable when Layername is Changed
Reported by: | horst.duester | Owned by: | jef |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Project Loading / Saving | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | Linux |
Platform Version: | Awaiting user input: | yes |
Description
QGIS is not able to reload a saved project with PostGIS layers after changing of layername when the layer comes from public schema.
- Load a layer from PostGIS public schema. The connection string shows:
.... table="public"."<tablename>" ...
- change the layername with Layer Properties->General->Display Name
- Take a look at the connection string, it shows:
.... table="<tablename>" ...
the schema name is lost
- Save the project.
- Load the project. QGIS is not able to load the renamed layer.
This behaviour happens only with layer from public schema.
Change History (6)
follow-up: 2 comment:1 by , 15 years ago
Awaiting user input: | set |
---|
comment:2 by , 15 years ago
Milestone: | Version 0.9.1 → Version 0.9.2 |
---|
Replying to jef:
You should see that when you load a project that was saved before r7711. The schema name is dropped, when the schema is the current schema as it's not necessary in that case. But this might be a problem when you try to load a project save post r7711 with an earlier revision. Does this apply in your case?
Your described scenario applies in my case. But I just tried rev. 7753 and a new created project with this rev with the same result.
comment:3 by , 15 years ago
Owner: | changed from | to
---|
You should see that when you load a project that was saved before r7711. The schema name is dropped, when the schema is the current schema as it's not necessary in that case. But this might be a problem when you try to load a project save post r7711 with an earlier revision. Does this apply in your case?