Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test for PostGIS version with geography
  • Loading branch information
tomtor committed Nov 16, 2020
1 parent e0574c9 commit 4d22f46
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -489,7 +489,9 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
gtableName = QStringLiteral( "geometry_columns" );
}
// Geography since postgis 1.5
else if ( i == SctGeography && mPostgisVersionMajor >= 1 && mPostgisVersionMinor >= 5 )
else if ( i == SctGeography
&& ( mPostgisVersionMajor >= 2
|| ( mPostgisVersionMajor == 1 && mPostgisVersionMinor >= 5 ) ) )
{
tableName = QStringLiteral( "l.f_table_name" );
schemaName = QStringLiteral( "l.f_table_schema" );
Expand Down

0 comments on commit 4d22f46

Please sign in to comment.