MDL-47618 mdl: make Oracle in_or_equals hack reusable, and use it.