qt5base-lts/src
Edward Welbourne 064c3d35e6 Don't allocate an OCIDateTime object unless we're going to use it
The QOCIDateTime destructor carefully checks that dateTime is non-null
before tidying it away, but the constructor allocated it independently
of whether it was used, leaving it in a still-not-constructed state if
the date-time it was to represent was invalid.

Only allocate if the date-time is valid; and check against null when
an OCIDateTime is being converted back to QDateTime. Add warnings if
either allocation or construction fails. Incidentally use
static_cast<> instead of C-casting (and split a long line) in the
other place that allocates an OCIDateTime descriptor.

Pick-to: 6.2 5.15
Task-number: QTBUG-98471
Change-Id: Idd5531d9f7101878802cb9a3a016d3fd80903543
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-11-30 16:34:01 +01:00
..
3rdparty 3rdparty: Add touchpad gestures support to bundled xinput xcb module 2021-11-13 17:58:45 +03:00
android Docs: Move manifest and androiddeployqt docs to where code lives 2021-11-19 12:18:50 +00:00
concurrent Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
corelib Use config-specific suffix of android deployment settings for multi-config only 2021-11-30 16:32:10 +01:00
dbus Doc: Fix qdoc warnings 2021-11-11 11:34:49 +01:00
entrypoint QtBase: replace windows.h with qt_windows.h 2021-11-23 12:53:46 +08:00
gui Fix gaps between lines of selection 2021-11-29 16:25:38 +01:00
network QNAM: Disable h2c by default 2021-11-30 00:04:38 +01:00
opengl Teach QOpenGLTextureBlitter about GL_TEXTURE_RECTANGLE textures 2021-11-30 02:36:29 +01:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport evdevtouch: Fix loading screen name for output mapping 2021-10-12 12:52:01 +02:00
plugins Don't allocate an OCIDateTime object unless we're going to use it 2021-11-30 16:34:01 +01:00
printsupport Link printer plugins into user projects when using a static Qt 2021-11-19 18:48:07 +01:00
sql Doc: Enable qdoc warning count limit 2021-10-21 19:10:52 +02:00
testlib Verify returns from QXmlTestLogger's xmlQuote() and xmlCdata() 2021-11-30 12:26:08 +01:00
tools Long live Q_GADGET_EXPORT! 2021-11-27 01:25:10 +01:00
widgets Never handle scrollbars styled with box or border changes as transient 2021-11-29 16:02:28 +01:00
xml Remove leftovers for supporting SAX-based implenentation of QDomDocument 2021-11-26 22:42:40 +01:00
CMakeLists.txt