Skip to content

Commit

Permalink
oracle provider: accept number(0) as key
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 12, 2013
1 parent 0e036ee commit a9e1d07
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 a9e1d07

Please sign in to comment.