Skip to content
Permalink
Browse files
Merge branch 'master' of github.com:qgis/QGIS
  • Loading branch information
pcav committed Feb 3, 2014
2 parents 97cd120 + da4c429 commit 9ddfdd8f778d382f77281adc1db2b95fd90b6983
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresconn.cpp
@@ -726,8 +726,8 @@ QString QgsPostgresConn::postgisVersion()
mTopologyAvailable = false;
if ( mPostgisVersionMajor > 1 )
{
QgsPostgresResult result = PQexec( "SELECT count(c.oid) FROM pg_class AS c JOIN pg_namespace AS n ON c.relnamespace=n.oid WHERE n.nspname='topology' AND c.relname='topology'" );
if ( result.PQntuples() >= 1 )
QgsPostgresResult result = PQexec( "SELECT EXISTS ( SELECT c.oid FROM pg_class AS c JOIN pg_namespace AS n ON c.relnamespace=n.oid WHERE n.nspname='topology' AND c.relname='topology' )" );
if ( result.PQntuples() >= 1 && result.PQgetvalue(0, 0) == "t" )
{
mTopologyAvailable = true;
}

0 comments on commit 9ddfdd8

Please sign in to comment.