Re: [sqlalchemy] bug in DROP TABLE CASCADE

2010-02-28 Thread Michael Bayer
On Feb 28, 2010, at 8:09 PM, Manlio Perillo wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Michael Bayer ha scritto: >> On Feb 28, 2010, at 3:21 PM, Manlio Perillo wrote: >> >> When reading the code in the `sql.compiler` module, I noted this: >> >> def visit_drop_table(self, dr

Re: [sqlalchemy] bug in DROP TABLE CASCADE

2010-02-28 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Bayer ha scritto: > On Feb 28, 2010, at 3:21 PM, Manlio Perillo wrote: > > When reading the code in the `sql.compiler` module, I noted this: > >def visit_drop_table(self, drop): >ret = "\nDROP TABLE " + self.preparer.format_table(

Re: [sqlalchemy] bug in DROP TABLE CASCADE

2010-02-28 Thread Michael Bayer
On Feb 28, 2010, at 3:21 PM, Manlio Perillo wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > When reading the code in the `sql.compiler` module, I noted this: > >def visit_drop_table(self, drop): >ret = "\nDROP TABLE " + self.preparer.format_table(drop.element) >

[sqlalchemy] bug in DROP TABLE CASCADE

2010-02-28 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 When reading the code in the `sql.compiler` module, I noted this: def visit_drop_table(self, drop): ret = "\nDROP TABLE " + self.preparer.format_table(drop.element) if drop.cascade: ret += " CASCADE CONSTRAINTS"