Skip to content
Permalink
Browse files
oracle provider: accept number(0) as key
  • Loading branch information
jef-n committed Jan 22, 2013
1 parent ab9862f commit c0d9275772ca80ea5c6d3a29f280d51cce47da76
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 c0d9275

Please sign in to comment.