[Qgis-developer] QGIS choosing invalid primary key column
ivan.mincik at gmail.com
Mon Jun 11 07:05:05 PDT 2012
On 06/11/2012 12:39 PM, Ivan Mincik wrote:
>> 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
It seems that it fixed the problem. Patch attached for reference.
Is there any chance of releasing 1.7.5 ? Should I create pull request ?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 729 bytes
Desc: not available
More information about the Qgis-developer