mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-06 11:24:39 +08:00
Revert "Prevent closing already closed statements"
This reverts commit b9fc6a0b2b
.
This commit is contained in:
parent
a8f6014a42
commit
33d37a2f96
@ -75,12 +75,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -119,12 +116,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -200,12 +194,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -249,12 +240,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -307,12 +295,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -370,12 +355,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
@ -415,12 +397,9 @@ public abstract class ProtectedBlockJDBC implements IProtectedBlock
|
||||
if (ps != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!ps.isClosed())
|
||||
{
|
||||
ps.close();
|
||||
}
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
LOGGER.log(Level.SEVERE, null, ex);
|
||||
|
Loading…
Reference in New Issue
Block a user