Ticket #1386 (closed defect: wontfix)
msPOSTGISLayerParseData locates primary key col
| Reported by: | phill.watson@… | Owned by: | pramsey |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PostGIS Interface | Version: | 4.6 |
| Severity: | major | Keywords: | |
| Cc: |
Description
The function msPOSTGISLayerParseData() locates the primary key column if none
specified with a "USING UNIQUE" expression in the DATA element. However, later
functions (namely msPOSTGISLayerGetShape()) expect an OID column.
Also, bear in mind that the primary key may consist of multiple columns.
Workaround - Comment out the following lines from the function
msPOSTGISLayerParseData()
if(!urid_found) {
msPOSTGISLayerRetrievePK(layer, urid_name, *table_name, debug);
}
Change History
Note: See
TracTickets for help on using
tickets.
