db: fixed wrong commands

This commit is contained in:
Oleg Agafonov 2024-08-05 00:03:58 +04:00
parent 8f7abe2dc5
commit c31763a2d8
4 changed files with 12 additions and 5 deletions

View file

@ -117,7 +117,7 @@ public class AuthorizedUserRepository {
try {
if (usersDao != null && usersDao.getConnectionSource() != null) {
DatabaseConnection conn = usersDao.getConnectionSource().getReadWriteConnection(usersDao.getTableName());
conn.executeStatement("SHUTDOWN IMMEDIATELY", 0);
conn.executeStatement("SHUTDOWN IMMEDIATELY", DatabaseConnection.DEFAULT_RESULT_FLAGS);
usersDao.getConnectionSource().releaseConnection(conn);
}
} catch (SQLException ex) {