Skip to content
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

Change Where_math(f)_log_new_base queries, so they fail if LOG() parameters are swapped #33342

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

lauxjpn
Copy link
Contributor

@lauxjpn lauxjpn commented Mar 17, 2024

A Pomelo user just made us aware in PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#1890 that our Math.Log(double a, double newBase) translation had the parameters swapped (.NET and MySQL use a different parameter order).

Looks like the Where_math_log_new_base and Where_mathf_log_new_base tests coincidentally succeed anyway with swapped arguments.

This PR ensures that those tests fail with swapped arguments.

@maumar maumar merged commit a7d9f84 into dotnet:main Mar 18, 2024
7 checks passed
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.

3 participants