Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oracle provider: log when ROWID is used for a missing primary key (cl…
…oses #32648)

(cherry picked from commit 3cf7058)
  • Loading branch information
jef-n committed Nov 18, 2019
1 parent 54a2e79 commit a48f4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -883,7 +883,6 @@ bool QgsOracleProvider::determinePrimaryKey()
QSqlQuery qry( *conn );
if ( !mIsQuery )
{

if ( !exec( qry, QString( "SELECT column_name"
" FROM all_ind_columns a"
" JOIN all_constraints b ON a.index_name=constraint_name AND a.index_owner=b.owner"
Expand Down Expand Up @@ -933,6 +932,7 @@ bool QgsOracleProvider::determinePrimaryKey()
else if ( qry.next() )
{
// is table
QgsMessageLog::logMessage( tr( "No primary key found, using ROWID." ), tr( "Oracle" ) );
mPrimaryKeyType = PktRowId;
}
else
Expand Down

0 comments on commit a48f4c4

Please sign in to comment.