Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0041795 | Openbravo ERP | A. Platform | public | 2019-09-10 18:12 | 2019-09-19 09:02 | |||||||
Reporter | vmromanos | |||||||||||
Assigned To | platform | |||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | invalid | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
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 | 0041795: Oracle only: multi-column index with function based column doesn't properly apply | |||||||||||
Description | It seems that when you have a multi-column index where any of the columns has a function, the install.source/update.database processes fail in Oracle (in PG works fine). | |||||||||||
Steps To Reproduce | In an Oracle instance clone the following modules: https://code.openbravo.com/erp/pmods/org.openbravo.oms [^] https://code.openbravo.com/erp/mods/org.openbravo.api.ticket [^] Note the OBOMS_STOCK_BY_WAREHOUSE table has the following index: <index name="OBOMS_SBW_AVAILABLEPROD_IX" unique="false"> <index-column name="functionBasedColumn" functionExpression="(QTYONHAND-RESERVEDQTY)>0"/> <index-column name="M_PRODUCT_ID"/> </index> Run ant install.source (with smartbuild -Dlocal=no it is also reproducible). The following error is thrown: [createdatabase] 168019 [main] WARN org.apache.ddlutils.platform.OracleStandardBatchEvaluator - SQL Command failed with: ORA-00907: falta el paréntesis derecho [createdatabase] [createdatabase] 168019 [main] WARN org.apache.ddlutils.platform.OracleStandardBatchEvaluator - -- END [createdatabase] CREATE INDEX OBOMS_SBW_AVAILABLEPROD_IX ON OBOMS_STOCK_BY_WAREHOUSE (((QTYONHAND-RESERVEDQTY)>0), M_PRODUCT_ID) [createdatabase] 210228 [main] INFO org.apache.ddlutils.platform.OracleStandardBatchEvaluator - Executed 14045 SQL command(s) with 1 error(s) in 141956 ms | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2019-09-10 18:12 | vmromanos | New Issue | ||||||||||
2019-09-10 18:12 | vmromanos | Assigned To | => platform | |||||||||
2019-09-10 18:12 | vmromanos | Modules | => Core | |||||||||
2019-09-10 18:12 | vmromanos | Triggers an Emergency Pack | => No | |||||||||
2019-09-10 18:12 | vmromanos | Relationship added | related to 0041785 | |||||||||
2019-09-10 18:15 | vmromanos | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19374#r19374 | |||||||||
2019-09-10 18:16 | vmromanos | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=19375#r19375 | |||||||||
2019-09-19 09:02 | alostale | Note Added: 0114664 | ||||||||||
2019-09-19 09:02 | alostale | Status | new => closed | |||||||||
2019-09-19 09:02 | alostale | Resolution | open => invalid |
Notes | |||||
|
|||||
|
|