Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
ID | ||||||||||||
0022875 | ||||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
design defect | [Openbravo ERP] Y. DBSourceManager | major | have not tried | 2013-01-23 16:55 | 2013-01-23 23:35 | |||||||
Reporter | ioritzCia | View Status | public | |||||||||
Assigned To | marvintm | |||||||||||
Priority | normal | Resolution | open | Fixed in Version | ||||||||
Status | new | Fix in branch | Fixed in SCM revision | |||||||||
Projection | none | ETA | none | Target Version | ||||||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_22 | |||||||
OS Version | Ubuntu 10.04 | Database version | 8.4 | Ant version | 1.7.1 | |||||||
Product Version | SCM revision | |||||||||||
Review Assigned To | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0022875: Translations from Oracle to PostgreSQL is not supported for some cursor declarations. | |||||||||||
Description | Depending the way a cursor is declared in a database function/procedure, DBSourceManager does not handle the translation. The syntax not supported is the following one: Cur_Something RECORD; --> in Oracle DECLARE Cur_Something REFCURSOR; --> in PostgreSQL If the cursor is going to be opened with the following sentence in both languages: OPEN Cur_Something FOR SELECT whatever FROM wherever ...; This is related with issue 22086. There is a slow LOOP structure cursor there that can be improved using separate cursors with the previous structure. The proposed solution in that issue does not work because LOOP cursor types fail in PostgreSQL while opening them twice recursively giving an error that says that it is not possible to open an already opened cursor. For other cursor declarations <Cur_Something RECORD;> is the right way to do declare a cursor, but for the ones explained previously PostgreSQL requires <DECLARE Cur_Something REFCURSOR;> and Oracle <Cur_Something RECORD;> | |||||||||||
Steps To Reproduce | Follow the description. | |||||||||||
Tags | No tags attached. | |||||||||||
Attached Files | ||||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2013-01-23 16:55 | ioritzCia | New Issue | |
2013-01-23 16:55 | ioritzCia | Assigned To | => marvintm |
2013-01-23 16:55 | ioritzCia | Modules | => Core |
2013-01-23 16:55 | ioritzCia | Triggers an Emergency Pack | => No |
2013-01-23 16:55 | ioritzCia | Relationship added | blocks 0022086 |
2013-01-23 23:35 | shuehner | Issue Monitored: shuehner |
Copyright © 2000 - 2009 MantisBT Group |