MySQL Forums
Forum List  »  Partitioning

Re: Add new partition for Range by date
Posted by: Aftab Khan
Date: August 12, 2012 01:06AM

to_days() returns NULL for non-valid dates (like 2011-04-31). (See bug#49754).

I suggest you to try 'PARTITION BY RANGE COLUMNS (date)' (in MySQL 5.5) instead.

OR add extra partition to it:


ALTER TABLE idea_partition
reorganize partition rx201201 INTO (
partition invalid_dates values less than (0),
partition rx201201 VALUES LESS THAN( TO_DAYS('2012-01-01 00:00:00'))
);


Options: ReplyQuote


Subject
Views
Written By
Posted
5717
August 09, 2012 04:05AM
Re: Add new partition for Range by date
2148
August 12, 2012 01:06AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.