Bug #10556 | Function 'EXTRACT(type FROM date)' accepts the invalid parameters. | ||
---|---|---|---|
Submitted: | 11 May 2005 14:38 | Modified: | 11 May 2005 16:03 |
Reporter: | Disha | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.5-beta pre-release | OS: | Windows (Windows Server 2003) |
Assigned to: | CPU Architecture: | Any |
[11 May 2005 14:38]
Disha
[11 May 2005 16:03]
MySQL Verification Team
According the Manual: http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html The EXTRACT() function uses the same kinds of interval type specifiers as DATE_ADD() or DATE_SUB(), but extracts parts from the date rather than performing date arithmetic. The following table shows how the type and expr arguments are related: type Value Expected expr Format MICROSECOND MICROSECONDS SECOND SECONDS MINUTE MINUTES HOUR HOURS DAY DAYS WEEK WEEKS