Skip to content

Commit

Permalink
PG: fix "name" field length (63 instead of 64)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 22, 2020
1 parent e4718d7 commit 13a1033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1123,8 +1123,8 @@ bool QgsPostgresProvider::loadFields()
else if ( fieldTypeName == QLatin1String( "name" ) )
{
fieldSubType = QVariant::String;
// "name" type lenght is 64 according to: SELECT typlen FROM pg_type WHERE typname = 'name';
fieldSize = 64;
// "name" type lenght is 63
fieldSize = 63;
}
else
{
Expand Down

0 comments on commit 13a1033

Please sign in to comment.