Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0021125Openbravo ERPA. Platformpublic2012-07-17 16:362012-08-22 12:04
malsasua 
marvintm 
urgentmajoralways
closedfixed 
5
 
3.0MP153.0MP15 
AugustoMauch
Google Chrome
Core
No
0021125: a cursor is opened and not closed when a tab is related to an auxiliar input
In ORACLE.
When a tab has got an auxiliar input, when you open in form mode the tab, the cursor is opened and never is closed
. run the query:
select sum(num) from (
  SELECT SID, sql_text, COUNT(*) as num
  FROM v$open_cursor
    where upper(sql_text) like 'SELECT (CASE COUNT(*) WHEN 0 THEN 0 ELSE 1 END) AS TOTAL%');

. go to window "Sales order", to tab "line" and open in form mode

. run the query again
the result is upper than previous execution.

This tab is related to auxiliar input:
HASSECONDUOM
with SQL:
@SQL=SELECT (CASE COUNT(*) WHEN 0 THEN 0 ELSE 1 END) AS TOTAL FROM M_PRODUCT_UOM WHERE M_PRODUCT_ID=@M_Product_ID@
No tags attached.
blocks defect 0021805 closed caristu In alert management, cursors are opened and never is closed [ORACLE] 
Issue History
2012-07-17 16:36malsasuaNew Issue
2012-07-17 16:36malsasuaAssigned To => alostale
2012-07-17 16:36malsasuaWeb browser => Google Chrome
2012-07-17 16:36malsasuaModules => Core
2012-07-17 16:41malsasuaWeb browserGoogle Chrome => Google Chrome
2012-07-17 16:41malsasuaDescription Updatedbug_revision_view_page.php?rev_id=3642#r3642
2012-08-10 11:08jonalegriaesarteWeb browserGoogle Chrome => Google Chrome
2012-08-10 11:08jonalegriaesarteTarget Version => 3.0MP15
2012-08-22 11:10AugustoMauchAssigned Toalostale => marvintm
2012-08-22 11:35hgbotCheckin
2012-08-22 11:35hgbotNote Added: 0051458
2012-08-22 11:35hgbotStatusnew => resolved
2012-08-22 11:35hgbotResolutionopen => fixed
2012-08-22 11:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4cf8d54ecd9bde26433776b40ed0f5579fdd1a6e [^]
2012-08-22 12:04AugustoMauchClosed by => AugustoMauch
2012-08-22 12:04AugustoMauchNote Added: 0051463
2012-08-22 12:04AugustoMauchStatusresolved => closed
2012-08-22 12:04AugustoMauchFixed in Version => 3.0MP15
2012-10-01 10:58malsasuaRelationship addedblocks 0021805

Notes
(0051458)
hgbot   
2012-08-22 11:35   
Repository: erp/devel/pi
Changeset: 4cf8d54ecd9bde26433776b40ed0f5579fdd1a6e
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Aug 22 11:26:21 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4cf8d54ecd9bde26433776b40ed0f5579fdd1a6e [^]

Fixed issue 21125. PreparedStatement wasn't being closed.

---
M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
(0051463)
AugustoMauch   
2012-08-22 12:04   
Code reviewed and verified in pi@8a09d93b4149