Skip to content

Commit

Permalink
Fix loading of PostgreSQL geometry-less views
Browse files Browse the repository at this point in the history
Closes #32523

Bug was introduced with commit bbdbca4

Thanks @elpaso for finding the root cause of it
  • Loading branch information
strk committed Nov 9, 2019
1 parent e94fcab commit 53b6282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -835,11 +835,11 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
QString table = result.PQgetvalue( i, 0 ); // relname
QString schema = result.PQgetvalue( i, 1 ); // nspname
QString relkind = result.PQgetvalue( i, 2 ); // relation kind
QString attributes = result.PQgetvalue( i, 3 ); // attributes array
QString comment = result.PQgetvalue( i, 3 ); // table comment
QString attributes = result.PQgetvalue( i, 4 ); // attributes array
bool isView = relkind == QLatin1String( "v" ) || relkind == QLatin1String( "m" );
bool isMaterializedView = relkind == QLatin1String( "m" );
bool isForeignTable = relkind == QLatin1String( "f" );
QString comment = result.PQgetvalue( i, 3 ); // table comment

//QgsDebugMsg( QStringLiteral( "%1.%2: %3" ).arg( schema ).arg( table ).arg( relkind ) );

Expand Down

0 comments on commit 53b6282

Please sign in to comment.