[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2234?page=c...
]
Yossi Tamari commented on HHH-2234:
-----------------------------------
Actually, both parameters should be in parenthesis.
'mod' implementation in SQL Server dialect missing
parenthesis
--------------------------------------------------------------
Key: HHH-2234
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2234
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.2.0.ga
Environment: MS SQL Server
Reporter: Yossi Tamari
Priority: Minor
Original Estimate: 1 minute
Remaining: 1 minute
In the implementation of the 'mod' function in SQLServerDialect, if the first
parameter is an expression, a precedence error could occur.
For example mod(5+2, 3) is translated to 5 +2 % 3 which yield 7 instead of 1. to fix it
add parenthesis around the first parameter always.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira