Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0047817 | Openbravo ERP | A. Platform | public | 2021-10-06 09:54 | 2022-01-13 11:15 |
|
Reporter | aferraz | |
Assigned To | AugustoMauch | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | PR22Q1 | |
Merge Request Status | approved |
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 | 0047817: Not able to use a database immutable function in a table index |
Description | If you create a new database immutable function and use it in a table index, the install.source fails as the index is created before the function.
If you run update.database instead of install.source it works fine because function is created before the index. |
Steps To Reproduce | Apply attached diff and run ant install.source. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | Diff.diff (3,527) 2021-10-06 09:57 https://issues.openbravo.com/file_download.php?file_id=16251&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2021-10-06 09:54 | aferraz | New Issue | |
2021-10-06 09:54 | aferraz | Assigned To | => platform |
2021-10-06 09:54 | aferraz | OBNetwork customer | => No |
2021-10-06 09:54 | aferraz | Modules | => Core |
2021-10-06 09:54 | aferraz | Triggers an Emergency Pack | => No |
2021-10-06 09:57 | aferraz | File Added: Diff.diff | |
2021-10-06 09:59 | aferraz | Summary | Not able to use a database function defined by the user in a table index => Not able to use a database immutable function in a table index |
2021-10-06 09:59 | aferraz | Description Updated | bug_revision_view_page.php?rev_id=23155#r23155 |
2021-10-14 09:52 | hgbot | Merge Request Status | => open |
2021-10-14 09:52 | hgbot | Note Added: 0132338 | |
2021-10-19 16:16 | hgbot | Merge Request Status | open => approved |
2021-10-22 10:00 | hgbot | Note Added: 0132557 | |
2021-10-22 11:42 | hgbot | Resolution | open => fixed |
2021-10-22 11:42 | hgbot | Status | new => closed |
2021-10-22 11:42 | hgbot | Fixed in Version | => PR22Q1 |
2021-10-22 11:42 | hgbot | Note Added: 0132581 | |
2021-10-22 11:42 | hgbot | Note Added: 0132582 | |
2021-10-22 12:29 | hgbot | Note Added: 0132585 | |
2021-10-22 12:29 | hgbot | Note Added: 0132586 | |
2022-01-13 11:15 | plujan | Assigned To | platform => AugustoMauch |
Notes |
|
(0132338)
|
hgbot
|
2021-10-14 09:52
|
|
|
|
(0132557)
|
hgbot
|
2021-10-22 10:00
|
|
|
|
(0132581)
|
hgbot
|
2021-10-22 11:42
|
|
|
|
(0132582)
|
hgbot
|
2021-10-22 11:42
|
|
|
|
(0132585)
|
hgbot
|
2021-10-22 12:29
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/dbsm [^]
Changeset: c2c0cfafbfca0d1c651abbe20b622ea4f3f1a52a
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2021-10-22T09:56:41+02:00
URL: https://gitlab.com/openbravo/product/dbsm/-/commit/c2c0cfafbfca0d1c651abbe20b622ea4f3f1a52a [^]
Fixes ISSUE-47817: Cannot use new immutable function in function index
Now immutable functions are created just before updating the windows, so if an index reference
one of the new immutable functions, they will be already available
---
A src-test/model/indexes/FUNCTION_INDEX_WITH_OB_DEFINED_FUNCTION.xml
A src/org/apache/ddlutils/alteration/AddImmutableFunctionChange.java
A src/org/apache/ddlutils/alteration/AddMutableFunctionChange.java
M src-test/src/org/openbravo/dbsm/test/model/FunctionBasedIndexes.java
M src/org/apache/ddlutils/alteration/AddFunctionChange.java
M src/org/apache/ddlutils/alteration/ModelComparator.java
M src/org/apache/ddlutils/platform/SqlBuilder.java
---
|
|
|
(0132586)
|
hgbot
|
2021-10-22 12:29
|
|
|