Skip to content

Fix asymmetrical SqlType.Equals #2534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 15, 2020
Merged

Fix asymmetrical SqlType.Equals #2534

merged 4 commits into from
Sep 15, 2020

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Sep 14, 2020

Fixed equality issue described in #1180 (comment)

Now it's strict check that returns true only in case of full object equality. Maybe should go as possible breaking change?

hazzik
hazzik previously approved these changes Sep 14, 2020
if (ScaleDefined != rhsSqlType.ScaleDefined)
return false;

if (LengthDefined && Length != rhsSqlType.Length)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LengthDefined && is not needed I believe.

hazzik
hazzik previously approved these changes Sep 14, 2020
@hazzik hazzik merged commit 19b2ad5 into nhibernate:master Sep 15, 2020
@hazzik hazzik added this to the next minor milestone Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants