Skip to content
Permalink
Browse files

postgres provider fix

  • Loading branch information
jef-n committed Jan 23, 2012
1 parent dbe6497 commit 13ef5432675f69086ff57885e7e535b992bcb716
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -559,7 +559,7 @@ void QgsPostgresProvider::select( QgsAttributeList fetchAttributes, QgsRectangle
}
}

if ( mRequestedSrid != mDetectedSrid )
if ( !mRequestedSrid.isEmpty() && mRequestedSrid != mDetectedSrid )
{
whereClause += QString( " AND %1(%2)=%3" )
.arg( mConnectionRO->majorVersion() < 2 ? "srid" : "st_srid" )

0 comments on commit 13ef543

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