From ed578ce62076502ed58694a7f9ac44e1aa1d0f7a Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 9 Jun 2026 17:16:45 +0200 Subject: clusterLayer: Add missing space in SQL query. The query itself was valid, but it makes the debug output easier to read that way. --- import_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'import_source.py') diff --git a/import_source.py b/import_source.py index f802a57..7a0bdc8 100644 --- a/import_source.py +++ b/import_source.py @@ -269,7 +269,7 @@ def clusterLayer(lyr : ogr.Layer, 'GROUP BY 1) ' 'SELECT index, array_length(columns, 1) AS len ' 'FROM indices ' - 'WHERE ' + escape_literal_str(column_name) + ' = ANY(columns)' + 'WHERE ' + escape_literal_str(column_name) + ' = ANY(columns) ' # pick the index involving the least number of columns 'ORDER BY 2,1 LIMIT 1') as res: defn = res.GetLayerDefn() -- cgit v1.2.3