Address test_find_by_id_with_hash failure with Oracle

For other database adapters, this test already passes
but expected `ActiveRecord::StatementInvalid` exception occurs
within ActiveRecord::PredicateBuilder, not at genereated statements.