We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 546c2de commit 5bdb795Copy full SHA for 5bdb795
src/providers/postgres/qgspostgresfeatureiterator.cpp
@@ -272,11 +272,8 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
272
273
if ( fetchGeometry )
274
{
275
- query += QString( "%1(%2(%3%4),'%5')" )
+ query += QString( "%1(%2%3,'%4')" )
276
.arg( P->mConnectionRO->majorVersion() < 2 ? "asbinary" : "st_asbinary" )
277
- .arg( P->mConnectionRO->majorVersion() < 2 ? "force_2d"
278
- : P->mConnectionRO->majorVersion() > 2 || P->mConnectionRO->minorVersion() > 0 ? "st_force2d"
279
- : "st_force_2d" )
280
.arg( P->quotedIdentifier( P->mGeometryColumn ) )
281
.arg( P->mSpatialColType == sctGeography ? "::geometry" : "" )
282
.arg( P->endianString() );
0 commit comments