Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0033787 | Openbravo ERP | A. Platform | public | 2016-08-24 10:25 | 2016-09-23 18:22 |
|
Reporter | NaroaIriarte | |
Assigned To | NaroaIriarte | |
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.0PR16Q4 | |
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 | 0033787: Some PL functions need to be properly deleted and reviewed |
Description | The hex_to_int is_trigger_enabled functions are not deleted when an update.database is done, it would be nice to do it this way.
The instr function is showing a warning: warning:00000:6:DECLARE:unused variable "i".
This should be fixed also. |
Steps To Reproduce | . |
Proposed Solution | For the hex_to_int and is_trigger_enabled functions: drop the functions if they exist in the postscript-Oracle.sql and prescript-PostgreSql.sql classes.
For the instr function, remove the unused i variable. |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0032932 | | closed | NaroaIriarte | There are a lot of warnings in the application that should be fixed |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2016-08-24 10:25 | NaroaIriarte | New Issue | |
2016-08-24 10:25 | NaroaIriarte | Assigned To | => NaroaIriarte |
2016-08-24 10:25 | NaroaIriarte | Modules | => Core |
2016-08-24 10:25 | NaroaIriarte | Triggers an Emergency Pack | => No |
2016-08-24 10:26 | NaroaIriarte | Relationship added | related to 0032932 |
2016-08-24 10:26 | NaroaIriarte | Review Assigned To | => alostale |
2016-08-24 10:26 | NaroaIriarte | Status | new => acknowledged |
2016-08-24 10:27 | NaroaIriarte | Status | acknowledged => scheduled |
2016-08-26 12:10 | NaroaIriarte | Note Added: 0089442 | |
2016-09-22 10:41 | hgbot | Checkin | |
2016-09-22 10:41 | hgbot | Note Added: 0090152 | |
2016-09-22 10:41 | hgbot | Status | scheduled => resolved |
2016-09-22 10:41 | hgbot | Resolution | open => fixed |
2016-09-22 10:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/38d87f5ca8e1016f21cda73371157e8f5ba39d7c [^] |
2016-09-23 08:16 | alostale | Note Added: 0090179 | |
2016-09-23 08:16 | alostale | Status | resolved => closed |
2016-09-23 08:16 | alostale | Fixed in Version | => 3.0PR16Q4 |
2016-09-23 18:22 | hudsonbot | Checkin | |
2016-09-23 18:22 | hudsonbot | Note Added: 0090214 | |
Notes |
|
|
The "hex_to_int" and "is_trigger_enabled" functions are kept in the excludeFilter.xml because they are needed to avoid the following errors when executing ant update.database:
[java] Error reading default values for parameters in function hex_to_int (pattern not found)
...
[java] java.lang.NullPointerException
[java] at org.apache.ddlutils.model.Parameter.getName(Parameter.java:53)
[java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.writeParameter(PostgreSqlBuilder.java:476)
[java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.writeDropFunctionStmt(PostgreSqlBuilder.java:316)
[java] at org.apache.ddlutils.platform.SqlBuilder.dropFunction(SqlBuilder.java:4040)
[java] at org.apache.ddlutils.platform.postgresql.PostgreSqlBuilder.dropFunction(PostgreSqlBuilder.java:466)
[java] at org.apache.ddlutils.platform.SqlBuilder.processChange(SqlBuilder.java:1336)
... |
|
|
(0090152)
|
hgbot
|
2016-09-22 10:41
|
|
Repository: erp/devel/pi
Changeset: 38d87f5ca8e1016f21cda73371157e8f5ba39d7c
Author: Naroa Iriarte <naroa.iriarte <at> openbravo.com>
Date: Thu Sep 22 10:40:12 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/38d87f5ca8e1016f21cda73371157e8f5ba39d7c [^]
Fixed issue 33787: Some PL functions needed to be properly removed
The hex_to_int and is_trigger_enabled functions were not properly removed, it was neccessary to do an install.source to have them properly removed. Now these functios are removed if they exist when an update is done.
---
M src-db/database/model/postscript-Oracle.sql
M src-db/database/model/prescript-PostgreSql.sql
---
|
|
|
|
code reviewed
tested in oracle and pg:
1. When updating from an old version when those functions are present, they get properly removed on update
2. When updating from a newer version when those functions don't exist, there is no error |
|
|
|
|