Skip to content

Commit

Permalink
oracle provider: skip updating of key attributes of added features fo…
Browse files Browse the repository at this point in the history
…r versioned tables
  • Loading branch information
jef-n committed Jul 19, 2017
1 parent efff4f0 commit e7700db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/providers/oracle/qgsoracleprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,6 +1186,16 @@ bool QgsOracleProvider::addFeatures( QgsFeatureList &flist, QgsFeatureSink::Flag

bool returnvalue = true;

if ( !( flags & QgsFeatureSink::FastInsert ) && !getWorkspace().isEmpty() && getWorkspace().toUpper() != "LIVE" )
{
static bool warn = true;
if ( warn )
{
QgsMessageLog::logMessage( tr( "Retrieval of updated primary keys from versioned tables not supported" ), tr( "Oracle" ) );
warn = false;
}
flags |= QgsFeatureSink::FastInsert;
}

QSqlDatabase db( *mConnection );

Expand Down

0 comments on commit e7700db

Please sign in to comment.