Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0003698
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 01. General setupminoralways2008-05-06 01:582008-06-12 09:44
ReportercromeroView Statuspublic 
Assigned Tocromero 
PrioritynormalResolutionfixedFixed in Version2.35MP4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned To
OBNetwork customerNo
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0003698: Oracle specific code fails on Postgresql

DescriptionRelated 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 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0002941 closedcromero Oracle specific code fails on Postgresql 

-  Notes
(0004147)
cromero (viewer)
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
(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 [^]

- Issue History
Date Modified Username Field Change


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker