(stmt *ast.CommentOnViewStmt)
| 63 | } |
| 64 | |
| 65 | func (c *Catalog) commentOnView(stmt *ast.CommentOnViewStmt) error { |
| 66 | _, t, err := c.getTable(stmt.View) |
| 67 | if err != nil { |
| 68 | return err |
| 69 | } |
| 70 | if stmt.Comment != nil { |
| 71 | t.Comment = *stmt.Comment |
| 72 | } else { |
| 73 | t.Comment = "" |
| 74 | } |
| 75 | return nil |
| 76 | } |