Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0012514 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] Y. DBSourceManager | major | always | 2010-03-01 18:16 | 2011-03-03 09:35 | |||
Reporter | marvintm | View Status | public | |||||
Assigned To | marvintm | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | 2.50MP14 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 163ea059a644 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0012514: Functions which depend on a view cannot be modified by update.database | |||||||
Description | When a function depends on a view, if the function is changed, currently dbsourcemanager tries to drop it and create it again. This doesn't work in case there are views which depend on it. | |||||||
Steps To Reproduce | Modify function C_CURRENCY_CONVERT in its XML file, and try to do update.database on PostgreSQL. You will get several errors, and the function will be unchanged in the database | |||||||
Proposed Solution | DBSM needs to be changed to address this problem. A DROP statement is not needed in this case, a CREATE OR REPLACE statement should be enough. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0024921) hgbot (developer) 2010-03-01 18:22 |
Repository: erp/devel/pi Changeset: 163ea059a64417a8fa5f5b738dadb7214d470bbb Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Mon Mar 01 18:25:17 2010 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/163ea059a64417a8fa5f5b738dadb7214d470bbb [^] Fixed issue 12514. A DROP statement will not be executed. Instead, a CREATE OR REPLACE will be executed when a function has been changed. --- M src-db/database/lib/dbsourcemanager.jar --- |
(0024991) hgbot (developer) 2010-03-03 11:52 |
Repository: erp/devel/pi Changeset: 48db27e1e732443e1803c51f40c12c2f45f12f1f Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Wed Mar 03 11:55:19 2010 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/48db27e1e732443e1803c51f40c12c2f45f12f1f [^] Related to issue 12514. This will also be done in Oracle (because the ModelComparator is not platform specific --- M src-db/database/lib/dbsourcemanager.jar --- |
(0025192) shuehner (administrator) 2010-03-09 19:50 |
Tested on pi (rev 2b0ab921b30a) / pgsql 8.4 . Function is changed correctly in the database without errors |
(0025368) hudsonbot (viewer) 2010-03-12 22:40 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/163ea059a644 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^] Tests: http://builds.openbravo.com/view/devel-int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^] |
(0025380) hudsonbot (viewer) 2010-03-12 22:40 |
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated: Changeset: http://code.openbravo.com/erp/devel/main/rev/48db27e1e732 [^] Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/631c626866c1 [^] Tests: http://builds.openbravo.com/view/devel-int/ [^] OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.16685.obx [^] |
(0034521) hgbot (developer) 2011-03-03 09:35 |
Repository: erp/devel/dbsm-main Changeset: ee9961cbd2e3ba238fdfa7568722eae18bd9e33c Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Thu Mar 03 09:31:18 2011 +0100 URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/ee9961cbd2e3ba238fdfa7568722eae18bd9e33c [^] Fixed issue 16084. The following changes have been made: - To avoid the problem described in the issue, when a function has changed, it will be dropped and then created again. - Then, to avoid the problem described in issue 12514, views will be dropped before doing any change, so that functions can then be dropped safely. - In addition to these changes, a change in the way the error log is shown has been made, so that a forced command that fails will only be shown when the main loop of forced commands has finished, and there are still forced commands to be executed. --- M src/org/apache/ddlutils/alteration/ModelComparator.java M src/org/apache/ddlutils/platform/PlatformImplBase.java M src/org/apache/ddlutils/platform/SqlBuilder.java --- |
(0034523) hgbot (developer) 2011-03-03 09:35 |
Repository: erp/devel/pi Changeset: 1e390dd8d3994be8f82913ea015aeab79a3c8aad Author: Antonio Moreno <antonio.moreno <at> openbravo.com> Date: Thu Mar 03 09:34:32 2011 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/1e390dd8d3994be8f82913ea015aeab79a3c8aad [^] Fixed issue 16084. The following changes have been made: > - To avoid the problem described in the issue, when a function has changed, it will be dropped and then created again. > - Then, to avoid the problem described in issue 12514, views will be dropped before doing any change, so that functions can then be dropped safely. > - In addition to these changes, a change in the way the error log is shown has been made, so that a forced command that fails will only be shown when the main loop of forced commands has finished, and there are still forced commands to be executed. --- M src-db/database/lib/dbsourcemanager.jar --- |
![]() |
|||
Date Modified | Username | Field | Change |
2010-03-01 18:16 | marvintm | New Issue | |
2010-03-01 18:16 | marvintm | Assigned To | => marvintm |
2010-03-01 18:16 | marvintm | OBNetwork customer | => No |
2010-03-01 18:22 | hgbot | Checkin | |
2010-03-01 18:22 | hgbot | Note Added: 0024921 | |
2010-03-01 18:22 | hgbot | Status | new => resolved |
2010-03-01 18:22 | hgbot | Resolution | open => fixed |
2010-03-01 18:22 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/163ea059a64417a8fa5f5b738dadb7214d470bbb [^] |
2010-03-03 11:52 | hgbot | Checkin | |
2010-03-03 11:52 | hgbot | Note Added: 0024991 | |
2010-03-09 19:50 | shuehner | Note Added: 0025192 | |
2010-03-09 19:50 | shuehner | Status | resolved => closed |
2010-03-09 19:50 | shuehner | Fixed in Version | => 2.50MP14 |
2010-03-10 17:25 | anonymous | sf_bug_id | 0 => |
2010-03-10 18:30 | anonymous | sf_bug_id | => 2968118 |
2010-03-12 22:40 | hudsonbot | Checkin | |
2010-03-12 22:40 | hudsonbot | Note Added: 0025368 | |
2010-03-12 22:40 | hudsonbot | Checkin | |
2010-03-12 22:40 | hudsonbot | Note Added: 0025380 | |
2011-03-03 09:35 | hgbot | Checkin | |
2011-03-03 09:35 | hgbot | Note Added: 0034521 | |
2011-03-03 09:35 | hgbot | Checkin | |
2011-03-03 09:35 | hgbot | Note Added: 0034523 |
Copyright © 2000 - 2009 MantisBT Group |