[Gvsig_english] problems saving a Postgis layer edits with gid PK

G. Allegri giohappy at gmail.com
Thu Jun 30 14:43:37 CEST 2011


Hi all,
I'm testing some gvSIG 1.11. features on Postgis layers. I have a
Linestraing layer with a single GID column (and a geom, obviously), which is
a not-nullable integer field and the PK of the table.
When I insert a new linestring, I also open the attributes table and insert
the GID value manually, then I save the layer. The resulting SQL call to
Postgis tries to insert the geometry, but doesn't include the GID field
value, so I get a not-null constraint violation error from PG.
Am I doing something wrong?
I'm following the debug step by step, but I loose myself within the
"expansion" file mechanis, used by gvSIG to track the edits (I will ask on
this in another thread on the dev ml).

thanks,
giovanni
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.gva.es/pipermail/gvsig_internacional/attachments/20110630/cb698349/attachment.htm 


More information about the Gvsig_internacional mailing list