Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0034115 | Openbravo ERP | A. Platform | public | 2016-09-28 11:14 | 2019-07-30 15:17 | ||||||||||||||
Reporter | AugustoMauch | ||||||||||||||||||
Assigned To | platform | ||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | duplicate | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0034115: ad_db_modified does not take into account check constraints | ||||||||||||||||||
Description | The ad_db_modified function checks if the database has local changes. The problem is that it is not detecting changes done on check constraints. If a check constraint is added/modified/deleted, invoking ad_db_modified will return 'N', even though there are indeed local changes in the database. | ||||||||||||||||||
Steps To Reproduce | - Run update.database to make sure there are no local changes. - Check it executing this in the database: SELECT AD_DB_MODIFIED('N') FROM DUAL. It will return 'N' (this is OK) - Remove a check constraint, for instance: ALTER TABLE c_order DROP CONSTRAINT c_order_isactive_check; - Run again the function that checks if there are local changes: SELECT AD_DB_MODIFIED('N') FROM DUAL. It will return 'N' (this is WRONG, the database has local changes). - Remove a foreign key, for instance: ALTER TABLE c_order DROP CONSTRAINT c_order_ad_client; - Run again the function that checks if there are local changes: SELECT AD_DB_MODIFIED('N') FROM DUAL. It will return 'Y' (this is OK) | ||||||||||||||||||
Proposed Solution | I am not sure, as taking now into account the check constraints will modify the checksum, and false positives in the detection of local changes will occur. | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2016-09-28 11:14 | AugustoMauch | New Issue | |||||||||||||||||
2016-09-28 11:14 | AugustoMauch | Assigned To | => platform | ||||||||||||||||
2016-09-28 11:14 | AugustoMauch | Modules | => Core | ||||||||||||||||
2016-09-28 11:14 | AugustoMauch | Triggers an Emergency Pack | => No | ||||||||||||||||
2016-09-29 09:14 | alostale | Status | new => acknowledged | ||||||||||||||||
2017-03-28 10:19 | alostale | Relationship added | related to 0035628 | ||||||||||||||||
2019-07-30 15:17 | alostale | Status | acknowledged => scheduled | ||||||||||||||||
2019-07-30 15:17 | alostale | Relationship added | duplicate of 0028644 | ||||||||||||||||
2019-07-30 15:17 | alostale | Status | scheduled => closed | ||||||||||||||||
2019-07-30 15:17 | alostale | Resolution | open => duplicate |
There are no notes attached to this issue. |