[Qgis-developer] QGIS choosing invalid primary key column

Ivan Mincik ivan.mincik at gmail.com
Mon Jun 11 03:39:35 PDT 2012


> That's removed in 1.8.

I am thinking about 1.7 fix to update column query
(QgsPostgresProvider::getPrimaryKey) to return primary key column first
by adding ordering by 'indisprimary' column:

select indkey from pg_index where indisunique and
indrelid=regclass('"vranov"."v_budovy"')::oid and indpred is null order
by indisprimary desc


Can this work ?

-- 
Ivan Mincik


More information about the Qgis-developer mailing list