Skip to content

Commit a3c30cb

Browse files
committed
[spatialite] Fix LongLong type for SpatiaLite 4
1 parent 6734ab4 commit a3c30cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/spatialite/qgsspatialiteprovider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void QgsSpatiaLiteProvider::loadFieldsAbstractInterface( gaiaVectorLayerPtr lyr
618618
if ( fld->IntegerValuesCount != 0 && fld->DoubleValuesCount == 0 &&
619619
fld->TextValuesCount == 0 && fld->BlobValuesCount == 0 )
620620
{
621-
fieldType = QVariant::Int;
621+
fieldType = QVariant::LongLong;
622622
type = "INTEGER";
623623
}
624624
if ( fld->DoubleValuesCount != 0 && fld->TextValuesCount == 0 &&
@@ -825,7 +825,7 @@ void QgsSpatiaLiteProvider::loadFields()
825825
strcasecmp( type, "tinyint" ) == 0 ||
826826
strcasecmp( type, "boolean" ) == 0 )
827827
{
828-
fieldType = QVariant::Int;
828+
fieldType = QVariant::LongLong;
829829
}
830830
else if ( strcasecmp( type, "real" ) == 0 ||
831831
strcasecmp( type, "double" ) == 0 ||

0 commit comments

Comments
 (0)