[3152] only allow as many characters as storable in DB (for PatDetail)