Bugs item #1481912, was opened at 2006-05-04 19:20
Message generated for change (Comment added) made by phd
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1481912&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Postgres
Group: SQLObject release (specify)
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: yoshuki (yoshuki)
Assigned to: Nobody/Anonymous (nobody)
Summary: "CASCADE" is never enabled.
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Oleg Broytmann (phd)
Date: 2006-05-19 18:37
Message:
Logged In: YES
user_id=4799
No, it is the user's responsibility to do
MyTable.dropTable(cascade=True).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1481912&group_id=74338
|