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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021073
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-07-13 14:312012-07-17 11:30
ReporterSandrahuguetView Statuspublic 
Assigned ToAugustoMauch 
PriorityurgentResolutionfixedFixed in Version3.0MP13
StatusclosedFix in branchFixed in SCM revisioneefb7b36438c
ProjectionnoneETAnoneTarget Version3.0MP13
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0021073: Impossible to do export.database with computed column

DescriptionImpossible to do export.database with computed column


Steps To ReproduceWith the new concept computed column
-Create a column with sqllogic
-Create a field asociate, this field must be read only
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0050569)
Sandrahuguet (developer)
2012-07-13 14:32

Error:

Errors for Validation type: NOT_EXIST_IN_DB
+++++++++++++++++++++++++++++++++++++++++++++++++++
Column FIN_Financial_Account.lastreconciliation defined in the Application Dictionary but not present in the database.
Module validation failed, see the above list of errors for more information

BUILD FAILED
/home/openbravo/workspace4o/pi/openbravo/build.xml:746: The following error occurred while executing this line:
/home/openbravo/workspace4o/pi/openbravo/src-db/database/build.xml:155: org.openbravo.base.exception.OBException: Module validation failed, see the above list of errors for more information
    at org.openbravo.ddlutils.task.ExportDatabase.validateDatabaseForModule(ExportDatabase.java:287)
    at org.openbravo.ddlutils.task.ExportDatabase.execute(ExportDatabase.java:161)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
(0050604)
hgbot (developer)
2012-07-16 13:42

Repository: erp/devel/pi
Changeset: eefb7b36438c4aa907c7542f44e0bf00cf684d63
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Jul 16 13:41:04 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/eefb7b36438c4aa907c7542f44e0bf00cf684d63 [^]

Fixes issue 21073: Computed columns do not need a database column

If a column is a computed column (it has defined sql logic), it does not need to have a database column.

---
M src/org/openbravo/service/system/DatabaseValidator.java
---
(0050605)
AugustoMauch (manager)
2012-07-16 13:48

Test plan:
- Open the Tables and Columns window and add a column with Sql logic.
- Run export.database. It should not fail, because columns with sql logic defined do not need a physical column
- Delete the sql logic from the previously defined column.
- Run again export.database. Now it should fail, because the new column does not have sql logic and does not have a column defined in the database.

The fix is not risky.
(0050630)
alostale (manager)
2012-07-16 18:31

Code reviewed and verified on pi@eefb7b36438c
(0050649)
hudsonbot (developer)
2012-07-17 11:30

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/e0c03882496c [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2012-07-13 14:31 Sandrahuguet New Issue
2012-07-13 14:31 Sandrahuguet Assigned To => alostale
2012-07-13 14:31 Sandrahuguet Modules => Core
2012-07-13 14:32 Sandrahuguet Description Updated View Revisions
2012-07-13 14:32 Sandrahuguet Note Added: 0050569
2012-07-13 14:32 Sandrahuguet Description Updated View Revisions
2012-07-16 13:36 AugustoMauch Assigned To alostale => AugustoMauch
2012-07-16 13:42 hgbot Checkin
2012-07-16 13:42 hgbot Note Added: 0050604
2012-07-16 13:42 hgbot Status new => resolved
2012-07-16 13:42 hgbot Resolution open => fixed
2012-07-16 13:42 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/eefb7b36438c4aa907c7542f44e0bf00cf684d63 [^]
2012-07-16 13:48 AugustoMauch Note Added: 0050605
2012-07-16 18:31 alostale Note Added: 0050630
2012-07-16 18:31 alostale Status resolved => closed
2012-07-16 18:31 alostale Fixed in Version => 3.0MP13
2012-07-17 11:30 hudsonbot Checkin
2012-07-17 11:30 hudsonbot Note Added: 0050649


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker