Skip to content
Permalink
Browse files

oracle provider: don't acquire provider connection from pool

  • Loading branch information
jef-n committed Feb 15, 2016
1 parent 54b998f commit e7e8d58aa85836180f19a6b38d16b1eb536441a5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/oracle/qgsoracleprovider.cpp
@@ -70,7 +70,7 @@ QgsOracleProvider::QgsOracleProvider( QString const & uri )
mRequestedGeomType = mUri.wkbType();
mUseEstimatedMetadata = mUri.useEstimatedMetadata();

mConnection = QgsOracleConnPool::instance()->acquireConnection( mUri.connectionInfo() );
mConnection = QgsOracleConn::connectDb( mUri.connectionInfo() );
if ( !mConnection )
{
return;
@@ -211,7 +211,7 @@ QgsAbstractFeatureSource *QgsOracleProvider::featureSource() const
void QgsOracleProvider::disconnectDb()
{
if ( mConnection )
QgsOracleConnPool::instance()->releaseConnection( mConnection );
mConnection->disconnect();
mConnection = 0;
}

0 comments on commit e7e8d58

Please sign in to comment.
You can’t perform that action at this time.