[SQL-CVS] [ sqlobject-Bugs-1481912 ] "CASCADE" is never enabled.
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: SourceForge.net <no...@so...> - 2006-05-19 14:45:27
|
Bugs item #1481912, was opened at 2006-05-05 00:20 Message generated for change (Comment added) made by yoshuki 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: yoshuki (yoshuki) Date: 2006-05-19 23:45 Message: Logged In: YES user_id=1304017 I've got it. Thank you. ---------------------------------------------------------------------- Comment By: Oleg Broytmann (phd) Date: 2006-05-19 23: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 |