Skip to content

Commit

Permalink
oracle provider: don't acquire provider connection from pool
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 15, 2016
1 parent 54b998f commit e7e8d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/oracle/qgsoracleprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -211,7 +211,7 @@ QgsAbstractFeatureSource *QgsOracleProvider::featureSource() const
void QgsOracleProvider::disconnectDb()
{
if ( mConnection )
QgsOracleConnPool::instance()->releaseConnection( mConnection );
mConnection->disconnect();
mConnection = 0;
}

Expand Down

0 comments on commit e7e8d58

Please sign in to comment.