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

Key: IDEA-18583
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Assignee: Gregory Shrago
Reporter: Arik Kfir
Votes: 0
Watchers: 2
Operations

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

[SQL] Good code red: "DELETE" with JOIN in MySQL dialect

Created: 26 Jun 08 14:58   Updated: 27 Aug 08 20:27
Component/s: SQL

Environment: Ubuntu 8.04, Sun JDK 1.6.0_03
Issue Links:
Duplicate
This issue duplicates:
IDEADEV-28220 SQL: MySQL: valid arythmetic expressi... Normal Open
 

Build: 8,493
Severity: Medium


 Description  « Hide
The following SQL statement is valid under MySQL (not sure if it is part of ANSI SQL though) but is highlighted as error:
DELETE  h
FROM    hooks AS h JOIN impressions AS i
            ON h.request_id = i.request_id
WHERE   i.impression_date < NOW() - INTERVAL 3 HOUR;


 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 27 Aug 08 20:27
DELETE statement does not play a part. The same false error is shown for
 select NOW() - INTERVAL 3 HOUR; 

and described in IDEADEV-28220.