-
Notifications
You must be signed in to change notification settings - Fork 697
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
Correct precedence for arithmetic operators #788
Conversation
Thank you for the PR. Do you mind to change all the operators (where applicable) to be inherited from a |
I'll take a look and change it to CustomerOperator! 👍 Let's see if I have some time later on today. I would also like to change the type of |
It's |
I meant something like: class DivideOp<T, S: T>(
val expr1: Expression<T>, val expr2: Expression<S>, override val columnType: IColumnType
): ExpressionWithColumnType<T>() should become class DivideOp<T, S: T>(expr1: Expression<T>, expr2: Expression<S>, columnType: IColumnType)
: CustomOperator<T>("/", columnType, expr1, expr2) |
Sorry, I totally misread your initial comment. I updated the code and added a comment for the Some unit tests fail at on my machine (also when I run a build without my changes) Some failures are in the java-time module and are due to precision.
But 6 failures in
Adding a table name fixes this:
Shall I fix these errors or am I missing something here? |
Which Java version do you use? I'll check it by myself, so at the moment the PR looks fine to me. |
See issue #787
Exposed did not follow the correct operator precedence rules for arithmetic operators.