SQL/OCI: fix compilation

Fix compilation error introduced with
917b4d3802 and add a missing override

Pick-to: 6.4
Fixes: QTBUG-107544
Change-Id: I53571a0a113dc0f1e65f8773e66c02c1764739ee
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
This commit is contained in:
Christian Ehrlicher 2022-10-13 20:11:04 +02:00
parent c017ef8bda
commit c3dccfef22
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class QOCIDriverPlugin : public QSqlDriverPlugin
public:
QOCIDriverPlugin();
QSqlDriver* create(const QString &);
QSqlDriver* create(const QString &) override;
};
QOCIDriverPlugin::QOCIDriverPlugin()

View File

@ -426,6 +426,7 @@ int QOCIResultPrivate::bindValue(OCIStmt *sql, OCIBind **hbnd, OCIError *err, in
break;
}
} // fall through for OUT values
Q_FALLTHROUGH();
default: {
if (val.typeId() >= QMetaType::User) {
if (val.canConvert<QOCIRowIdPointer>() && !isOutValue(pos)) {
@ -2434,7 +2435,7 @@ static QString make_where_clause(const QString &user, Expression e)
"WMSYS",
};
static const char joinC[][4] = { "or" , "and" };
static constexpr QLatin1Char bang[] = { u' ', u'!' };
static constexpr char16_t bang[] = { u' ', u'!' };
const QLatin1StringView join(joinC[e]);