<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">George, thanks for your advice. After testing on a brand new table, I've figured out that this problem appears only with tables, that don’t have a primary key constraint in the db. When I add a primary key, my edits get committed to the base as expected. </div><div class="">However, I’ve noticed that “Add PostGIS Table” dialog doesn’t show this table has a primary key (the "Primary key" column is empty). But when a table is added to the map, it has a key=“gid” option in "Layer source” field in “Properties" - “General" window. </div><div class=""><br class=""></div><div class="">Can anyone confirm the same issue is only when editing a table without primary key?</div><br class=""><div><blockquote type="cite" class=""><div class="">On 26 Jan 2015, at 05:15, George Silva <<a href="mailto:georger.silva@gmail.com" class="">georger.silva@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><p class="">Weird. I'll try to reproduce.</p><p class="">Doesnt seem like something that would slip by.</p><p class="">Can you test again on a brand new table without any triggers or postgresql magic behind?</p>
<div class="gmail_quote">Em 25/01/2015 23:15, "Mofo Yoda" <<a href="mailto:mofoyoda@gmail.com" class="">mofoyoda@gmail.com</a>> escreveu:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list,<br class="">
<br class="">
I have a non-spatial postgres table in my QGIS project which I want to edit in attribute table window. When I open it, first time when I change any attribute value and hit "Save Edits” button, the data is updated in the DB and updated in QGIS attribute table window. But when I try to edit an attribute of the same record the second time, when I hit save nothing is updated in the db. But the attribute table shows new values. Stopping and starting new editing session doesn’t help. The only thing that helps is closing the attribute table window and reopening it again. Then I can edit the value once again, but only one time.<br class="">
PostGIS log window in QGIS is clean, I get no errors when hitting “Save Edits”. I’m on version 2.6.0.<br class="">
Does anyone have the same bug?<br class="">
_______________________________________________<br class="">
Qgis-user mailing list<br class="">
<a href="mailto:Qgis-user@lists.osgeo.org" class="">Qgis-user@lists.osgeo.org</a><br class="">
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" class="">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></blockquote></div>
</div></blockquote></div><br class=""></body></html>