fix truncation with io.sql.write_frame for mysql