Skip to content

NH-3726: Added escape character support in SqlMethods.Like #484

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

Closed
wants to merge 1 commit into from

Conversation

gliljas
Copy link
Member

@gliljas gliljas commented Jul 25, 2016

Did not yet follow my own suggestion to fix StartsWIth, Contains and EndWith, since that could be considered a breaking change. But it is a bug, IMO.

@hazzik
Copy link
Member

hazzik commented Jul 25, 2016

All checks have failed

@gliljas
Copy link
Member Author

gliljas commented Jul 25, 2016

Hmm...

I'm on a shaky rural connection, but will try to fix ASAP

@gliljas gliljas force-pushed the NH-3726 branch 2 times, most recently from b7a58da to f73001e Compare July 27, 2016 05:25
@gliljas
Copy link
Member Author

gliljas commented Jul 27, 2016

Fixed and squashed


//This entity will be flushed to the db, but rolled back when the test completes

session.Save(new Employee { FirstName = employeeName, LastName = "" });
Copy link
Member

@hazzik hazzik Jul 30, 2016

Choose a reason for hiding this comment

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

Oracle does not like "" as LastName because in Oracle "" is NULL

@oskarb oskarb added this to the 4.1.0 milestone Jul 31, 2016
@oskarb
Copy link
Member

oskarb commented Jul 31, 2016

I suspect it's the choice of escape character that is causing the fail in MySql. I will test.

@oskarb
Copy link
Member

oskarb commented Jul 31, 2016

I've fixed the issue on MySql, but decided to also rebase to get rid of unrelated formatting changes. Merged separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants