[TAV-403] Fix input truncation in mySQL.