Skip to content

Commit

Permalink
Merge pull request #37339 from qgis/pg_name-field-length-63
Browse files Browse the repository at this point in the history
PG: fix "name" field length (63 instead of 64)
  • Loading branch information
elpaso committed Jun 24, 2020
2 parents b3e34c0 + e535f43 commit 0888856
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1123,8 +1123,7 @@ 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;
fieldSize = 63;
}
else
{
Expand Down

0 comments on commit 0888856

Please sign in to comment.