A fix and a test case for Bug#1042798 (box.truncate on non-linear pk)