Merge branch 'main' into lang_de
This commit is contained in:
@@ -45,13 +45,13 @@ public class Database {
|
||||
* @throws SQLException
|
||||
*/
|
||||
public ResultSet exec() throws SQLException {
|
||||
LOG.debug("Executing {}",this);
|
||||
LOG.debug("Führe {} aus",this);
|
||||
try {
|
||||
var stmt = conn.prepareStatement(sql);
|
||||
for (int i = 0; i < args.size(); i++) stmt.setObject(i+1, args.get(i));
|
||||
return stmt.executeQuery();
|
||||
} catch (SQLException sqle) { // add sql to the exception
|
||||
throw new SQLException(t("Query '{}' failed:",this),sqle);
|
||||
throw new SQLException(t("Query '{}' fehlgeschlagen:",this),sqle);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user