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

Swap parameters in Math.Log(double a, double newBase) translation #1891

Merged
merged 1 commit into from
Mar 17, 2024

Conversation

lauxjpn
Copy link
Collaborator

@lauxjpn lauxjpn commented Mar 17, 2024

The .NET signature for Math.Log(double a, double newBase) has the parameter order swapped when compared to MySQL's LOG(B,X).

This was not caught by the EF Core Specification Tests, because by chance, the related tests return the same entities in both cases.

Fixes #1890

@lauxjpn lauxjpn added type-bug backport-candidate Should be considered for backporting. labels Mar 17, 2024
@lauxjpn lauxjpn added this to the 9.0.0 milestone Mar 17, 2024
@lauxjpn lauxjpn self-assigned this Mar 17, 2024
@lauxjpn lauxjpn modified the milestones: 9.0.0, 9.0.0-preview.2 Mar 17, 2024
@lauxjpn lauxjpn merged commit 5ca0fa1 into PomeloFoundation:main Mar 17, 2024
19 checks passed
@lauxjpn lauxjpn deleted the fix/issue1890 branch March 17, 2024 17:09
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
lauxjpn added a commit that referenced this pull request Mar 17, 2024
lauxjpn added a commit that referenced this pull request Mar 17, 2024
…anslation

* Swap parameters in `Math.Log(double a, double newBase)` translation. (#1891) (#1893)

(cherry picked from commit 5ca0fa1)
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
* Swap parameters in `Math.Log(double a, double newBase)` translation. (PomeloFoundation#1891)

(cherry picked from commit 5ca0fa1)
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
* Swap parameters in `Math.Log(double a, double newBase)` translation. (PomeloFoundation#1891)

(cherry picked from commit 5ca0fa1)
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
* Swap parameters in `Math.Log(double a, double newBase)` translation. (PomeloFoundation#1891)

(cherry picked from commit 5ca0fa1)
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 17, 2024
* Swap parameters in `Math.Log(double a, double newBase)` translation. (PomeloFoundation#1891)

(cherry picked from commit 5ca0fa1)
lauxjpn added a commit that referenced this pull request Mar 18, 2024
…anslation (#1894)

* Swap parameters in `Math.Log(double a, double newBase)` translation. (#1891)

(cherry picked from commit 5ca0fa1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-candidate Should be considered for backporting. type-bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Math.Log number and base are in the wrong order in mysql LOG function
1 participant