Skip to content
Permalink
Browse files

oracle provider: skip updating of key attributes of added features fo…

…r versioned tables
  • Loading branch information
jef-n committed Jul 17, 2017
1 parent efff4f0 commit e7700db46ad6bc717a4826157074fb8a5aee5edb
Showing with 10 additions and 0 deletions.
  1. +10 −0 src/providers/oracle/qgsoracleprovider.cpp
@@ -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 );

0 comments on commit e7700db

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