Fix determine if current SQL is DML case.