[QGIS-trac] Re: [Quantum GIS] #1535: qgspostgresprovider choosing non-unique column as primary key

Quantum GIS qgis at qgis.org
Tue Feb 10 11:51:21 EST 2009


#1535: qgspostgresprovider choosing non-unique column as primary key
-----------------------------------------------------+----------------------
        Reporter:  jcs                               |         Owner:  nobody       
            Type:  bug                               |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.0.1
       Component:  Data Provider                     |       Version:  1.0.0        
      Resolution:                                    |      Keywords:  postgres     
Platform_version:                                    |      Platform:  All          
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Changes (by jcs):

  * version:  0.10.0 => 1.0.0

Comment:

 My attached bugfix allows the user to specify which column they would like
 to use as the primary key by filling out the added "key" data member of
 the QgsDataSourceURI.

 The QgsPostgresProvider will do some verification on the specified column
 if it exists, otherwise it will do the current method of trying to find a
 column to use.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1535#comment:2>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list