sql2char corrections