Dieser Commit ist enthalten in:
Ursprung
2e528918bb
Commit
d3ebbafeda
@ -171,11 +171,14 @@ public class SQL {
|
|||||||
|
|
||||||
private synchronized <T> T prepare(SQLRunnable<T> runnable, Object... objects) {
|
private synchronized <T> T prepare(SQLRunnable<T> runnable, Object... objects) {
|
||||||
try {
|
try {
|
||||||
setObjects(objects);
|
try {
|
||||||
return runnable.run();
|
setObjects(objects);
|
||||||
} catch (CommunicationsException e) {
|
return runnable.run();
|
||||||
reset();
|
} catch (CommunicationsException e) {
|
||||||
return prepare(runnable, objects);
|
reset();
|
||||||
|
setObjects(objects);
|
||||||
|
return runnable.run();
|
||||||
|
}
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
throw new SecurityException("Could not execute SQL statement", e);
|
throw new SecurityException("Could not execute SQL statement", e);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren