Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004662Openbravo ERPA. Platformpublic2008-08-20 18:042008-11-25 23:28
shuehner 
shuehner 
normalmajoralways
closedfixed 
20Ubuntu 8.04
 
2.50 
Core
No
0004662: Production -> Maintenance Plan -> Form View gives SQLException in r2.5x after uuid-merge
The Form view of the Maintenance Plan does not work after the uuid-merge.
As SQLException "ORA-00932: inconsistent datatypes: expected CHAR got NUMBER " is thrown when executing as Select-Statement created by the ComboTableData class.

The executed SQL-Statement is:

SELECT td0.MA_Machine_ID AS ID, (COALESCE(TO_CHAR(TO_CHAR(td0.Value)),'') || ' - ' || COALESCE(TO_CHAR(TO_CHAR(td0.Name)),'')) AS NAME, '' AS DESCRIPTION
FROM MA_Machine td0
WHERE td0.AD_Client_ID IN ('0','1000000')
AND td0.AD_Org_ID IN ('1000002','1000003','1000004','1000000','0')
AND COALESCE(td0.MA_Machine_Type_ID,-1) = COALESCE(?, COALESCE(td0.MA_Machine_Type_ID,'-1'))
AND (td0.isActive = 'Y' OR td0.MA_Machine_ID = (?) )
ORDER BY 2

The problem is likely this "COALESCE(td0.MA_Machine_Type_ID,-1)" part, where the -1 specified as a number does not match the MA_Machine_Type_ID field which is now VARCHAR(32)
Configure Maintenance for at least one machine
Run Process Insert Maintenance
Go to Maintenance Plan (Form View)
UUID project
Issue History
2008-08-20 18:04shuehnerNew Issue
2008-08-20 18:04shuehnerAssigned To => cromero
2008-08-20 18:04shuehnersf_bug_id0 => 2062631
2008-08-20 18:04shuehnerRegression testing => No
2008-08-21 12:06psarobeversiontrunk =>
2008-08-21 12:06psarobeTag Attached: UUID project
2008-08-21 12:49psarobeTarget Version => 2.50
2008-09-02 08:48cromeroStatusnew => scheduled
2008-09-02 08:48cromeroAssigned Tocromero => shuehner
2008-09-02 08:48cromerofix_in_branch => trunk
2008-09-02 19:12svnbotCheckin
2008-09-02 19:12svnbotNote Added: 0008858
2008-09-02 19:12svnbotStatusscheduled => resolved
2008-09-02 19:12svnbotResolutionopen => fixed
2008-09-02 19:12svnbotsvn_revision => 6752
2008-11-25 23:28psarobeStatusresolved => closed

Notes
(0008858)
svnbot   
2008-09-02 19:12   
Repository: openbravo
Revision: 6752
Author: huehner
Date: 2008-09-02 19:12:16 +0200 (Tue, 02 Sep 2008)

Fixed 4662
Modify validation applied to some combobox
Quote -1 as '-1' to make postgresql-8.3 working

---
U branches/r2.5x/src-db/database/sourcedata/AD_VAL_RULE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=6752&sc=1 [^]