Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0034488 | Openbravo ERP | Y. DBSourceManager | public | 2016-11-14 12:21 | 2023-12-06 08:24 | |||||||||||||||||||||
Reporter | vmromanos | |||||||||||||||||||||||||
Assigned To | caristu | |||||||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | 3.0PR17Q1 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | alostale | |||||||||||||||||||||||||
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 | 0034488: Unsolvable dbconsistency problems in index functions | |||||||||||||||||||||||||
Description | I have a custom function developed in the prescript* files (not sure if this really matters). This function, which has 2 parameters, is used as part of a function index. The export database process always modifies the way the function parameters in the index definition are written: it either adds or removes a blank space. Example I (In Oracle): Index definition in XML before exporting database (note the blank space between the parameters (GENERATED_CREDIT, USED_CREDIT): <index name="FIN_PAYMENT_BP_CREDIT_IX" unique="false"> <index-column name="C_BPARTNER_ID"/> <index-column name="functionBasedColumn" functionExpression="OBEQUALS(GENERATED_CREDIT, USED_CREDIT)"/> </index> Index definition in XML after exporting database (note the blank space has been removed): <index name="FIN_PAYMENT_BP_CREDIT_IX" unique="false"> <index-column name="C_BPARTNER_ID"/> <index-column name="functionBasedColumn" functionExpression="OBEQUALS(GENERATED_CREDIT,USED_CREDIT)"/> </index> Note that the previous example is not valid as the mentioned blank space should not be present on the XML file Example II (In PostgresSQL): Index definition in XML before exporting database (note there is NO blank space between the parameters (GENERATED_CREDIT,USED_CREDIT): <index name="FIN_PAYMENT_BP_CREDIT_IX" unique="false"> <index-column name="C_BPARTNER_ID"/> <index-column name="functionBasedColumn" functionExpression="OBEQUALS(GENERATED_CREDIT,USED_CREDIT)"/> </index> Index definition in XML after exporting database (note the blank space between parameters is added): <index name="FIN_PAYMENT_BP_CREDIT_IX" unique="false"> <index-column name="C_BPARTNER_ID"/> <index-column name="functionBasedColumn" functionExpression="OBEQUALS(GENERATED_CREDIT, USED_CREDIT)"/> </index> | |||||||||||||||||||||||||
Steps To Reproduce | In PostgreSQL instance Apply patch attached to 0033581 (without space between parameters) Set core in development. Export database. See the diff in FIN_PAYMENT.xml file (it adds a space in parameters) Run smarbuild -Dlocal=no Export database again. See the FIN_PAYMENT.xml file (the space between parameters have been removed) Tested in try: https://code.openbravo.com/erp/devel/try/graph/7cec3fd4e1346b7f05d55fdf0eafc7e72f8e25df [^] https://ci.openbravo.com//job/try-dbcons-pgsql/4691/ [^] https://code.openbravo.com/erp/devel/try/graph/f840a525ce1c8fc45680e7028788c0b7bfde6618 [^] https://ci.openbravo.com//job/try-dbcons-oracle/4696/ [^] | |||||||||||||||||||||||||
Proposed Solution | ||||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2016-11-14 12:21 | vmromanos | New Issue | ||||||||||||||||||||||||
2016-11-14 12:21 | vmromanos | Assigned To | => platform | |||||||||||||||||||||||
2016-11-14 12:21 | vmromanos | Modules | => Core | |||||||||||||||||||||||
2016-11-14 12:21 | vmromanos | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2016-11-14 12:21 | vmromanos | Relationship added | blocks 0033581 | |||||||||||||||||||||||
2016-11-15 18:27 | caristu | Assigned To | platform => caristu | |||||||||||||||||||||||
2016-11-16 11:05 | hgbot | Checkin | ||||||||||||||||||||||||
2016-11-16 11:05 | hgbot | Note Added: 0091598 | ||||||||||||||||||||||||
2016-11-16 16:04 | caristu | Summary | Unsolvable dbconsistency problems in index functions (Oracle only) => Unsolvable dbconsistency problems in index functions | |||||||||||||||||||||||
2016-11-16 16:04 | caristu | Description Updated | bug_revision_view_page.php?rev_id=13780#r13780 | |||||||||||||||||||||||
2016-11-16 16:04 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13782#r13782 | |||||||||||||||||||||||
2016-11-16 16:04 | caristu | Description Updated | bug_revision_view_page.php?rev_id=13783#r13783 | |||||||||||||||||||||||
2016-11-16 16:21 | hgbot | Checkin | ||||||||||||||||||||||||
2016-11-16 16:21 | hgbot | Note Added: 0091604 | ||||||||||||||||||||||||
2016-11-16 17:10 | hgbot | Checkin | ||||||||||||||||||||||||
2016-11-16 17:10 | hgbot | Note Added: 0091607 | ||||||||||||||||||||||||
2016-11-16 17:10 | hgbot | Status | new => resolved | |||||||||||||||||||||||
2016-11-16 17:10 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2016-11-16 17:10 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/a3c30b683b0a40e2ca67f12dd68765175b259f10 [^] | |||||||||||||||||||||||
2016-11-16 17:10 | caristu | Review Assigned To | => alostale | |||||||||||||||||||||||
2016-11-22 09:52 | inigosanchez | Relationship added | has duplicate 0034209 | |||||||||||||||||||||||
2016-11-25 09:53 | alostale | Relationship added | related to 0030179 | |||||||||||||||||||||||
2016-11-25 09:55 | alostale | Note Added: 0091816 | ||||||||||||||||||||||||
2016-11-25 09:55 | alostale | Status | resolved => closed | |||||||||||||||||||||||
2016-11-25 09:55 | alostale | Fixed in Version | => 3.0PR17Q1 | |||||||||||||||||||||||
2016-12-16 18:38 | hudsonbot | Checkin | ||||||||||||||||||||||||
2016-12-16 18:38 | hudsonbot | Note Added: 0092637 | ||||||||||||||||||||||||
2023-12-06 08:24 | dnesemr | Note Added: 0157980 | ||||||||||||||||||||||||
2023-12-06 13:23 | priyam | Note View State: private: 157980 | ||||||||||||||||||||||||
2023-12-06 13:24 | priyam | Note Deleted: 0157980 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|