Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0035543 | Openbravo ERP | A. Platform | public | 2017-03-16 14:35 | 2017-03-17 10:02 |
|
Reporter | alostale | |
Assigned To | alostale | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR17Q2 | |
Merge Request Status | |
Review Assigned To | caristu |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0035543: incorrect export of indexes including CASE expressions |
Description | Indexes containing a CASE expression are not correctly are not correctly exported. |
Steps To Reproduce | 1. Create an index as: create index fin_payment_bpartner_credit on fin_payment ((CASE generated_credit WHEN used_credit THEN 'Y' ELSE 'N' END));
2. Export database
-> check the xml is not correct, having the index in multiple lines
|
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0035474 | | closed | alostale | Function based indexes do not support arithmetic operations on columns | related to | feature request | 0030179 | 3.0PR15Q4 | closed | AugustoMauch | DBSourceManager support indexes with functions |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2017-03-16 14:35 | alostale | New Issue | |
2017-03-16 14:35 | alostale | Assigned To | => platform |
2017-03-16 14:35 | alostale | Modules | => Core |
2017-03-16 14:35 | alostale | Triggers an Emergency Pack | => No |
2017-03-16 14:35 | alostale | Review Assigned To | => caristu |
2017-03-16 14:35 | alostale | Assigned To | platform => alostale |
2017-03-16 15:25 | hgbot | Checkin | |
2017-03-16 15:25 | hgbot | Note Added: 0095324 | |
2017-03-16 15:25 | hgbot | Status | new => resolved |
2017-03-16 15:25 | hgbot | Resolution | open => fixed |
2017-03-16 15:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b2399983cba65bbaf369322edda57206b79f4ca2 [^] |
2017-03-16 15:25 | alostale | Relationship added | related to 0030179 |
2017-03-16 15:25 | hgbot | Checkin | |
2017-03-16 15:25 | hgbot | Note Added: 0095325 | |
2017-03-16 15:25 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/b2399983cba65bbaf369322edda57206b79f4ca2 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/839d66eb2879fd960641ec57aed9cf696baad161 [^] |
2017-03-17 02:25 | hudsonbot | Checkin | |
2017-03-17 02:25 | hudsonbot | Note Added: 0095349 | |
2017-03-17 10:01 | caristu | Note Added: 0095357 | |
2017-03-17 10:01 | caristu | Status | resolved => closed |
2017-03-17 10:01 | caristu | Fixed in Version | => 3.0PR17Q2 |
2017-03-17 10:02 | caristu | Relationship added | related to 0035474 |
Notes |
|
(0095324)
|
hgbot
|
2017-03-16 15:25
|
|
Repository: erp/devel/pi
Changeset: b2399983cba65bbaf369322edda57206b79f4ca2
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 16 15:05:03 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b2399983cba65bbaf369322edda57206b79f4ca2 [^]
fixed bug 35543: incorrect export of indexes including CASE expressions
Indexes with CASE expressions, were incorrectly and differently exported in
PG and ORA. PG transforms the expression in multi line and in both ORA and
PG extra blankspaces are added.
Fixed in by removing new lines in PG (the same as done in views) and removing
extra blankspaces in both cases.
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0095325)
|
hgbot
|
2017-03-16 15:25
|
|
Repository: erp/devel/dbsm-main
Changeset: 839d66eb2879fd960641ec57aed9cf696baad161
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Mar 16 15:03:46 2017 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/839d66eb2879fd960641ec57aed9cf696baad161 [^]
fixed bug 35543: incorrect export of indexes including CASE expressions
Indexes with CASE expressions, were incorrectly and differently exported in
PG and ORA. PG transforms the expression in multi line and in both ORA and
PG extra blankspaces are added.
Fixed in by removing new lines in PG (the same as done in views) and removing
extra blankspaces in both cases.
---
M src-test/src/org/openbravo/dbsm/test/model/FunctionBasedIndexes.java
M src/org/apache/ddlutils/platform/oracle/OracleModelLoader.java
M src/org/apache/ddlutils/platform/postgresql/PostgreSqlModelLoader.java
A src-test/model/indexes/FUNCTION_INDEX_CASE.xml
---
|
|
|
|
|
|
|
Code reviewed + testing OK. |
|