Fixes #5147: null is not handled correctly for arbitrary operator in SQL.