Skip to content

Commit

Permalink
[spatialite] Fix LongLong type for SpatiaLite 4
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 20, 2013
1 parent 6734ab4 commit a3c30cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
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

0 comments on commit a3c30cb

Please sign in to comment.