diff options
| author | Guilhem Moulin <guilhem@fripost.org> | 2026-06-09 17:16:45 +0200 |
|---|---|---|
| committer | Guilhem Moulin <guilhem@fripost.org> | 2026-06-09 17:17:21 +0200 |
| commit | ed578ce62076502ed58694a7f9ac44e1aa1d0f7a (patch) | |
| tree | 2e466115881beb2cd710268a582503d4fb6ba58f | |
| parent | 2d2ae41e0e9dc945855a6bb62228995e74eea229 (diff) | |
The query itself was valid, but it makes the debug output easier to read
that way.
| -rw-r--r-- | import_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
