Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3427 of 3799
Post > Topic >>

Re: Problem with FOREIGN KEY

by darcy@[EMAIL PROTECTED] ("D'Arcy J.M. Cain") Apr 22, 2008 at 12:01 PM

On Tue, 22 Apr 2008 18:26:19 +0300
"????? ???????? |Vadim Zhernovoi|" <vadim.zhernovoi@[EMAIL PROTECTED]
> 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!

That message is not telling you the the referenced table doesn't have
the field.  It is saying that the referenced table does not have a
matching row for one or more rows in the table being checked.  In other
words it is checking your existing data exactly the same as it will
check new data that you insert.  Your database is already violating the
rule that you are trying to enforce with the new constraint.

Also, I am pretty sure that you do not want the constraint
FK1_SecurityRolePermission that you created on SecurityRole.  What do
you think that will accomplish?

--=20
D'Arcy J.M. Cain <darcy@[EMAIL PROTECTED]
>         |  Democracy is three wolves
http://www.druid.net/darcy/
               |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.

--=20
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 3 Posts in Topic:
Problem with FOREIGN KEY
vadim.zhernovoi@[EMAIL PR  2008-04-22 18:26:19 
Re: Problem with FOREIGN KEY
erik@[EMAIL PROTECTED] (  2008-04-22 10:37:33 
Re: Problem with FOREIGN KEY
darcy@[EMAIL PROTECTED]   2008-04-22 12:01:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 22:14:00 CST 2008.