It apprears that sqlite does not support this - see http://www.sqlite.org/omitted.html
On Wed, Aug 12, 2009 at 2:41 AM, Richard <[email protected]> wrote: > > hello, > > Does sqlite support cascade or am I doing something wrong? > > I have these tables: > db.define_table('A', > db.Field('B', db.B, ondelete='CASCADE'), > ) > db.define_table('B', > db.Field('name'), > ) > > And when I run db(db.A.id > 0).delete(), the B's are still there. > > Richard > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

