mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[spatialite] Fix LongLong type for SpatiaLite 4
This commit is contained in:
parent
6734ab443a
commit
a3c30cb130
@ -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 ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user