Skip to content

Commit

Permalink
PGSQL: making timestamptz a recognized date/time type.
Browse files Browse the repository at this point in the history
  • Loading branch information
espinafre authored and nyalldawson committed Sep 22, 2020
1 parent daf78c6 commit 9ca2d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1054,7 +1054,7 @@ bool QgsPostgresProvider::loadFields()
fieldType = QVariant::Time;
fieldSize = -1;
}
else if ( fieldTypeName == QLatin1String( "timestamp" ) )
else if ( fieldTypeName == QLatin1String( "timestamp" ) || fieldTypeName == QLatin1String( "timestamptz" ) )
{
fieldType = QVariant::DateTime;
fieldSize = -1;
Expand Down

0 comments on commit 9ca2d3b

Please sign in to comment.