Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022589Openbravo ERPA. Platformpublic2012-12-16 02:492013-03-05 18:15
pjuvara 
AugustoMauch 
normalmajoralways
closedduplicate 
5
3.0MP17 
 
Core
No
0022589: Cannot add SQL based computed column that includes a "less than" character
If you add to a table a SQL based computed column that contains the '<' or '>', any subsequent ant export.database command fails
I am trying to define a computed column that calculates the current depreciated value for an asset.
Following the instructions on http://wiki.openbravo.com/wiki/How_to_create_a_Computed_Column, [^] I added a column to the A_AMORTIZATIONLINE table with the following SQL

(SELECT -SUM(al.amortizationamt)
FROM A_AMORTIZATIONLINE AL, a_amortization a
WHERE al.a_amortization_id = a.a_amortization_id
AND a.acctdate <= NOW() AND al.a_asset_id = A_ASSET_ID)

after having created this column, I execute an ant export.database command and it fails as the '<' character is not allowed.
Any special character in the SQL command column should be escaped.
No tags attached.
duplicate of defect 0022062 closed shankarb '<' character in sqllogic for computed columns 
Issue History
2012-12-16 02:49pjuvaraNew Issue
2012-12-16 02:49pjuvaraAssigned To => AugustoMauch
2012-12-16 02:49pjuvaraModules => Core
2012-12-16 02:49pjuvaraTriggers an Emergency Pack => No
2013-03-05 18:15AugustoMauchRelationship addedduplicate of 0022062
2013-03-05 18:15AugustoMauchStatusnew => closed
2013-03-05 18:15AugustoMauchResolutionopen => duplicate

There are no notes attached to this issue.