Hello,
I want to improve the way that joins with conditions are processed. This stems from a burning desire to conditionally join a table based on a date. Not a timestamp, but a date which comes from the Date module. Which means I need to preprocess the field.
You'll notice in the views_join documentation that there is no processing for a formula condition. So no DATE_FORMAT
and no STR_TO_DATE
.
I think the whole reason we have this is due to #645990: Fix handling of 'extra' conditions and left/inner joins, which was written in 2009, and there may not have been formulas back the. I'd like to add to it.
Comment | File | Size | Author |
---|---|---|---|
#1 | views-add_join_formula_handler-1530448-1.patch | 5.53 KB | nagiek |
Comments
Comment #1
nagiek CreditAttribution: nagiek commentedPatch attached
Comment #2
nagiek CreditAttribution: nagiek commentedAlso, the changes in this patch should be applied to views_join_subquery as well
Comment #3
tim.plunkettMissing full stop.
Also, CNW for #2.