date_sub() function for delete sql through spider will wrong

Bug #1072831 reported by Yihuey Chyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Spider for MySQL
Fix Committed
Medium
Kentoku SHIBA

Bug Description

The example like this

If I want to delete the data before two years
I wil run the sql in my spider node

delete from JOB_APPLYVIEW_COUNT where custno = 31296859000 and update_date < date_sub(now(),interval 730 day);

spider will transfer the sql to the data node

delete from JOB_APPLYVIEW_COUNT where custno = 31296859000 and
update_date < adddate(now(), 730);

It will delete the data after two years ,and the result is wrong.

PLs help us , It's very important. Because we will use it on my production.

Thank you very much.

Revision history for this message
Kentoku SHIBA (kentokushiba) wrote :

This bug is fixed at Spider 3.0.

Changed in spiderformysql:
assignee: nobody → Kentoku SHIBA (kentokushiba)
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.