Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020780Openbravo ERPA. Platformpublic2012-06-15 10:122012-07-30 11:00
jecharri 
AugustoMauch 
urgentmajorhave not tried
closedfixed 
5
pi 
3.0MP14pi 
Google Chrome
Core
No
0020780: Bug in HBFix_data.xsql insert statement
following code:
<SqlMethod name="insert" type="preparedStatement" return="rowCount">
<Sql>
<![CDATA[
INSERT INTO ad_process_request
VALUES (get_uuid(), '0', '0', 'Y',
NOW(), '100', NOW(), '100', '1005800000',
NULL, '100', 'Y', ? ,
'SCH', NULL, NULL, NULL, 'Process Scheduler', 'S', NOW(),
NOW(), '4', NULL, NULL, NULL, 7, NULL, NULL, NULL, 'N', 'N', 'N', 'N', 'N', 'N','N', 'S', NULL, NULL, 'N', NULL, NULL, 'N', NULL, NULL, 'N', 'N', 'N', NULL)]]>
The insert statement tries to insert into ad_process_request table without specifying columns, so if a module adds a new column to the table, the
insert statement fails
-
The solution is to change the insert statement to:

INSERT INTO ad_process_request(ad_process_request_id, ad_client_id, ad_org_id, ... [name of all core columns] ) VALUES (get_uuid(), etc.)
No tags attached.
Issue History
2012-06-15 10:12jecharriNew Issue
2012-06-15 10:12jecharriAssigned To => alostale
2012-06-15 10:12jecharriWeb browser => Google Chrome
2012-06-15 10:12jecharriModules => Core
2012-06-15 10:12jecharriResolution time => 1339538400
2012-07-18 13:23shuehnerIssue Monitored: shuehner
2012-07-25 15:55AugustoMauchAssigned Toalostale => AugustoMauch
2012-07-25 15:58hgbotCheckin
2012-07-25 15:58hgbotNote Added: 0050837
2012-07-25 15:58hgbotStatusnew => resolved
2012-07-25 15:58hgbotResolutionopen => fixed
2012-07-25 15:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c7f7fd1bcc69afe5349820fb3204aa99c15e0984 [^]
2012-07-26 02:42hudsonbotCheckin
2012-07-26 02:42hudsonbotNote Added: 0050885
2012-07-30 11:00migueldejuanaNote Added: 0050978
2012-07-30 11:00migueldejuanaStatusresolved => closed
2012-07-30 11:00migueldejuanaFixed in Version => pi

Notes
(0050837)
hgbot   
2012-07-25 15:58   
Repository: erp/devel/pi
Changeset: c7f7fd1bcc69afe5349820fb3204aa99c15e0984
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Wed Jul 25 15:58:04 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c7f7fd1bcc69afe5349820fb3204aa99c15e0984 [^]

Fixes issue 20780: Insert statement modified in xsql

The insert statement in HBFix_data.xsql has been modified, and now specifies the columns where the values are being inserted.

---
M src-util/modulescript/build/classes/org/openbravo/modulescript/HBFixData.class
M src-util/modulescript/src/org/openbravo/modulescript/HBFix_data.xsql
---
(0050885)
hudsonbot   
2012-07-26 02:42   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/5edf203d5780 [^]

Maturity status: Test
(0050978)
migueldejuana   
2012-07-30 11:00   
Code reviewed: b6862b1e8f54.