From fa5ba42381d467d4c9de2d867068afa4a00e959c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 29 Jul 2013 19:55:09 -0500 Subject: [PATCH] IDEMPIERE-1206 Drop obsolete QueryTimeout workaround for PostgreSQL JDBC Driver / minor cleanup of unused variable --- org.adempiere.base/src/org/compiere/model/MSequence.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MSequence.java b/org.adempiere.base/src/org/compiere/model/MSequence.java index af75e2864f..32c905d698 100644 --- a/org.adempiere.base/src/org/compiere/model/MSequence.java +++ b/org.adempiere.base/src/org/compiere/model/MSequence.java @@ -24,7 +24,6 @@ import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; -import java.sql.Statement; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.Arrays; @@ -127,7 +126,6 @@ public class MSequence extends X_AD_Sequence } Connection conn = null; - Statement timeoutStatement = null; PreparedStatement pstmt = null; ResultSet rs = null; for (int i = 0; i < 3; i++) @@ -261,8 +259,6 @@ public class MSequence extends X_AD_Sequence { DB.close(rs, pstmt); pstmt = null;rs = null; - DB.close(timeoutStatement); - timeoutStatement = null; if (conn != null) { @@ -378,7 +374,6 @@ public class MSequence extends X_AD_Sequence int docOrg_ID = 0; int next = -1; - Statement timeoutStatement = null; PreparedStatement pstmt = null; ResultSet rs = null; try @@ -505,8 +500,6 @@ public class MSequence extends X_AD_Sequence { DB.close(rs, pstmt); pstmt = null;rs = null; - DB.close(timeoutStatement); - timeoutStatement = null; // Finish try {