I try to translate...

Seems that the new line is referencing a non existent <article_category>
element.
As far as I understand the table is a self referencing table.

article_category.parent_id -> article_category.id

parent_id has a value that is not equal to any id of article_category

mic




2013/1/4 Massimo Di Pierro <[email protected]>

> What is the cause that causes this?
>
>
> On Thursday, 3 January 2013 19:30:53 UTC-6, samuel bonilla wrote:
>>
>> this is the error
>>
>> <class '_mysql_exceptions.**IntegrityError'> (1452, 'Cannot add or
>> update a child row: a foreign key constraint fails (`samuel$otra`.`article_
>> **category`, CONSTRAINT `article_category_ibfk_1` FOREIGN KEY
>> (`parent_id`) REFERENCES `article_category` (`id`) ON DELETE CASCADE)')
>>
>> help me please....
>>
>  --
>
>
>
>

-- 



Reply via email to