Skip to content

Commit 97b8a72

Browse files
committed
Interpret 'decimal' fields as double in WFS provider.
Fixes #11864.
1 parent 17ed9d1 commit 97b8a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/wfs/qgswfsprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&
972972
else //todo: distinguish between numerical and non-numerical types
973973
{
974974
QVariant::Type attributeType = QVariant::String; //string is default type
975-
if ( type.contains( "double", Qt::CaseInsensitive ) || type.contains( "float", Qt::CaseInsensitive ) )
975+
if ( type.contains( "double", Qt::CaseInsensitive ) || type.contains( "float", Qt::CaseInsensitive ) || type.contains( "decimal", Qt::CaseInsensitive ) )
976976
{
977977
attributeType = QVariant::Double;
978978
}

0 commit comments

Comments
 (0)