fix problem on generate DDL, INDEX, CONSTRAINTS