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

** (power) does not get translated to POWER in MSSQL #15

Open
henadzit opened this issue Nov 8, 2024 · 0 comments
Open

** (power) does not get translated to POWER in MSSQL #15

henadzit opened this issue Nov 8, 2024 · 0 comments

Comments

@henadzit
Copy link
Contributor

henadzit commented Nov 8, 2024

At the moment Field("a") ** 2 will produce an incorrect SQL for MSSQL: POW("a",2). The POW function in MSSQL is called POWER.

I discovered it while working on a PR in tortoise-orm. Here's related line https://github.com/tortoise/tortoise-orm/pull/1761/files#diff-aa57560853f73b4713b47a1ae27f28c76a227216db2eb068e32649322876ae94R209

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

No branches or pull requests

1 participant