Skip to content

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

Merged
maumar merged 1 commit intodotnet:mainfrom
lauxjpn:test/Where_math_log_new_base
Mar 18, 2024
Merged

Change Where_math(f)_log_new_base queries, so they fail if LOG() parameters are swapped#33342
maumar merged 1 commit intodotnet:mainfrom
lauxjpn:test/Where_math_log_new_base

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
This was referenced Jul 22, 2025
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