From 5bdb7952f651f4628f5d702770367b25077e1554 Mon Sep 17 00:00:00 2001 From: Hugo Mercier Date: Mon, 9 Sep 2013 11:23:15 +0200 Subject: [PATCH] Remove st_force2d from postgres provider --- src/providers/postgres/qgspostgresfeatureiterator.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/providers/postgres/qgspostgresfeatureiterator.cpp b/src/providers/postgres/qgspostgresfeatureiterator.cpp index c0e28362b80..2a2445a44e4 100644 --- a/src/providers/postgres/qgspostgresfeatureiterator.cpp +++ b/src/providers/postgres/qgspostgresfeatureiterator.cpp @@ -272,11 +272,8 @@ bool QgsPostgresFeatureIterator::declareCursor( const QString& whereClause ) if ( fetchGeometry ) { - query += QString( "%1(%2(%3%4),'%5')" ) + query += QString( "%1(%2%3,'%4')" ) .arg( P->mConnectionRO->majorVersion() < 2 ? "asbinary" : "st_asbinary" ) - .arg( P->mConnectionRO->majorVersion() < 2 ? "force_2d" - : P->mConnectionRO->majorVersion() > 2 || P->mConnectionRO->minorVersion() > 0 ? "st_force2d" - : "st_force_2d" ) .arg( P->quotedIdentifier( P->mGeometryColumn ) ) .arg( P->mSpatialColType == sctGeography ? "::geometry" : "" ) .arg( P->endianString() );