| Bug #119324 | Inconsistent Data Type Inference in Aggregate Functions with CTE | ||
|---|---|---|---|
| Submitted: | 7 Nov 6:19 | Modified: | 7 Nov 8:52 |
| Reporter: | cl hl | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 9.4.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
[7 Nov 6:19]
cl hl
[7 Nov 8:52]
Roy Lyseng
AVG is not implemented for temporal data types like DATETIME, only for DECIMAL and floating point types. Thus, to be able to take AVG of a datetime expression, it has to be converted to a DECIMAL value first. Not a bug.
