Showing with 4 additions and 4 deletions.
  1. +4 −4 src/providers/spatialite/qgsspatialiteprovider.cpp
8 changes: 4 additions & 4 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
mNativeTypes
<< QgsVectorDataProvider::NativeType( tr( "Binary object (BLOB)" ), "BLOB", QVariant::ByteArray )
<< QgsVectorDataProvider::NativeType( tr( "Text" ), "TEXT", QVariant::String )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "FLOAT", QVariant::Double, 0, 20, 0, 20 )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "INTEGER", QVariant::LongLong, 0, 20 )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "FLOAT", QVariant::Double )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "INTEGER", QVariant::LongLong )
;
}

Expand Down Expand Up @@ -618,7 +618,7 @@ void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr
if ( fld->IntegerValuesCount != 0 && fld->DoubleValuesCount == 0 &&
fld->TextValuesCount == 0 && fld->BlobValuesCount == 0 )
{
fieldType = QVariant::Int;
fieldType = QVariant::LongLong;
type = "INTEGER";
}
if ( fld->DoubleValuesCount != 0 && fld->TextValuesCount == 0 &&
Expand Down Expand Up @@ -825,7 +825,7 @@ void QgsSpatiaLiteProvider::loadFields()
strcasecmp( type, "tinyint" ) == 0 ||
strcasecmp( type, "boolean" ) == 0 )
{
fieldType = QVariant::Int;
fieldType = QVariant::LongLong;
}
else if ( strcasecmp( type, "real" ) == 0 ||
strcasecmp( type, "double" ) == 0 ||
Expand Down