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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0011529
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminoralways2009-11-27 13:372012-04-01 20:37
ReporteriperdomoView Statuspublic 
Assigned Tomigueldejuana 
PriorityurgentResolutionfixedFixed in Version3.0MP10
StatusclosedFix in branchFixed in SCM revisiona4fce66154b0
ProjectionnoneETAnoneTarget Version
OSWindowsDatabasePostgreSQLJava version1.6.0_14
OS VersionXPDatabase version8.3.7Ant version1.7.1
Product Version2.50MP7SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0011529: Create columns process suggests wrong references

DescriptionCreate a table with a timestamp column and execute the process 'Create Columns from DB' ... The reference suggested is String and then the module validation fails:
+++++++++++++++++++++++++++++++++++++++++++++++++++
Errors for Validation type: WRONG_TYPE
+++++++++++++++++++++++++++++++++++++++++++++++++++
Column DBPREFIX_TABLE.TIMESTAMP_COLUMN has incorrect type, expecting VARCHAR NVARCHAR CHAR NCHAR CLOB but was TIMESTAMP

Also when using datatype eg. NUMERIC(10,3) .. A numeric value with decimal positions, the suggested reference is Integer that then is mapped to a Long java type.
Proposed SolutionSuggest:
* Date/DateTime for Timestamp
* Number for Numeric columns with decimal places
TagsOB3-Reviewed
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0014777 closedmigueldejuana Create columns from DB not working with columns of type text (PostgreSQL) 

-  Notes
(0043089)
alostale (manager)
2011-11-22 17:55

Tested in current pi:
-Timestamp is working as suggested
-NUMERIC(10,3) still proposing integer
(0046103)
hgbot (developer)
2012-03-06 18:11

Repository: erp/devel/pi
Changeset: a4fce66154b0fa6cc2810953fccbb817d5c7af1e
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Wed Feb 29 12:51:09 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/a4fce66154b0fa6cc2810953fccbb817d5c7af1e [^]

Fixed issue 11529: process 'Create Columns from DB' changed for Numeric suggestions

The 'Create Columns from DB' process suggested Numeric with the decimal as Integer, this is solved, now suggest Number reference. User_tab_columns have been changed in order to data scale column show the correct value.

---
M src-db/database/model/prescript-PostgreSql.sql
---
(0046104)
alostale (manager)
2012-03-06 18:11

Code review and tested on pi@a4fce66154b0
(0047050)
hudsonbot (developer)
2012-04-01 20:37

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/640de9acc2d5 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2009-11-27 13:37 iperdomo New Issue
2009-11-27 13:37 iperdomo Assigned To => alostale
2009-11-27 13:41 iperdomo Summary Create columns process suggests String when using timestamp as data type => Create columns process suggests wrong references
2009-11-27 13:41 iperdomo Description Updated
2009-11-27 13:41 iperdomo Steps to Reproduce Updated
2010-01-05 12:13 iciordia Priority normal => urgent
2010-01-05 12:13 iciordia Status new => scheduled
2011-11-22 17:55 alostale Note Added: 0043089
2011-11-22 17:55 alostale Tag Attached: OB3-Reviewed
2012-02-21 18:02 alostale Assigned To alostale => migueldejuana
2012-02-29 11:36 migueldejuana Relationship added related to 0014777
2012-03-06 18:11 hgbot Checkin
2012-03-06 18:11 hgbot Note Added: 0046103
2012-03-06 18:11 hgbot Status scheduled => resolved
2012-03-06 18:11 hgbot Resolution open => fixed
2012-03-06 18:11 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a4fce66154b0fa6cc2810953fccbb817d5c7af1e [^]
2012-03-06 18:11 alostale Note Added: 0046104
2012-03-06 18:11 alostale Status resolved => closed
2012-03-06 18:11 alostale Fixed in Version => 3.0MP10
2012-04-01 20:37 hudsonbot Checkin
2012-04-01 20:37 hudsonbot Note Added: 0047050


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker