#837 closed defect (fixed)
Saving edited PostGIS layer reports PostgreSQL error
Reported by: | horst.duester | Owned by: | nobody |
---|---|---|---|
Priority: | major: does not work as expected | Milestone: | |
Component: | Vectors | Version: | Trunk |
Keywords: | PostGIS | Cc: | |
Must Fix for Release: | No | Platform: | Debian |
Platform Version: | Awaiting user input: | no |
Description
Take a look at the attached SQL Script. This script creates 2 Tables test and test2.
- Edit Table test and add a polygon.
- 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.
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | layer_test.sql added |
---|
comment:1 by , 15 years ago
comment:3 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
I made a typo in my ticket:
I wrote: ... All later tables seemed to be shifted ...
Of course I ment ... All later columns seemed to be shifted.