Skip to content
Permalink
Browse files

PGSQL: making timestamptz a recognized date/time type.

  • Loading branch information
espinafre authored and nyalldawson committed Sep 22, 2020
1 parent daf78c6 commit 9ca2d3beeaccdb6ff6ddfd1386053a7b06cc9fbf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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;

0 comments on commit 9ca2d3b

Please sign in to comment.
You can’t perform that action at this time.