mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-07 00:05:28 -04:00
[ogr] Advertise boolean field support for GPKG layers
Likely other drivers also support this, so the list should be extended for these
This commit is contained in:
parent
af647340c2
commit
f64f41a392
@ -466,6 +466,14 @@ QgsOgrProvider::QgsOgrProvider( QString const &uri )
|
|||||||
<< QgsVectorDataProvider::NativeType( tr( "Date & Time" ), QStringLiteral( "datetime" ), QVariant::DateTime );
|
<< QgsVectorDataProvider::NativeType( tr( "Date & Time" ), QStringLiteral( "datetime" ), QVariant::DateTime );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( mGDALDriverName == QLatin1String( "GPKG" ) )
|
||||||
|
{
|
||||||
|
// boolean data type - likely other drivers also support this
|
||||||
|
nativeTypes
|
||||||
|
<< QgsVectorDataProvider::NativeType( tr( "Boolean" ), QStringLiteral( "bool" ), QVariant::Bool, -1, -1, -1, -1 );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
setNativeTypes( nativeTypes );
|
setNativeTypes( nativeTypes );
|
||||||
|
|
||||||
QgsOgrConnPool::instance()->ref( QgsOgrProviderUtils::connectionPoolId( dataSourceUri( true ) ) );
|
QgsOgrConnPool::instance()->ref( QgsOgrProviderUtils::connectionPoolId( dataSourceUri( true ) ) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user