Skip to content
Permalink
Browse files

[spatialite] Fix LongLong type for SpatiaLite 4

  • Loading branch information
m-kuhn committed Oct 20, 2013
1 parent 41a8e73 commit f44fe9ee1309040b7b314a82e0a507a1096d9c87
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/spatialite/qgsspatialiteprovider.cpp
@@ -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 &&
@@ -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 ||

0 comments on commit f44fe9e

Please sign in to comment.
You can’t perform that action at this time.