fix bug in sqlite truncate.