Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7562cbc

Browse files
rduivenvoordegithub-actions[bot]
authored andcommittedSep 4, 2022
Add cast (I think forgotten earlier)
1 parent d7cddc9 commit 7562cbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/vector/qgsvectorlayertemporalproperties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ QString QgsVectorLayerTemporalProperties::createFilterString( const QgsVectorLay
540540
case QgsUnitTypes::TemporalIrregularStep:
541541
return QString();
542542
}
543-
return QStringLiteral( "(%1 %2 %3 OR %1 IS NULL) AND ((%1 + %4 %5 %6) OR %7 IS NULL)" ).arg( QgsExpression::quotedColumnRef( mStartFieldName ),
543+
return QStringLiteral( "(%1 %2 %3 OR %1 IS NULL) AND ((%1 + %4 %5 %6) OR %7 IS NULL)" ).arg( dateTimefieldCast( mStartFieldName ),
544544
filterRange.includeEnd() ? QStringLiteral( "<=" ) : QStringLiteral( "<" ),
545545
dateTimeExpressionLiteral( filterRange.end() ),
546546
intervalExpression,

0 commit comments

Comments
 (0)
Please sign in to comment.