Skip to content
Permalink
Browse files

Merge pull request #40098 from tomtor/FixGeographyTest

Fix test for PostGIS version with geography
  • Loading branch information
rouault committed Nov 16, 2020
2 parents b38f99c + 4d22f46 commit ef7e80d87602a1a03c9cd639bb7ee4347c26d5fe
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 ef7e80d

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