diff --git a/src/orm/concerns/detectslostconnections.cpp b/src/orm/concerns/detectslostconnections.cpp index d93577b54..035475317 100644 --- a/src/orm/concerns/detectslostconnections.cpp +++ b/src/orm/concerns/detectslostconnections.cpp @@ -11,34 +11,34 @@ bool DetectsLostConnections::causedByLostConnection(const QString &errorMessage) { // TODO verify this will be pain in the ass 😕, but but it looks like few of them for mysql and postgres are completly valid silverqx static const QList lostMessagesCache { - QLatin1String("server has gone away"), - QLatin1String("no connection to the server"), - QLatin1String("Lost connection"), - QLatin1String("is dead or not enabled"), - QLatin1String("Error while sending"), - QLatin1String("decryption failed or bad record mac"), - QLatin1String("server closed the connection unexpectedly"), - QLatin1String("SSL connection has been closed unexpectedly"), - QLatin1String("Error writing data to the connection"), - QLatin1String("Resource deadlock avoided"), - QLatin1String("Transaction() on null"), - QLatin1String("child connection forced to terminate due to client_idle_limit"), - QLatin1String("query_wait_timeout"), - QLatin1String("reset by peer"), - QLatin1String("Physical connection is not usable"), - QLatin1String("Packets out of order. Expected"), - QLatin1String("Adaptive Server connection failed"), - QLatin1String("Communication link failure"), - QLatin1String("connection is no longer usable"), - QLatin1String("Login timeout expired"), - QLatin1String("running with the --read-only option so it cannot execute this statement"), - QLatin1String("The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection."), - QLatin1String("SSL: Connection timed out"), - QLatin1String("Temporary failure in name resolution"), - QLatin1String("SSL: Broken pipe"), - QLatin1String("The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior."), - QLatin1String("SSL: Operation timed out"), - QLatin1String("SSL: Handshake timed out"), + QStringLiteral("server has gone away"), + QStringLiteral("no connection to the server"), + QStringLiteral("Lost connection"), + QStringLiteral("is dead or not enabled"), + QStringLiteral("Error while sending"), + QStringLiteral("decryption failed or bad record mac"), + QStringLiteral("server closed the connection unexpectedly"), + QStringLiteral("SSL connection has been closed unexpectedly"), + QStringLiteral("Error writing data to the connection"), + QStringLiteral("Resource deadlock avoided"), + QStringLiteral("Transaction() on null"), + QStringLiteral("child connection forced to terminate due to client_idle_limit"), + QStringLiteral("query_wait_timeout"), + QStringLiteral("reset by peer"), + QStringLiteral("Physical connection is not usable"), + QStringLiteral("Packets out of order. Expected"), + QStringLiteral("Adaptive Server connection failed"), + QStringLiteral("Communication link failure"), + QStringLiteral("connection is no longer usable"), + QStringLiteral("Login timeout expired"), + QStringLiteral("running with the --read-only option so it cannot execute this statement"), + QStringLiteral("The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection."), + QStringLiteral("SSL: Connection timed out"), + QStringLiteral("Temporary failure in name resolution"), + QStringLiteral("SSL: Broken pipe"), + QStringLiteral("The client was disconnected by the server because of inactivity. See wait_timeout and interactive_timeout for configuring this behavior."), + QStringLiteral("SSL: Operation timed out"), + QStringLiteral("SSL: Handshake timed out"), }; return std::ranges::any_of(lostMessagesCache,