Call QSqlQuery::finish() on all SELECT queries when done

Authored by dvratil on Dec 1 2018, 4:54 PM.

Description

Call QSqlQuery::finish() on all SELECT queries when done

It's what documentation says should be done, and once Qt is fixed it
will also cause the QSqlQuery to free the underlying DBMS' results,
so that keeping the query around in the caches won't cause them to
use insane amount of memory, if the last query happened to return a
lot of results.

(cherry picked from commit 089ee6959fcdbe7d94ce0227c3348f1ecc70053d)

Details

Committed
knaussAug 28 2019, 4:50 PM
Parents
R165:46d5d3fe22f8: ItemSync: skip handling remote items if local changes failed
Branches
Unknown
Tags
Unknown