MDL-50633 dml: deprecated var replaced in mysql 5.7