diff --git a/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/ADLookup.java b/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/ADLookup.java index 51fc948f6f..5cd0ff6f61 100644 --- a/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/ADLookup.java +++ b/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/ADLookup.java @@ -91,7 +91,7 @@ private DataSet getResult( com._3e.ADInterface.ADInfo info, DataSet ds, int coun PreparedStatement pstmt = null; ResultSet rs = null; try { - pstmt = DB.prepareStatement( info.getSQL() ); + pstmt = DB.prepareStatement(info.getSQL(), null); info.setParameters( pstmt, false ); rs = pstmt.executeQuery(); while (rs.next()) @@ -323,7 +323,7 @@ else if (m_columnName.equals("SalesRep_ID")) ResultSet rs = null; try { - pstmt = DB.prepareStatement(query); + pstmt = DB.prepareStatement(query, null); pstmt.setInt(1, AD_Reference_ID); rs = pstmt.executeQuery(); if (rs.next()) @@ -386,7 +386,7 @@ else if (m_columnName.equals("SalesRep_ID")) ResultSet rs = null; try { - pstmt = DB.prepareStatement(query); + pstmt = DB.prepareStatement(query, null); pstmt.setString(1, m_keyColumnName); rs = pstmt.executeQuery(); while (rs.next()) diff --git a/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/Process.java b/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/Process.java index 98aa0a8852..e7b527c4b5 100644 --- a/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/Process.java +++ b/org.adempiere.webservice/WEB-INF/src/com/_3e/ADInterface/Process.java @@ -510,7 +510,7 @@ public static void renderDocActionOptions(LookupValues lvs, GridTab tab) + " AND l.AD_Reference_ID=135 ORDER BY t.Name"; try { - PreparedStatement pstmt = DB.prepareStatement(sql); + PreparedStatement pstmt = DB.prepareStatement(sql, null); ResultSet rs = pstmt.executeQuery(); while (rs.next()) { diff --git a/org.adempiere.webservice/WEB-INF/src/net/sf/compilo/report/ReportInfo.java b/org.adempiere.webservice/WEB-INF/src/net/sf/compilo/report/ReportInfo.java index ed478603c6..a461b8106a 100644 --- a/org.adempiere.webservice/WEB-INF/src/net/sf/compilo/report/ReportInfo.java +++ b/org.adempiere.webservice/WEB-INF/src/net/sf/compilo/report/ReportInfo.java @@ -179,7 +179,7 @@ private void getReportDefinition(int AD_Process_ID) ResultSet rs = null; try { - pstmt = DB.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); + pstmt = DB.prepareStatement(sql, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, null); pstmt.setInt(1, AD_Process_ID); rs = pstmt.executeQuery(); String path = null; diff --git a/org.compiere.mobile/WEB-INF/src/org/compiere/mobile/WWorkflow.java b/org.compiere.mobile/WEB-INF/src/org/compiere/mobile/WWorkflow.java index febea6e380..52f0a229d2 100644 --- a/org.compiere.mobile/WEB-INF/src/org/compiere/mobile/WWorkflow.java +++ b/org.compiere.mobile/WEB-INF/src/org/compiere/mobile/WWorkflow.java @@ -855,7 +855,7 @@ private int getAD_Workflow_ID(int AD_Menu_ID){ + "WHERE AD_Menu_ID=? AND Action='F'"; try { - PreparedStatement pstmt = DB.prepareStatement(sql); + PreparedStatement pstmt = DB.prepareStatement(sql, null); pstmt.setInt(1, AD_Menu_ID); ResultSet rs = pstmt.executeQuery(); while (rs.next()) diff --git a/serverApps/src/main/servlet/org/compiere/www/WWorkflow.java b/serverApps/src/main/servlet/org/compiere/www/WWorkflow.java index 94676fbe20..bca64fa8b3 100644 --- a/serverApps/src/main/servlet/org/compiere/www/WWorkflow.java +++ b/serverApps/src/main/servlet/org/compiere/www/WWorkflow.java @@ -859,7 +859,7 @@ private int getAD_Workflow_ID(int AD_Menu_ID){ + "WHERE AD_Menu_ID=? AND Action='F'"; try { - PreparedStatement pstmt = DB.prepareStatement(sql); + PreparedStatement pstmt = DB.prepareStatement(sql, null); pstmt.setInt(1, AD_Menu_ID); ResultSet rs = pstmt.executeQuery(); while (rs.next())