Fix db2 string casting