Fix mysql 5.5 truncate problem