summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-03-10 06:56:21 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-03-12 12:36:55 +0100
commitcdbfaf1b65538a1cdaf4cf0def2ac7728f11c945 (patch)
treee65e4c5b92b73748acc753d4ded7432baf8e3198 /src/plugins/sqldrivers
parent3cb5408e9e2a05f9bd0f230d9bcc31076cb8ec81 (diff)
SQL/OCI: Compile with QT_NO_CAST_FROM_ASCII
Don't know why this even went through the ci. Pick-to: 6.5 Change-Id: I9f0d1cee0c600c98f5b71bdd10f8f0260e43afcf Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/plugins/sqldrivers')
-rw-r--r--src/plugins/sqldrivers/oci/qsql_oci.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/oci/qsql_oci.cpp b/src/plugins/sqldrivers/oci/qsql_oci.cpp
index 3dfb4f38d8..ffad5e88cd 100644
--- a/src/plugins/sqldrivers/oci/qsql_oci.cpp
+++ b/src/plugins/sqldrivers/oci/qsql_oci.cpp
@@ -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,