Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0
-
None
-
-
f03941e4113e2c8c0a594592be44efc92614ec9d (qt/qtbase/wip/qt6)
Description
New qt version forces you to create new connection to database for every thread.
I was using
QSqlDatabase | cloneDatabase(const QSqlDatabase &other, const QString &connectionName) |
to create new connections from other trheads, and now i can't. This function should be thread safe and allow access to database object because it just copies all the connection parameters. Otherwise this function has no purpose...
Attachments
For Gerrit Dashboard: QTBUG-72545 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
248806,3 | Add overload of QSqlDatabase::cloneDatabase to allow cloning cross threads | dev | qt/qtbase | Status: MERGED | +2 | 0 |