WL#4444: TRUNCATE PARTITION support

Affects: Server-5.5   —   Status: Complete

Implement support for TRUNCATE PARTITION.

See also:
BUG#19405 No way to truncate a partition
BUG#23603 Partitions: reorganize means delete
BUG#41210 cannot truncate a partition individually

Questions to solve:
1) Should the auto increment value be reset to 0 for the truncated partitions, or
be preserved?
2) Should it be supported for NDB as well?
Answers after discussion with Mikael Ronström:
1) TRUNCATE TABLE currently resets the auto_increment, so TRUNCATE PARTITION
should also reset the auto_increment on that partition, i.e. if the partition
has the highest auto_increment value, the auto_increment value will be dropped
to the maximum auto_increment value of the non truncated partitions.
2) There is no need to support TRUNCATE PARTITION for NDB, until it supports all
the rest of the partitioning handling commands.