Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0002941 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2008-04-28 18:50 | 2008-06-19 19:33 | |||
Reporter | user71 | View Status | public | |||||
Assigned To | cromero | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 2.40alpha-r2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0002941: Oracle specific code fails on Postgresql | |||||||
Description | 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 [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0003642) cromero (viewer) 2008-05-06 01:59 edited on: 2008-06-12 09:26 |
Logged In: YES user_id=1500614 Originator: NO Fixed in the trunk in revision 3955 |
(0006530) user71 2005-06-01 00:00 edited on: 2008-06-12 09:43 |
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=1953524 [^] |
(0007886) psarobe (viewer) 2008-06-19 19:33 |
Change that code with this: strError = strError.substring( (strError.lastIndexOf("@ORA-")>0?strError.lastIndexOf("@ORA-"):0) ,strError.length()); |
![]() |
|||
Date Modified | Username | Field | Change |
2008-06-19 19:33 | psarobe | Status | resolved => closed |
2008-06-19 19:33 | psarobe | Note Added: 0007886 |
Copyright © 2000 - 2009 MantisBT Group |