Skip to content

Commit

Permalink
[postgres] Compile make_date, make_datetime, make_time functions
Browse files Browse the repository at this point in the history
Allows (most) vector temporal filters to be performed server-side,
utilising indexes on the temporal fields. Ultimately makes it possible
to animate huge postgres tables using the new temporal framework.
  • Loading branch information
nyalldawson committed May 15, 2020
1 parent c13b677 commit 9f09406
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/postgres/qgspostgresexpressioncompiler.cpp
Expand Up @@ -104,6 +104,9 @@ static const QMap<QString, QString> FUNCTION_NAMES_SQL_FUNCTIONS_MAP
{ "lower", "lower" },
{ "trim", "trim" },
{ "upper", "upper" },
{ "make_date", "make_date" },
{ "make_time", "make_time" },
{ "make_datetime", "make_timestamp" },
};

QString QgsPostgresExpressionCompiler::sqlFunctionFromFunctionName( const QString &fnName ) const
Expand Down

0 comments on commit 9f09406

Please sign in to comment.