SQL/OCI: Compile with QT_NO_CAST_FROM_ASCII

Don't know why this even went through the ci.

Change-Id: I9f0d1cee0c600c98f5b71bdd10f8f0260e43afcf
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit cdbfaf1b65538a1cdaf4cf0def2ac7728f11c945)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Christian Ehrlicher 2023-03-10 06:56:21 +01:00 committed by Qt Cherry-pick Bot
parent 789f3b7820
commit 431a028c18

View File

@ -141,7 +141,7 @@ QOCIDateTime::QOCIDateTime(OCIEnv *env, OCIError *err, const QDateTime &dt)
const QDate date = dt.date();
const QTime time = dt.time();
// Zone in +hh:mm format
const QString timeZone = dt.toString("ttt");
const QString timeZone = dt.toString("ttt"_L1);
const OraText *tz = reinterpret_cast<const OraText *>(timeZone.utf16());
OCIDateTimeConstruct(env, err, dateTime, date.year(), date.month(), date.day(), time.hour(),
time.minute(), time.second(), time.msec() * 1000000,