Merge branch 'main' into lang_de

This commit is contained in:
2022-04-22 13:06:41 +02:00
17 changed files with 613 additions and 145 deletions

View File

@@ -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);
}
}