Some of the unraveling code is commented out at the bottom of normalizePredicate() in db_functions. There is more in the functions process{Unn,N}amedNCVArgument(). Rework and activate this code as the final step in constructing WHERE subclauses.
Checkin #37badac includes a new version of processNamedArgument() which unravels the nonelementary tokens and generates SQL for the (easier) case of named predicates, the so-called NCVs.
Some of the unraveling code is commented out at the bottom of
normalizePredicate()
indb_functions
. There is more in the functionsprocess{Unn,N}amedNCVArgument()
. Rework and activate this code as the final step in constructing WHERE subclauses.