Skip to content
Permalink
Browse files
oracle provider: accept number(0) as key
  • Loading branch information
jef-n committed Jan 12, 2013
1 parent 0e036ee commit a9e1d07c32144e1f416fb0b5c82e2317b72c83b1
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/oracle/qgsoracleprovider.cpp
@@ -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 ) )
{

0 comments on commit a9e1d07

Please sign in to comment.