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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0028875
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformmajoralways2015-02-05 16:572024-05-28 10:46
ReportermalsasuaView Statuspublic 
Assigned ToTriage Platform Base 
PriorityhighResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_18
OS VersionCommunity ApplianceDatabase version8.3.9Ant version1.7.1
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0028875: Class "CallStoredProcedure" does not support parameters of type out

Descriptionwith the class "CallStoredProcedure" if the stored procedure have got parameters of type out, it is not possible to read them, they are not returned

Also, in oracle, it is not possible to call a database stored procedure when the procedure have got parameters of type "out". Error is returned
Steps To Reproduce. in oracle and Web POS
. in OrderLoader.java the called to M_GET_STOCK_PARAM procedure:
 error is returned:
  
Caused by: java.lang.IllegalStateException: java.sql.SQLSyntaxErrorException: ORA-00904: "M_GET_STOCK_PARAM": invalid identifier
    [junit]
    [junit] at org.openbravo.service.db.CallStoredProcedure.call(CallStoredProcedure.java:142)
    [junit] at org.openbravo.retail.posterminal.OrderLoader.callProcessGetStock(OrderLoader.java:1795)
    [junit] at org.openbravo.retail.posterminal.OrderLoader.createShipmentLines(OrderLoader.java:860)
    [junit] at org.openbravo.retail.posterminal.OrderLoader.saveRecord(OrderLoader.java:243)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00288343.0PR15Q2 closedumartirena Openbravo ERP M_Reservation_Post errors in oracle 
related to defect 0028909 closedmarvintm Retail Modules can't create orders in Oracle 
has duplicate defect 0017018 closedmarvintm Openbravo ERP DalStoredProcedureTest.testCallProcess fails only in Oracle 
has duplicate design defect 0036186 closedplatform Openbravo ERP MA_PRODUCTION_COST procedure can not be call from OB in oracle instance using CallStoredProcedure 
related to defect 0031121 closedvmromanos Openbravo ERP Copy Version process in Process Plan window is not working in Oracle 

-  Notes
(0074331)
alostale (manager)
2015-02-10 17:30

Moving to design defect.

Current implementation supports to invoke procedures for which does not expect any return object or function in which case it expects an object to be returned. In this case it is invoking a procedure as a function throwing an error. See 0028909 for more details.

What needs to be checked/refactored:
* There are different ways of invoking procedures/functions: unify them
* Proper support for output parameters being DB agnostic
(0075168)
hgbot (developer)
2015-03-04 18:23

Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: 24c46fe2335224c9ec749634d9223a9742da982a
Author: Eduardo Argal Guibert <eduardo.argal <at> openbravo.com>
Date: Wed Mar 04 18:21:18 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/24c46fe2335224c9ec749634d9223a9742da982a [^]

Related to issue 28875
Class "CallStoredProcedure" does not support parameters of type out in oracle

---
M src/org/openbravo/warehouse/pickinglist/Utilities.java
---

- Issue History
Date Modified Username Field Change
2015-02-05 16:57 malsasua New Issue
2015-02-05 16:57 malsasua Assigned To => AugustoMauch
2015-02-05 16:57 malsasua Modules => Core
2015-02-05 16:57 malsasua Regression level => Automated tests
2015-02-05 16:57 malsasua Triggers an Emergency Pack => No
2015-02-05 16:57 malsasua Description Updated View Revisions
2015-02-05 17:11 AugustoMauch Summary Class "CallSotredProcedure" does not support parameters of type out => Class "CallStoredProcedure" does not support parameters of type out
2015-02-10 11:04 alostale Status new => scheduled
2015-02-10 11:04 alostale fix_in_branch => pi
2015-02-10 11:04 alostale Assigned To AugustoMauch => alostale
2015-02-10 11:04 alostale Relationship added related to 0028834
2015-02-10 17:17 alostale Issue cloned 0028909
2015-02-10 17:19 alostale Relationship added related to 0028909
2015-02-10 17:30 alostale Note Added: 0074331
2015-02-10 17:30 alostale Status scheduled => acknowledged
2015-02-10 17:30 alostale Type defect => design defect
2015-02-10 17:30 alostale Target Version 3.0PR15Q2 =>
2015-02-10 17:30 alostale fix_in_branch pi =>
2015-02-24 11:12 alostale Relationship added related to 0017018
2015-02-24 11:12 alostale Relationship replaced duplicate of 0017018
2015-02-24 11:13 alostale Relationship replaced has duplicate 0017018
2015-03-04 18:23 hgbot Checkin
2015-03-04 18:23 hgbot Note Added: 0075168
2015-03-06 11:27 eduardo_Argal Assigned To alostale => marvintm
2015-03-06 11:27 eduardo_Argal Assigned To marvintm => alostale
2015-10-19 12:16 vmromanos Relationship added related to 0031121
2017-04-10 14:35 alostale Assigned To alostale => platform
2017-06-30 14:40 caristu Relationship added has duplicate 0036186
2022-02-01 08:08 alostale Assigned To platform => Triage Platform Base
2024-05-28 10:46 alostale Regression level Automated tests =>


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker