Skip to content

Commit

Permalink
postgres provider fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 23, 2012
1 parent dbe6497 commit 13ef543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit 13ef543

Please sign in to comment.