Bug report #837
Saving edited PostGIS layer reports PostgreSQL error
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||10896|
Take a look at the attached SQL Script. This script creates 2 Tables test and test2.
1. Edit Table test and add a polygon.
2. When you save this table PostgrSQL reports the error: ERROR: invalid input syntax for integer: "now()"
When you try the same procedure with test2 PostgreSQL is able to save the created polygon.
The problem seems to be the order of the geometry column. In test the geometry column is the second column of the table. All later tables seemed to be shifted.Take a look at the warning displayed in the terminal window.
In table test2 the geometry column is the last column of the table and it doesn't influence the order of the columns. => Save works fine.