Fix compilation of thee OCI driver

Amends change befd198c15

Change-Id: I11cc116d31fa1f71acd9579e60a6b265811def1e
Reviewed-by: Samuel Gaist <samuel.gaist@idiap.ch>
This commit is contained in:
Lars Knoll 2020-04-22 17:16:52 +02:00
parent 43031d98fc
commit 9260662cb1

View File

@ -2340,7 +2340,7 @@ bool QOCIDriver::open(const QString & db,
#if QT_CONFIG(regularexpression) #if QT_CONFIG(regularexpression)
auto match = QRegularExpression(QLatin1String("([0-9]+)\\.[0-9\\.]+[0-9]")).match(versionStr); auto match = QRegularExpression(QLatin1String("([0-9]+)\\.[0-9\\.]+[0-9]")).match(versionStr);
if (match.hasMatch()) if (match.hasMatch())
d->serverVersion = vers.captured(1).toInt(); d->serverVersion = match.captured(1).toInt();
#endif #endif
if (d->serverVersion == 0) if (d->serverVersion == 0)
d->serverVersion = -1; d->serverVersion = -1;