Skip to content

Commit 4097ed5

Browse files
committed
Fixed issue with spatialite assigning incorrect field types when creating columns
1 parent b2baae2 commit 4097ed5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/providers/spatialite/qgsspatialiteprovider.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,10 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
483483
}
484484
//fill type names into sets
485485
mNativeTypes
486-
<< QgsVectorDataProvider::NativeType( tr( "Binary object (BLOB)" ), "SQLITE_BLOB", QVariant::ByteArray )
487-
<< QgsVectorDataProvider::NativeType( tr( "Text" ), "SQLITE_TEXT", QVariant::String )
488-
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "SQLITE_FLOAT", QVariant::Double, 0, 20, 0, 20 )
489-
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "SQLITE_INTEGER", QVariant::LongLong, 0, 20 )
486+
<< QgsVectorDataProvider::NativeType( tr( "Binary object (BLOB)" ), "BLOB", QVariant::ByteArray )
487+
<< QgsVectorDataProvider::NativeType( tr( "Text" ), "TEXT", QVariant::String )
488+
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "FLOAT", QVariant::Double, 0, 20, 0, 20 )
489+
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "INTEGER", QVariant::LongLong, 0, 20 )
490490
;
491491
}
492492

0 commit comments

Comments
 (0)