MySQL Forums
Forum List  »  Partitioning

Re: PARTITION BY RANGE ,problem for NULL values
Posted by: soumen chowdhury
Date: January 20, 2011 06:10AM

Mattias Jonsson Wrote:
-------------------------------------------------------
> I would guess that the problem is 'PARTITION p0
> VALUES LESS THAN (to_days('0000-00-00'))' since
> TO_DAYS('0000-00-00') probably returns NULL.
>
> Use 'PARTITION p0 VALUES LESS THAN (0))' instead.

Dear
Mr. Jonsson;

PARTITION p0 VALUES LESS THAN (0),

still producing the error

ERROR 1566 (HY000): Not allowed to use NULL value in VALUES LESS THAN

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: PARTITION BY RANGE ,problem for NULL values
3159
January 20, 2011 06:10AM


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.