Commit 3c57f374 authored by Jérome Perrin's avatar Jérome Perrin

CMFActivity: fix a recent python3 regression

cf aaa85090 (CMFActivity: force using the more efficient index for
non-groupable activity reservation., 2025-02-27)
parent e9c24e0c
......@@ -791,7 +791,7 @@ CREATE TABLE %s (
# MariaDB often choose processing_node_priority_date index
# but node2_priority_date is much faster if there exist
# many node < 0 non-groupable activities.
force_index = b'FORCE INDEX (node2_priority_date)'
force_index = 'FORCE INDEX (node2_priority_date)'
subquery = lambda *a, **k: str2bytes(bytes2str(b"("
b"SELECT *, 3*priority{} AS effective_priority"
b" FROM %s"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment