Re: Problem with FOREIGN KEY

From: Erik Jones <erik(at)myemma(dot)com>
To: Вадим Жерновой |Vadim Zhernovoi| <vadim(dot)zhernovoi(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with FOREIGN KEY
Date: 2008-04-22 15:37:33
Message-ID: 4C22A975-793B-42A6-911C-85ABDDCEAF64@myemma.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Apr 22, 2008, at 10:26 AM, Вадим Жерновой |Vadim
Zhernovoi| wrote:

> I have a Problem with Foreign key query...i've posted the code on
> http://pgsl.privatepaste.com/e44p3Orqiq, so it have syntax higlight.
> Please, need help!

What that's telling you is that there is data in your Users table that
doesn't satisfy the foreign key constraint, i.e. there is a Users row
with SecurityRoleId=0 and no row in SecurityRole with ID=0.

Erik Jones

DBA | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2008-04-22 16:01:42 Re: Problem with FOREIGN KEY
Previous Message Вадим Жерновой | =?UTF-8?Q?Vadim_Zhernovoi|?= 2008-04-22 15:26:19 Problem with FOREIGN KEY