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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0000469
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Y. DBSourceManagermajoralways2008-05-29 10:012009-03-18 11:02
ReporterjpabloaeView Statuspublic 
Assigned Tomarvintm 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision74
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.5.0_15
OS VersionGentoo - 2.6.24Database version8.3.1Ant version1.7.0
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

0000469: Constraints consistency not checked in update.database with PostgreSQL

DescriptionCurrently the "ant update.database" task does not maintain the sampledata consistency. So that if an ID is deleted in sourcedata and there are records in sampledata referencing that ID, it doesn't raise an error and there are inconsistent records in the database. In oracle it raises an error, see 0000468.

Ideally, it should give an error when there's a invalid constraint.

Steps To Reproduce1. Delete an AD_PROCESS_ID in AD_PROCESS.xml in sourcedata.
2. Make sure there's a record in sampledata/AD_PROCESS_ACCESS.xml referencing that deleted AD_PROCESS_ID.
3. Run "ant update.database".

It doesn't fail, and currently it should.
Tagsdbsm_migrate
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0000468 closedmarvintm Sampledata consistency not kept in update.database 

-  Notes
(0007741)
svnbot (reporter)
2008-06-16 15:36

Repository: dbsourcemanager
Revision: 74
Author: marvintm
Date: 2008-06-16 15:36:00 +0200 (Mon, 16 Jun 2008)

Fixed bug 0000469 Now error messages will be shown in PostgreSQL if XML data prevents a constraint from being activated (specifically, if a row contains a reference to another row which doesn't exist ie. a foreign key is invalid).

---
U trunk/src/org/apache/ddlutils/io/DataToDatabaseSink.java
U trunk/src/org/apache/ddlutils/platform/SqlBuilder.java
U trunk/src/org/apache/ddlutils/platform/postgresql/PostgreSqlBuilder.java
U trunk/src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java
---

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

- Issue History
Date Modified Username Field Change
2008-05-29 10:01 jpabloae New Issue
2008-05-29 10:01 jpabloae Relationship added related to 0000468
2008-06-16 15:36 svnbot Checkin
2008-06-16 15:36 svnbot Note Added: 0007741
2008-06-16 15:36 svnbot Status new => resolved
2008-06-16 15:36 svnbot Resolution open => fixed
2008-06-16 15:36 svnbot svn_revision => 74
2008-11-26 13:37 psarobe Status resolved => closed
2008-11-28 12:54 jpabloae Assigned To => marvintm
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:41 jpabloae Category => Y. DBSourceManager
2009-03-18 11:02 anonymous sf_bug_id 0 => 2691318


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker