(stmt *ast.CommentOnTableStmt)
| 37 | } |
| 38 | |
| 39 | func (c *Catalog) commentOnTable(stmt *ast.CommentOnTableStmt) error { |
| 40 | _, t, err := c.getTable(stmt.Table) |
| 41 | if err != nil { |
| 42 | return err |
| 43 | } |
| 44 | if stmt.Comment != nil { |
| 45 | t.Comment = *stmt.Comment |
| 46 | } else { |
| 47 | t.Comment = "" |
| 48 | } |
| 49 | return nil |
| 50 | } |
| 51 | |
| 52 | func (c *Catalog) commentOnType(stmt *ast.CommentOnTypeStmt) error { |
| 53 | t, _, err := c.getType(stmt.Type) |