Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013642Openbravo ERPY. DBSourceManagerpublic2010-06-14 12:322010-07-13 00:00
networkb 
marvintm 
highmajoralways
closedfixed 
5
2.50MP18 
2.50MP20 
Core
No
0013642: The checkTranslationConsistency detects a possible error when using a function from core in your own function.
The checkTranslationConsistency detects a possible error when using a function from core in your own function.
-Create a module with a prefix an set as indevelopment
-Create your own function using the prefix.
-From this function call to a function from core or from other module.
-Execute the export.database task
-You get a warning like following:


[exportdatabase] Found differences in FUNCTION_NAME_1
[exportdatabase] ********************************************************
[exportdatabase] v_ResultStr:='PInstanceNotFound';
[exportdatabase] [PERFORM +]
[exportdatabase] AD_UPDATE_PINSTANCE(PInstance_ID, NULL, 'Y', NULL, NULL) ;
[exportdatabase]
[exportdatabase] [PERFORM +] UPDATE c_order SET em_op_pcng_eva='N' WHERE c_order_ID=v_Record_ID;
[exportdatabase] [ PERFORM+]
[exportdatabase] AD_UPDATE_PINSTANCE(PInstance_ID, NULL, 'N', 0, v_ResultStr) ;
[exportdatabase] RETURN;
[exportdatabase]
[exportdatabase] ********************************************************
[exportdatabase] Found differences in FUNCTION_NAME_2
[exportdatabase] ********************************************************
[exportdatabase] [
[exportdatabase] +] VALUES (get_uuid(), '265406C8AFD045ADB1A1E18C345D6CAE', Cur_Rows.m_product_id, '3125375095B1471FA04D953796F1545D',
[exportdatabase] '512CC47A9CE740F3918B0816279F6B96',[TO_DATE(NOW][now+]()[)],[TO_DATE][now+]([NOW()]
[exportdatabase] ),'0','0');
[exportdatabase]
[exportdatabase] [TO_DATE(NOW][now+]()[)],[TO_DATE][now+]([NOW()]
[exportdatabase] END LOOP;[
[exportdatabase] +]
[exportdatabase]
[exportdatabase] END
[exportdatabase]
No tags attached.
Issue History
2010-06-14 12:32networkbNew Issue
2010-06-14 12:32networkbAssigned To => marvintm
2010-06-14 13:02iciordiaStatusnew => acknowledged
2010-06-29 10:37hgbotCheckin
2010-06-29 10:37hgbotNote Added: 0028845
2010-06-29 10:37hgbotStatusacknowledged => resolved
2010-06-29 10:37hgbotResolutionopen => fixed
2010-06-29 10:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f67a0a6c95b95147f1deb5d8ca3311ac7669be33 [^]
2010-06-29 12:06hgbotCheckin
2010-06-29 12:06hgbotNote Added: 0028854
2010-06-29 12:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/f67a0a6c95b95147f1deb5d8ca3311ac7669be33 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/dea60afbccb48a623b9dc4c85e08d0f2ee0acd1e [^]
2010-07-02 14:50hudsonbotCheckin
2010-07-02 14:50hudsonbotNote Added: 0028993
2010-07-12 14:01iperdomoNote Added: 0029229
2010-07-12 14:01iperdomoStatusresolved => closed
2010-07-13 00:00anonymoussf_bug_id0 => 3028664

Notes
(0028845)
hgbot   
2010-06-29 10:37   
Repository: erp/devel/pi
Changeset: f67a0a6c95b95147f1deb5d8ca3311ac7669be33
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Jun 29 10:36:16 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f67a0a6c95b95147f1deb5d8ca3311ac7669be33 [^]

Fixed issue 13642. CheckTranslationConsistency will work correctly
specifically with functions which use other functions which don't belong to the same module

---
M src-db/database/lib/dbsourcemanager.jar
---
(0028854)
hgbot   
2010-06-29 12:06   
Repository: erp/devel/dbsm-main
Changeset: dea60afbccb48a623b9dc4c85e08d0f2ee0acd1e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue Jun 29 10:34:39 2010 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/dea60afbccb48a623b9dc4c85e08d0f2ee0acd1e [^]

Fixed issue 13642. CheckTranslationConsistency will work correctly
specifically with functions which use other functions which don't belong to the same module

---
M src/org/apache/ddlutils/Platform.java
M src/org/apache/ddlutils/platform/PlatformImplBase.java
M src/org/apache/ddlutils/platform/oracle/Oracle8Platform.java
M src/org/apache/ddlutils/platform/postgresql/PostgreSqlPlatform.java
M src/org/openbravo/ddlutils/task/ExportDatabase.java
---
(0028993)
hudsonbot   
2010-07-02 14:50   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/f67a0a6c95b9 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/8fd5a427789e [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17797.obx [^]
(0029229)
iperdomo   
2010-07-12 14:01   
Tested on pi @ rev 58227be84239