Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014073 | Openbravo ERP | Y. DBSourceManager | public | 2010-07-28 09:37 | 2010-08-18 00:00 |
|
Reporter | marvintm | |
Assigned To | marvintm | |
Priority | urgent | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0014073: DBSourceManager doesn't sort data changes properly before updating the database |
Description | DBSourceManager generates a list of data changes when doing update.database, and then tries to apply them by transforming each of them into a SQL statement (INSERT, DELETE, or UPDATE), and executing them one by one.
To ensure proper functioning of this process when UNIQUE constraints are activated, the changes need to be sorted first, and then executed in the proper order (DELETEs first, then UPDATES, and then INSERTS). However, this sorting doesn't happen. |
Steps To Reproduce | Modify one row in the AD_COLUMN file, by changing its ID to a smaller value, and execute update.database. A UNIQUE constraint will fail. |
Proposed Solution | The sorting needs to be done in update.database. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-07-28 09:37 | marvintm | New Issue | |
2010-07-28 09:37 | marvintm | Assigned To | => marvintm |
2010-07-28 09:37 | marvintm | OBNetwork customer | => No |
2010-07-29 10:29 | hgbot | Checkin | |
2010-07-29 10:29 | hgbot | Note Added: 0029658 | |
2010-07-29 10:29 | hgbot | Status | new => resolved |
2010-07-29 10:29 | hgbot | Resolution | open => fixed |
2010-07-29 10:29 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/dbsm-main/rev/ff4425b09c4b70900a5646f39a6ae6d4b102b8a2 [^] |
2010-07-29 10:33 | hgbot | Checkin | |
2010-07-29 10:33 | hgbot | Note Added: 0029659 | |
2010-07-29 10:33 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/ff4425b09c4b70900a5646f39a6ae6d4b102b8a2 [^] => http://code.openbravo.com/erp/devel/pi/rev/32653bcd18376b2cce82b2af5be21d15cfc6ee10 [^] |
2010-07-29 16:14 | hudsonbot | Checkin | |
2010-07-29 16:14 | hudsonbot | Note Added: 0029670 | |
2010-08-17 18:09 | shuehner | Note Added: 0030084 | |
2010-08-17 18:09 | shuehner | Status | resolved => closed |
2010-08-18 00:00 | anonymous | sf_bug_id | 0 => 3047307 |
Notes |
|
(0029658)
|
hgbot
|
2010-07-29 10:29
|
|
|
|
(0029659)
|
hgbot
|
2010-07-29 10:33
|
|
|
|
|
|
|
|
Tested on pi_pg, rev: e87917805d68.
Described use-case no works. Technical change did re-add two sorting calls which have been removed by some earlier commit by accident. -> Closing as fixed |
|