Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0004706
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagerminoralways2008-08-25 17:292009-03-18 11:02
ReportermarvintmView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision106
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0004706: DROP TABLE CASCADE statements cause DROP VIEW statements to fail

DescriptionIf a view depending on a table and that table have to be dropped when updating the database, there will be an error.

This error happens because the DROP TABLE statement containts a CASCADE clause, that in turn forces the database to drop the view. Afterwards, dbsourcemanager tries to delete the view, which causes the error, as the view no longer exists.

Steps To ReproduceSimply remove a table and a dependant view from your database xml files, and perform a ant update.database
Proposed SolutionThe solution will be to delete views before deleting tables, so that this problem doesn't happen.
Tagsdbsm_migrate
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0008731)
svnbot (reporter)
2008-08-25 17:30

Repository: dbsourcemanager
Revision: 106
Author: marvintm
Date: 2008-08-25 17:30:58 +0200 (Mon, 25 Aug 2008)

Fixed bug 0004706. Now views will be dropped before tables.

---
U branches/r0.8x/src/org/apache/ddlutils/platform/SqlBuilder.java
---

https://dev.openbravo.com/websvn/dbsourcemanager/?rev=106&sc=1 [^]

- Issue History
Date Modified Username Field Change
2008-08-25 17:29 marvintm New Issue
2008-08-25 17:29 marvintm Assigned To => marvintm
2008-08-25 17:30 svnbot Checkin
2008-08-25 17:30 svnbot Note Added: 0008731
2008-08-25 17:30 svnbot Status new => resolved
2008-08-25 17:30 svnbot Resolution open => fixed
2008-08-25 17:30 svnbot svn_revision => 106
2008-12-15 19:05 psarobe Status resolved => closed
2008-12-18 12:38 jpabloae Sticky Issue No => Yes
2008-12-18 12:39 jpabloae Sticky Issue Yes => No
2008-12-18 12:39 jpabloae Tag Attached: dbsm_migrate
2008-12-18 12:41 jpabloae Project @4@ => Openbravo ERP
2008-12-18 12:42 jpabloae Category => Y. DBSourceManager
2009-03-18 11:02 anonymous sf_bug_id 0 => 2691341


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker