Skip to content
Permalink
Browse files

PG: fix "name" field length (63 instead of 64)

  • Loading branch information
elpaso committed Jun 22, 2020
1 parent e4718d7 commit 13a1033593028004c336ff3e184b7099d58cdd32
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -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
{

0 comments on commit 13a1033

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