#170 "CASCADE" is never enabled.

closed-wont-fix
nobody
Postgres (36)
5
2006-05-19
2006-05-04
yoshuki
No

I'm using 0.7.1dev_r1675 with PostgreSQL 8.1.3 in
TurboGears 0.9a5.

When I drop tables it has some foreign key.
"HINT: Use DROP ... CASCADE to drop the dependent
objects too."

I checked source and found the reason.

sqlobject/postgres/pgconnection.py:154
def dropTable(self, tableName, cascade=False):
is must be
def dropTable(self, tableName, cascade=True):
right?

Please check it out. Thank you.

Discussion

  • Oleg Broytman

    Oleg Broytman - 2006-05-19

    Logged In: YES
    user_id=4799

    No, it is the user's responsibility to do
    MyTable.dropTable(cascade=True).

     
  • Oleg Broytman

    Oleg Broytman - 2006-05-19
    • status: open --> closed-wont-fix
     
  • yoshuki

    yoshuki - 2006-05-19

    Logged In: YES
    user_id=1304017

    I've got it. Thank you.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks