Skip to content
Permalink
Browse files

Fix incorrect char/enum comparison

  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent d000d00 commit 4da1c3694f355f4ef88854d544da3686e0c2ae33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/raster/qgspostgresrasterprovider.cpp
@@ -1061,7 +1061,7 @@ bool QgsPostgresRasterProvider::init()
for ( const QString &t : std::as_const( pxTypes ) )
{
Qgis::DataType type { pixelTypeFromString( t ) };
if ( t == Qgis::DataType::UnknownDataType )
if ( type == Qgis::DataType::UnknownDataType )
{
throw QgsPostgresRasterProviderException( tr( "Unsupported data type: '%1'" ).arg( t ) );
}

0 comments on commit 4da1c36

Please sign in to comment.