Skip to content

Commit 13ef543

Browse files
committed
postgres provider fix
1 parent dbe6497 commit 13ef543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ void QgsPostgresProvider::select( QgsAttributeList fetchAttributes, QgsRectangle
559559
}
560560
}
561561

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

0 commit comments

Comments
 (0)