Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0004804 | Openbravo ERP | Z. Others | public | 2008-09-03 18:24 | 2009-03-26 13:04 | |||||||
Reporter | egoitz | |||||||||||
Assigned To | Hennadzi | |||||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | pi | |||||||||||
Target Version | 2.40 | Fixed in Version | ||||||||||
Merge Request Status | ||||||||||||
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 | 0004804: m_get_offers_name function does not work on postgreSQL | |||||||||||
Description | The m_get_offers_name function does not work on postgresql | |||||||||||
Steps To Reproduce | I tried to use this function defined to do a develop. I defined a new Price adjustemnt and assigned a product to this price adjustment. I execute the next order and it didn't return nothing. select m_get_offers_name(to_date(now()),anypartner_id,the_id_of_the_productassigned) from dual; | |||||||||||
Proposed Solution | The problem is that the next variable is initialized with NULL and then a String is concatened to this variable, and it is not possible in postgre. v_Names VARCHAR(10000) := NULL; ... ... LOOP IF v_Names IS NOT NULL THEN v_Names := v_Names||' '; END IF; v_Names := v_Names||Cur_Offer.name; END LOOP; To solve it you have to use an empty string instead of NULL and the compare the v_Names with an empty string instead of compare with NULL. Posible solution: v_Names VARCHAR(10000) := ''; ... ... IF v_Names <> '' THEN v_Names := v_Names||'<b r/>& nbsp;'; END IF; v_Names := v_Names||Cur_Offer.name; END LOOP; | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2008-09-03 18:24 | cromero | New Issue | ||||||||||
2008-09-03 18:24 | cromero | Assigned To | => egoitz | |||||||||
2008-09-03 18:24 | cromero | Status | new => scheduled | |||||||||
2008-11-13 22:47 | rafaroda | Assigned To | egoitz => Hennadzi | |||||||||
2008-11-24 17:45 | svnbot | Checkin | ||||||||||
2008-11-24 17:45 | svnbot | Note Added: 0010581 | ||||||||||
2008-11-24 17:45 | svnbot | Status | scheduled => resolved | |||||||||
2008-11-24 17:45 | svnbot | Resolution | open => fixed | |||||||||
2008-11-24 17:45 | svnbot | svn_revision | => 10483 | |||||||||
2008-11-25 16:17 | svnbot | Checkin | ||||||||||
2008-11-25 16:17 | svnbot | Note Added: 0010651 | ||||||||||
2008-11-25 16:17 | svnbot | svn_revision | 10483 => 10556 | |||||||||
2009-01-27 17:13 | rafaroda | Note Added: 0012696 | ||||||||||
2009-01-27 17:14 | rafaroda | Note Edited: 0012696 | ||||||||||
2009-02-02 16:13 | rafaroda | Note Deleted: 0010651 | ||||||||||
2009-03-03 17:32 | psarobe | Fixed in Version | => 2.40MP3 | |||||||||
2009-03-24 11:01 | psarobe | Fixed in Version | 2.40MP3 => 2.40MP4 | |||||||||
2009-03-26 13:04 | sureshbabu | Regression testing | => No | |||||||||
2009-03-26 13:04 | sureshbabu | Status | resolved => closed | |||||||||
2009-03-26 13:04 | sureshbabu | Note Added: 0015003 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|