From 5d5403c0006ecd446c55ab3aadd3bf909e99e5d7 Mon Sep 17 00:00:00 2001 From: rldhont Date: Sun, 30 Jun 2019 19:15:53 +0200 Subject: [PATCH] Add ORA-03114 support --- src/providers/oracle/qgsoraclefeatureiterator.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/providers/oracle/qgsoraclefeatureiterator.cpp b/src/providers/oracle/qgsoraclefeatureiterator.cpp index 180a643571a..f212515df01 100644 --- a/src/providers/oracle/qgsoraclefeatureiterator.cpp +++ b/src/providers/oracle/qgsoraclefeatureiterator.cpp @@ -534,10 +534,12 @@ bool QgsOracleFeatureIterator::execQuery( const QString &query, const QVariantLi { if ( retryCount != 0 ) { - // If the connection has been closed - // Try again N times in case of timeout + // If the connection has been closed try again N times in case of timeout // ORA-12170: TNS:Connect timeout occurred - if ( mQry.lastError().number() == 12170 ) + // Or if there is a problem with the network connectivity try again N times + // ORA-03114: Not Connected to Oracle + if ( mQry.lastError().number() == 12170 || + mQry.lastError().number() == 3114 ) { // restart connection mConnection->reconnect();