Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0047817 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2021-10-06 09:54 | 2022-01-13 11:15 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR22Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() | |||||||
![]() |
|
![]() |
|
(0132338) hgbot (developer) 2021-10-14 09:52 |
Merge Request created: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/32 [^] |
(0132557) hgbot (developer) 2021-10-22 10:00 |
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/443 [^] |
(0132581) hgbot (developer) 2021-10-22 11:42 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/openbravo [^] Changeset: bb422b20c7f51c400c70fbc6fff0629c2045fef4 Author: Augusto Mauch <augusto.mauch@openbravo.com> Date: 2021-10-22T09:53:11+02:00 URL: https://gitlab.com/openbravo/product/openbravo/-/commit/bb422b20c7f51c400c70fbc6fff0629c2045fef4 [^] Fixes ISSUE-47817: Cannot use new immutable function in function index Now the immutable functions are created before the tables and its indexes. This way it is possible to define an immutable function, export it to a module and then reference it from a table index. --- M src-db/database/lib/dbsourcemanager.jar --- |
(0132582) hgbot (developer) 2021-10-22 11:42 |
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/443 [^] |
(0132585) hgbot (developer) 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 (developer) 2021-10-22 12:29 |
Merge request merged: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/32 [^] |
![]() |
|||
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 | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |