Fixed #22738 -- made finer distinctions for when Boolean is not detected on Oracle