Opened 16 years ago

Closed 16 years ago

Last modified 14 years ago

#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.

  1. Load a layer from PostGIS public schema. The connection string shows:
    .... table="public"."<tablename>" ...
  2. change the layername with Layer Properties->General->Display Name
  3. Take a look at the connection string, it shows:
    .... table="<tablename>" ...
    the schema name is lost
  4. Save the project.
  5. Load the project. QGIS is not able to load the renamed layer.

This behaviour happens only with layer from public schema.

Change History (6)

comment:1 by jef, 16 years ago

Awaiting user input: set

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?

in reply to:  1 comment:2 by horst.duester, 16 years ago

Milestone: Version 0.9.1Version 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 jef, 16 years ago

Owner: changed from nobody to jef

comment:4 by jef, 16 years ago

Resolution: fixed
Status: newclosed

fixed in r7756

in reply to:  4 comment:5 by horst.duester, 16 years ago

Replying to jef:

fixed in r7756

Thank you very much for the fix!

comment:6 by (none), 14 years ago

Milestone: Version 0.9.2

Milestone Version 0.9.2 deleted

Note: See TracTickets for help on using tickets.