From ed7533d178d4a5b7ad4fdae1a851ce4077bc5b68 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 14 May 2024 13:01:42 +0200 Subject: [PATCH] Fix support for PostGIS-3.2+ directed linear TopoGeometries References #57419 Lacks testcase --- src/providers/postgres/qgspostgresfeatureiterator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/postgres/qgspostgresfeatureiterator.cpp b/src/providers/postgres/qgspostgresfeatureiterator.cpp index 7657084fd241..0713d5e2b1ee 100644 --- a/src/providers/postgres/qgspostgresfeatureiterator.cpp +++ b/src/providers/postgres/qgspostgresfeatureiterator.cpp @@ -542,7 +542,7 @@ QString QgsPostgresFeatureIterator::whereClauseRect() FROM %3.relation r, elems e WHERE r.layer_id = %4 AND r.element_type = e.typ - AND r.element_id = e.id + AND ( r.element_id = e.id OR r.element_id = -e.id ) ) )SQL" ) // Should we bother with mBoundingBoxColumn ?