'foo %s bar' % 'alice' if False else 'bob' returns 'bob', not 'foo bob bar' The previous strings returns '>=' when the direction is future while it should be 'COALESCE(l.date_maturity,l.date) >= %s' Fixes #10654 Closes #10695
da93981
21b1203
12f600c