MySQL Forums
Forum List  »  Partitioning

No pruning with year() function in where clause
Posted by: Jonathan Krier
Date: July 01, 2006 08:34AM

Hi,

According to the official documentation (18.4. Partition Pruning), with a range partitionning of years, this kind of query should benefit of pruning :

SELECT * FROM t2 WHERE YEAR(dob) IN (1979, 1980, 1983, 1985, 1986, 1988);

However, when I use something like "WHERE YEAR(myDateField) = xxx", every partition is checked.

Is it a current limitation ?


Regards
Jonathan

Options: ReplyQuote


Subject
Views
Written By
Posted
No pruning with year() function in where clause
6794
July 01, 2006 08:34AM


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.