Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field overflow when saving style #19401

Closed
qgib opened this issue Aug 16, 2014 · 2 comments
Closed

field overflow when saving style #19401

qgib opened this issue Aug 16, 2014 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@qgib
Copy link
Contributor

qgib commented Aug 16, 2014

Author Name: Russell Fulton (Russell Fulton)
Original Redmine Issue: 11067
Affected QGIS version: 2.4.0
Redmine category:symbology


The layer style table has a field "f_table_name" which is char_varying(256). The idea is clearly to but the table name in here if the style applies to a postgis table. Fine. If the table is something more complicated (like a join) QGIS puts the SQL in the that field. If the text of the sql is over 256 characters the save fails with a misleading message about permission problems.

Firstly I suggest that the message be changed to something along the lines of "QGIS failed to insert this style in public.layer_style table. Most often this is a permission problem. See QGIS log for more details."

I would suggest that either QGIS does not save the sql in the name field or that it checks and truncates it if necessary.

Hmmm... I just changed the field type to text and it works fine now -- so that is another approach.

@qgib
Copy link
Contributor Author

qgib commented Oct 5, 2014

Author Name: Giovanni Manghi (@gioman)


Hi,

it seems to me that in the "f_table_name" is always place the name of the layer you are styling (no SQL), regardless if that layers have joins or not.

Can you provide an example?


  • priority_id was changed from Normal to Low
  • status_id was changed from Open to Feedback
  • category_id was configured as Symbology

@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2014

Author Name: Giovanni Manghi (@gioman)


closing for lack of feedback, please reopen if necessary.


  • resolution was changed from to invalid
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
Development

No branches or pull requests

1 participant