Skip to content
Permalink
Browse files

Do not query geography_columns on postgis < 1.5

Fixes #38580
  • Loading branch information
elpaso committed Sep 3, 2020
1 parent 4b8797d commit 0fe7a6231bfbc6edd47db3afa72ab8a94cb17522
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -488,7 +488,8 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
dimName = QStringLiteral( "l.coord_dimension" );
gtableName = QStringLiteral( "geometry_columns" );
}
else if ( i == SctGeography )
// Geography since postgis 1.5
else if ( i == SctGeography && mPostgisVersionMajor >= 1 && mPostgisVersionMinor >= 5 )
{
tableName = QStringLiteral( "l.f_table_name" );
schemaName = QStringLiteral( "l.f_table_schema" );

0 comments on commit 0fe7a62

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