[QGIS-trac] [Quantum GIS] #1933: Fix PostGIS dataprovider to check for unique data with SQL where clause

Quantum GIS qgis at qgis.org
Wed Sep 16 20:21:37 EDT 2009


#1933: Fix PostGIS dataprovider to check for unique data with SQL where clause
------------------------------------------------+---------------------------
   Reporter:  jpalmer                           |              Owner:  jef      
       Type:  bug                               |             Status:  new      
   Priority:  major: does not work as expected  |          Milestone:           
  Component:  Data Provider                     |            Version:  HEAD     
   Keywords:  postgis, postgresql               |   Platform_version:  WinXP SP2
   Platform:  All                               |           Must_fix:  No       
Status_info:  0                                 |  
------------------------------------------------+---------------------------
 The method QgsPostgresProvider::uniqueData within qgspostgresprovider.cpp
 should be updated to use the SQL where cause for determining if the set
 primary key provides unique data.

 i.e


 {{{
   if ( !sqlWhereClause.isEmpty() )
   {
     sql += " where " + sqlWhereClause;
   }
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1933>
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