PGSQL: making timestamptz a recognized date/time type.

This commit is contained in:
José de Paula Rodrigues 2020-09-22 17:15:21 -03:00 committed by Nyall Dawson
parent daf78c64e9
commit 9ca2d3beea

View File

@ -1054,7 +1054,7 @@ bool QgsPostgresProvider::loadFields()
fieldType = QVariant::Time; fieldType = QVariant::Time;
fieldSize = -1; fieldSize = -1;
} }
else if ( fieldTypeName == QLatin1String( "timestamp" ) ) else if ( fieldTypeName == QLatin1String( "timestamp" ) || fieldTypeName == QLatin1String( "timestamptz" ) )
{ {
fieldType = QVariant::DateTime; fieldType = QVariant::DateTime;
fieldSize = -1; fieldSize = -1;