Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0038705Openbravo ERPY. DBSourceManagerpublic2018-06-05 17:022022-02-01 08:08
caristu 
Triage Platform Base 
highminorhave not tried
acknowledgedopen 
5
 
 
No
Core
No
0038705: DB Functions returning CLOB type are not supported in Oracle
Currently it is possible to define functions that return the text type in PostgreSQL. When exporting such functions in Oracle, this return type is stored as CLOB within the xml definition.

But when installing a function like that in Oracle an error is thrown during update.database task.
1) Apply the attached patch
2) Using PostgreSQL, execute ant smartbuild -Dlocal=no. OK
3) Using Oracle, execute ant smartbuild -Dlocal=no. It fails.
The return type is exported as CLOB. This type is currently not being mapped properly for Oracle by DBSM.

- Postgres type mapping: https://code.openbravo.com/erp/devel/dbsm-main/file/tip/src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java#l69 [^]
- Oracle type mapping: https://code.openbravo.com/erp/devel/dbsm-main/file/8d1a581a7dcb/src/org/apache/ddlutils/platform/oracle/OraclePlatform.java#l87 [^]

Decide how to map it
No tags attached.
causes defect 0038691 closed  Openbravo Localizations France Professional Localization Pack incompatible with Oracle 
diff dbfunction.diff (498) 2018-06-05 17:07
https://issues.openbravo.com/file_download.php?file_id=11828&type=bug
Issue History
2018-06-05 17:02caristuNew Issue
2018-06-05 17:02caristuAssigned To => platform
2018-06-05 17:02caristuOBNetwork customer => No
2018-06-05 17:02caristuModules => Core
2018-06-05 17:02caristuTriggers an Emergency Pack => No
2018-06-05 17:02caristuCategoryA. Platform => Y. DBSourceManager
2018-06-05 17:07caristuFile Added: dbfunction.diff
2018-06-05 17:16caristuSummaryDB Functions returning text type are not supported in Oracle => DB Functions returning CLOB type are not supported in Oracle
2018-06-05 17:16caristuDescription Updatedbug_revision_view_page.php?rev_id=17256#r17256
2018-06-06 09:59psanjuanRelationship addedcauses 0038691
2018-06-15 11:01alostaleStatusnew => acknowledged
2018-06-15 11:01alostaleTypedefect => feature request
2018-08-24 10:38caristuProposed Solution updated
2022-02-01 08:08alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.