Skip to content

Commit

Permalink
Add cast (I think forgotten earlier)
Browse files Browse the repository at this point in the history
  • Loading branch information
rduivenvoorde authored and github-actions[bot] committed Sep 4, 2022
1 parent d7cddc9 commit 7562cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vector/qgsvectorlayertemporalproperties.cpp
Expand Up @@ -540,7 +540,7 @@ QString QgsVectorLayerTemporalProperties::createFilterString( const QgsVectorLay
case QgsUnitTypes::TemporalIrregularStep:
return QString();
}
return QStringLiteral( "(%1 %2 %3 OR %1 IS NULL) AND ((%1 + %4 %5 %6) OR %7 IS NULL)" ).arg( QgsExpression::quotedColumnRef( mStartFieldName ),
return QStringLiteral( "(%1 %2 %3 OR %1 IS NULL) AND ((%1 + %4 %5 %6) OR %7 IS NULL)" ).arg( dateTimefieldCast( mStartFieldName ),
filterRange.includeEnd() ? QStringLiteral( "<=" ) : QStringLiteral( "<" ),
dateTimeExpressionLiteral( filterRange.end() ),
intervalExpression,
Expand Down

0 comments on commit 7562cbc

Please sign in to comment.