Skip to content
Permalink
Browse files

Fix test for PostGIS version with geography

  • Loading branch information
tomtor committed Nov 16, 2020
1 parent e0574c9 commit 4d22f4685fee30834cbdeaa5d07b3790174e6bc7
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 4d22f46

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