We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ab9862f commit c0d9275Copy full SHA for c0d9275
src/providers/oracle/qgsoracleprovider.cpp
@@ -1235,7 +1235,10 @@ bool QgsOracleProvider::determinePrimaryKey()
1235
1236
if ( idx >= 0 )
1237
{
1238
- if ( mAttributeFields[idx].type() == QVariant::Int || mAttributeFields[idx].type() == QVariant::LongLong )
+ const QgsField &fld = mAttributeFields[idx];
1239
+ if ( fld.type() == QVariant::Int ||
1240
+ fld.type() == QVariant::LongLong ||
1241
+ ( fld.type() == QVariant::Double && fld.precision() == 0 ) )
1242
1243
if ( mUseEstimatedMetadata || uniqueData( mQuery, primaryKey ) )
1244
0 commit comments