-
Notifications
You must be signed in to change notification settings - Fork 386
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
Integer division (DIV) not supported #1932
Labels
Comments
We already support and use it internally with MySqlBinaryExpression, with Pomelo.EntityFrameworkCore.MySql/src/EFCore.MySql/Query/Internal/MySqlSqlExpressionFactory.cs Lines 204 to 212 in fde6828
and Lines 837 to 872 in fde6828
The simplest way to expose it publicly would probably be to make it available as an extension method on |
This was referenced Dec 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just an easy request, is it possible to support the
DIV
Integer division operator?https://dev.mysql.com/doc/refman/8.4/en/arithmetic-functions.html#operator_div
https://mariadb.com/kb/en/div/
I usually use
Math.Truncate
and sometimesMath.Floor
but we have direct support of integer division on MySql and MariaDb and I guess it will be nice to support it.Thanks.
The text was updated successfully, but these errors were encountered: