Skip to content

Commit

Permalink
Merge pull request #2392 from yahonda/fix_index_hexdigest
Browse files Browse the repository at this point in the history
Address `OracleEnhancedAdapter schema definition add index should raise error if too large index name cannot be shortened` failure against Oracle Database 11g
  • Loading branch information
yahonda committed Sep 22, 2024
2 parents a1a1815 + 1a1faff commit b054c76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class ::TestEmployee < ActiveRecord::Base; end
("index_test_employees_on_first_name_and_middle_name_and_last_name"))
else
expect(@conn.index_name("test_employees", column: ["first_name", "middle_name", "last_name"])).to eq(
"i" + OpenSSL::Digest::SHA1.hexdigest("idx_on_first_name_middle_name_last_name_ee1d3958bc")[0, 29]
"i" + OpenSSL::Digest::SHA1.hexdigest("index_test_employees_on_first_name_and_middle_name_and_last_name")[0, 29]
)
end
end
Expand Down

0 comments on commit b054c76

Please sign in to comment.