Push !
This commit is contained in:
parent
fba07fa7e5
commit
1a499150c8
@ -948,6 +948,7 @@ public class MySQLThread extends Thread implements DataSource {
|
|||||||
public void setUnlogged(String user) {
|
public void setUnlogged(String user) {
|
||||||
Connection con = null;
|
Connection con = null;
|
||||||
PreparedStatement pst = null;
|
PreparedStatement pst = null;
|
||||||
|
if (user != null)
|
||||||
try {
|
try {
|
||||||
con = makeSureConnectionIsReady();
|
con = makeSureConnectionIsReady();
|
||||||
pst = con.prepareStatement("UPDATE " + tableName + " SET " + columnLogged + "=? WHERE " + columnName + "=?;");
|
pst = con.prepareStatement("UPDATE " + tableName + " SET " + columnLogged + "=? WHERE " + columnName + "=?;");
|
||||||
@ -960,7 +961,8 @@ public class MySQLThread extends Thread implements DataSource {
|
|||||||
} catch (TimeoutException ex) {
|
} catch (TimeoutException ex) {
|
||||||
ConsoleLogger.showError(ex.getMessage());
|
ConsoleLogger.showError(ex.getMessage());
|
||||||
return;
|
return;
|
||||||
} finally {
|
}
|
||||||
|
finally {
|
||||||
close(pst);
|
close(pst);
|
||||||
close(con);
|
close(con);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user