diff options
| -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() |
