Re: Related records



On Tue, 2009-09-29 at 10:58 +0200, Murray Cumming wrote:
On Tue, 2009-09-29 at 09:51 +0200, alessio c wrote:
I keep receiving this error:

ERROR:  duplicate key value violates unique constraint "ComanyID_key"

But my relationship are the same of the project example.

I suspect that your relationship doesn't make sense somehow. For
instance, maybe you are trying to use the related table's primary key as
a to key from the first table. Glom would then be trying to set the
related table's primary key to match the from field in the parent table.

We should probably try to prevent you from doing this.

I have made a change in the code
http://git.gnome.org/cgit/glom/commit/?id=c291bc2bb0b2bc72ac57e8162f11749f68d45d72
which should make this clearer in future versions of Glom by preventing
you from using a primary key (or unique key) for this.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]