mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Remove st_force2d from postgres provider
This commit is contained in:
parent
546c2de44d
commit
5bdb7952f6
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user