Skip to content
Permalink
Browse files

Fix test for PostGIS version with geography

  • Loading branch information
github-actions authored and nyalldawson committed Nov 17, 2020
1 parent 3e476bb commit 01f7b22b25de51c40c0051a2929753de309bbf04
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/providers/postgres/qgspostgresconn.cpp
@@ -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" );

0 comments on commit 01f7b22

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