History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-27277
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

SQL: MySQL: Basic inspection reports time units as not supported

Created: 11 Jun 08 18:11   Updated: 19 Sep 08 19:52
Component/s: SQL
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,454


 Description  « Hide
The following valid statement is red now:
 select date_add(curdate(), interval 1 year); 

This is IDEADEV-26999. To work around, write:

 select date_add(curdate(), interval 1 year microsecond); 

See that 'year' is highlighted as warning. The same happens for any time unit except microsecond.
The message is "'Year' operator is not supported by MySQL dialect."
Actually all them are supported, see: http://dev.mysql.com/doc/refman/6.0/en/date-and-time-functions.html#function_date-add.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 19 Sep 08 19:52
8814: already fixed.