Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oracle provider: accept number(0) as key
  • Loading branch information
jef-n committed Jan 22, 2013
1 parent ab9862f commit c0d9275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -1235,7 +1235,10 @@ bool QgsOracleProvider::determinePrimaryKey()

if ( idx >= 0 )
{
if ( mAttributeFields[idx].type() == QVariant::Int || mAttributeFields[idx].type() == QVariant::LongLong )
const QgsField &fld = mAttributeFields[idx];
if ( fld.type() == QVariant::Int ||
fld.type() == QVariant::LongLong ||
( fld.type() == QVariant::Double && fld.precision() == 0 ) )
{
if ( mUseEstimatedMetadata || uniqueData( mQuery, primaryKey ) )
{
Expand Down

0 comments on commit c0d9275

Please sign in to comment.