(stmt ast.Node)
| 726 | return ParserRestore(stmt) |
| 727 | } |
| 728 | func ParserRestore(stmt ast.Node) (string, error) { |
| 729 | buf := bytes.NewBuffer(nil) |
| 730 | err := stmt.Restore(parserformat.NewRestoreCtx(common.ParserRestoreFlag, buf)) |
| 731 | if err != nil { |
| 732 | return "", err |
| 733 | } |
| 734 | return buf.String(), nil |
| 735 | } |
| 736 | |
| 737 | func BuildCreateTableColsFromMap(cols []*ast.ColumnDef, columnMap []string) (r []*ast.ColumnDef) { |
| 738 | if len(columnMap) > 0 { |
no test coverage detected