Skip to content
Permalink
Browse files

[spatialite] Fix LongLong type for SpatiaLite 4

  • Loading branch information
m-kuhn committed Oct 20, 2013
1 parent 6734ab4 commit a3c30cb130696c21daca459963676ce752806c25
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 a3c30cb

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