Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0011529 | Openbravo ERP | A. Platform | public | 2009-11-27 13:37 | 2012-04-01 20:37 |
|
Reporter | iperdomo | |
Assigned To | migueldejuana | |
Priority | urgent | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 10 | OS Version | XP |
Product Version | 2.50MP7 | |
Target Version | | Fixed in Version | 3.0MP10 | |
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 | 0011529: Create columns process suggests wrong references |
Description | Create 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. |
Steps To Reproduce | |
Proposed Solution | Suggest:
* Date/DateTime for Timestamp
* Number for Numeric columns with decimal places |
Additional Information | |
Tags | OB3-Reviewed |
Relationships | related to | defect | 0014777 | | closed | migueldejuana | Create columns from DB not working with columns of type text (PostgreSQL) |
|
Attached Files | |
|
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:37 | iperdomo | OBNetwork customer | => No |
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 | |
Notes |
|
|
Tested in current pi:
-Timestamp is working as suggested
-NUMERIC(10,3) still proposing integer |
|
|
(0046103)
|
hgbot
|
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
---
|
|
|
|
Code review and tested on pi@a4fce66154b0 |
|
|
|
|