[Qgis-user] Postgis layer: attributes not editable if field has a default value

tommaso tommasodb at googlemail.com
Thu Jul 11 05:09:18 PDT 2019


Hello,
I'm using Qgis 3.4.4 Madeira on Ubuntu 16.04 and it seems that the  
attributes of Postgis layers are not editable if the corresponding field  
has a default value at the database level.
I observed this issue with fields of type boolean and hstore.
For example, if the field "active" of the table "test" has a default value:

Table "test"
Column | Type | Modifiers
--------+---------+--------------
  id    | integer |
  name  | hstore  |
active | boolean | default true

than the field "active" is not editable in the attribute table in Qgis.

Could you please help me?

Regards Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190711/6d0a6222/attachment.html>


More information about the Qgis-user mailing list