Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0003698Openbravo ERP01. General setuppublic2008-05-06 01:582008-06-12 09:44
cromero 
cromero 
normalminoralways
closedfixed 
5
 
2.35MP4 
No
Core
No
0003698: Oracle specific code fails on Postgresql
Related to bug:
0002941

Hi,

browse this file:
openbravo/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java

inside you'll see several refernces to
" strError = strError.substring( strError.lastIndexOf("@ORA-")
,strError.length());
"

But "@ORA-" is specific Oracle code that'll lead to errors such as out of
range exception (-1 passed to lastIndexOf ) if used with Postgresql under
certain circumstances. We got the error while importing the Frechn chart of
account on postgresql, we add to comment out those lines to make it pass.

Anyway, I don't really know what the current code breaks wand what would be
the best fix, but what I know is that this code is currently unsafe for
Postgresql.

Best regards,

Raphaël Valyi
http://www.smile.fr [^]
No tags attached.
blocks defect 0002941 closed cromero Oracle specific code fails on Postgresql 
Issue History

Notes
(0007287)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:44)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1958360 [^]
(0004147)
cromero   
2008-05-06 18:18   
(edited on: 2008-06-12 09:27)
Logged In: YES
user_id=1500614
Originator: YES

Fixed in the 2.3x branch in revision 3989