Skip to content

Commit 5bdb795

Browse files
Hugo Mercierjef-n
authored andcommitted
Remove st_force2d from postgres provider
1 parent 546c2de commit 5bdb795

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/providers/postgres/qgspostgresfeatureiterator.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,8 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause )
272272

273273
if ( fetchGeometry )
274274
{
275-
query += QString( "%1(%2(%3%4),'%5')" )
275+
query += QString( "%1(%2%3,'%4')" )
276276
.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" )
280277
.arg( P->quotedIdentifier( P->mGeometryColumn ) )
281278
.arg( P->mSpatialColType == sctGeography ? "::geometry" : "" )
282279
.arg( P->endianString() );

0 commit comments

Comments
 (0)