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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007411
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] Z. Othersmajorhave not tried2009-02-02 14:272009-03-04 16:38
ReportershuehnerView Statuspublic 
Assigned Todalsasua 
PrioritynormalResolutionfixedFixed in Version2.40MP3
StatusclosedFix in branch2.40Fixed in SCM revision12881
ProjectionnoneETAnoneTarget Version
OSAnyDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product Version2.40MP1SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007411: Invalid substr index (=0) in SQL query.

DescriptionWe have several occurences of substr(<some string>,0,<length>) in the codebase. The first parameter is 1-based per SQL spec and a value of 0 does not work as expected on postgres.

List of affected files on both 2.40 and trunk:

- src-db/database/model/functions/C_COMMISSION_PROCESS.xml (2 times)
- src/org/openbravo/erpCommon/ad_actionButton/CreateFile_data.xsql
- src/org/openbravo/erpCommon/ad_forms/InitialOrgSetup_data.xsql (trunk only)

More Files covered by different issues:

- src/org/openbravo/erpCommon/ad_forms/FileImport_data.xsql (7130, function is unused)
- src/org/openbravo/erpCommon/ad_forms/InitialClientSetup_data.xsql (7129, already resolved)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0007315 closeddalsasua Invalid substr index (=0) in SQL query. 

-  Notes
(0013213)
svnbot (reporter)
2009-02-06 11:41

Repository: openbravo
Revision: 12881
Author: davidalsasua
Date: 2009-02-06 11:41:12 +0100 (Fri, 06 Feb 2009)

Fixes Bug 0007411: Invalid substr index (=0) in SQL query.

---
U branches/r2.40/src/org/openbravo/erpCommon/ad_actionButton/CreateFile_data.xsql
U branches/r2.40/src-db/database/model/functions/C_COMMISSION_PROCESS.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12881&sc=1 [^]

- Issue History
Date Modified Username Field Change
2009-02-06 11:36 dalsasua Type defect => backport
2009-02-06 11:36 dalsasua fix_in_branch => 2.40
2009-02-06 11:41 svnbot Checkin
2009-02-06 11:41 svnbot Note Added: 0013213
2009-02-06 11:41 svnbot Status scheduled => resolved
2009-02-06 11:41 svnbot Resolution open => fixed
2009-02-06 11:41 svnbot svn_revision 12880 => 12881
2009-03-03 17:32 psarobe Fixed in Version => 2.40MP3
2009-03-04 16:38 psarobe Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker