[Qgis-developer] QGIS choosing invalid primary key column

Ivan Mincik ivan.mincik at gmail.com
Mon Jun 11 02:51:58 PDT 2012

On 06/11/2012 11:41 AM, Jürgen E. Fischer wrote:
> Hi Ivan,
> On Mon, 11. Jun 2012 at 11:37:05 +0200, Ivan Mincik wrote:
>> I have found that QGIS is not choosing proper 'gid serial' primary key
>> column when integer column with unique constraint exists in table.
> That's removed in 1.8.  You have to choose the column there.  Having a unique
> constraint on a column that is contained in view, doesn't mean it's unique in
> the view anyway.

Jürgen, thanks for quick response. I am not sure if I understand
correctly - you mean that some kind of automatic detection of primary
key is removed in 1.8 ?

The problem is that I am not able to reproduce this problem for all
tables that contains unique on integer column. Does it makes a sense for
You ?

Ivan Mincik

More information about the Qgis-developer mailing list