details:   /erp/devel/pi/rev/b808332ac975
changeset: 10752:b808332ac975
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Thu Feb 17 19:45:07 2011 +0100
summary:   Do not flush the connection every time an auxiliary input is computed

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 76bbf63eaaa3 -r b808332ac975 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Thu Feb 17 18:54:25 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
     Thu Feb 17 19:45:07 2011 +0100
@@ -1036,7 +1036,7 @@
         // }
         log.debug("Transformed SQL code: " + sql);
         int indP = 1;
-        PreparedStatement ps = 
OBDal.getInstance().getConnection().prepareStatement(sql);
+        PreparedStatement ps = 
OBDal.getInstance().getConnection(false).prepareStatement(sql);
         for (String parameter : params) {
           String value = "";
           if (parameter.substring(0, 1).equals("#")) {

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to