Bug report #13395
Load style from database
|Affected QGIS version:||2.10.1||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||worksforme|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||21447|
When I save the style to postgres database in QGIS, it automatically saves the style in the table layer_styles in public scheme.
But when I want to reconnect it to the layer, it shows only all other layer styles without required one and in the window 'styles related to the layer' there is a message "No styles found in the database". Maybe there is a problem with connecting to the table's name.
Just for info: When I change the name of the table (f_table_name) manually in PGAdmin, the style can be opened from window 'other styles on the database'.
#3 Updated by Kristyna Maresova over 4 years ago
Anita Graser wrote:
Can you please post a list of steps to reproduce the issue?
I wasn't able to reproduce the issue when I tried with today's OSGeo4W nightly.
(1)I loaded layer from PostGIS database, (2) then I styled the layer, (3) saved it into the database(4)and make it default) and then (5)removed the layer from project. (6) When I loaded the layer again from database, the required style doesn't appear in the window 'styles related to this table'.
When I open different layer, the style for previous layer appears in window 'other styles on database'. Now I am working with todays OsGeo4W and it still doesn't work for me.