[storm] Database integrity error (non unique primary key) when adding objects all referring other objects

Christopher Armstrong radix at twistedmatrix.com
Mon Dec 3 16:36:37 GMT 2007


On Dec 3, 2007 11:29 AM, 希增毛 <xizeng.mao at gmail.com> wrote:
> Hi Storm developers,
>
> Recently, I have been trying your great product, Storm.   Many nice features
> are found there :-)  But I encounter a weird and messing database integrity
> error.  To see how, just run the attached test.py.  I am using storm trunk
> version.
>
> Could you help me?  Thanks a lot in advance.

Hi Xizeng. Your Reference is incorrect. It should be Reference(a_id,
A.id), not Reference(id, A.id). What you have now makes Storm thinks
that "id" is the foreign key to A.id.

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/


More information about the storm mailing list