[jOOQ/jOOQ#12666] Fix regression
Casts have a higher precedence than other operators
This commit is contained in:
parent
5716a9aa77
commit
9727e95dba
@ -9847,7 +9847,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
|
||||
while (!parseIf('\''));
|
||||
|
||||
int months = (month == null ? 0 : month.intValue())
|
||||
+ (year == null ? 0 : asInt((long) year.doubleValue() * 12));
|
||||
+ (year == null ? 0 : asInt((long) (year.doubleValue() * 12)));
|
||||
|
||||
double seconds = (month == null ? 0.0 : ((month.doubleValue() % 1.0) * 30 * 86400))
|
||||
+ (day == null ? 0.0 : ((day.doubleValue() * 86400)))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user