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:
parent
43031d98fc
commit
9260662cb1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user