forked from MapServer/tinyows
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "pkey_sequence" attribute (in addition to "pkey") to layer config.
In order to insert new feature into layer based on PostgreSQL view, "pkey" attribute is not enough: one should be able to deduce sequence name using pg_get_serial_sequence() function, which returns empty row for views. Fix this by adding "pkey_sequence" attribute.
- Loading branch information
Timur Sufiev
committed
Nov 20, 2012
1 parent
14d75ad
commit c23f990
Showing
4 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c23f990
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Timur,
Thanks for this report and this code add !
To be perfect on this subject, aim is also to have the same config enhancement in mapfile code
and to display pkey_sequence in layer_flush
Could you provide such a thing as a pull request too ?