qt6-bb10/tests/auto
Giuseppe D'Angelo 14f9f00fdb QSqlQuery: make it a move only type
QSqlQuery is a broken value class. Copying one object would mean
copying database state (the result set, the cursor position, etc.)
which isn't generally available for all database drivers.
For that reason, the current implementation does not honor value
semantics -- modifying a QSqlQuery object has visible side effects
on its existing copies (!).

The correct solution is to accept that QSqlQuery is a move only
type, not a value type. Add move semantics to it, and deprecate
its copies.

(We can't just *remove* copies in Qt 6 due to SC/BC constraints).

[ChangeLog][QtSql][QSqlQuery] QSqlQuery copy operations have
been deprecated. QSqlQuery copy semantics cannot be implemented
correctly, as it's not generally possible to copy a result set
of a query when copying the corresponding QSqlQuery object. This
resulted in modifications on a QSqlQuery having visible (and
unintended) side effects on its copies. Instead, treat QSqlQuery
as a move-only type.

Fixes: QTBUG-91766
Change-Id: Iabd3aa605332a5c15c524303418bf17a21ed520b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-03-21 10:16:56 +01:00
..
cmake Rework the failure macros in the Qt CTest kit 2021-03-17 13:34:39 +01:00
concurrent Fix a few compiler warnings in tests 2021-02-02 12:06:05 +01:00
corelib QMetaObjectBuilder: remove unused serialization code 2021-03-20 10:24:27 +01:00
dbus dbus: Fix missing QVersionNumber include 2021-01-25 12:09:17 +01:00
gui rhi: Make it possible to clone a QRhiRenderPassDescriptor 2021-03-19 10:46:23 +00:00
guiapplauncher Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00
network QHostAddress: prepare moving NetworkLayerProtocol from QAbstractSocket 2021-03-18 19:54:01 -08:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other Tests: Clarify the course of actions when touching tst_toolsupport 2021-03-19 13:07:03 +01:00
printsupport Remove the qmake project files 2021-01-07 15:32:28 +01:00
shared Remove false Q_UNREACHABLE from shaping code 2021-02-03 09:44:44 +01:00
sql QSqlQuery: make it a move only type 2021-03-21 10:16:56 +01:00
testlib Fix testlib/tst_selftests::keyboard on Wayland 2021-03-09 07:42:50 +01:00
tools Move build tools to libexec instead of the bin dir 2021-02-23 17:02:30 +01:00
widgets QDial: use qRound to round 2021-03-18 22:34:13 +01:00
xml tst_qdom: clean-up the code enabled only before Qt 6 2021-01-15 15:22:08 +01:00
CMakeLists.txt CMake: Fix building with -DQT_FEATURE_gui=OFF 2020-09-15 20:05:32 +02:00
network-settings.h Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00