Method
commentOnSchema
(stmt *ast.CommentOnSchemaStmt)
Source from the content-addressed store, hash-verified
| 24 | } |
| 25 | |
| 26 | func (c *Catalog) commentOnSchema(stmt *ast.CommentOnSchemaStmt) error { |
| 27 | s, err := c.getSchema(stmt.Schema.Str) |
| 28 | if err != nil { |
| 29 | return err |
| 30 | } |
| 31 | if stmt.Comment != nil { |
| 32 | s.Comment = *stmt.Comment |
| 33 | } else { |
| 34 | s.Comment = "" |
| 35 | } |
| 36 | return nil |
| 37 | } |
| 38 | |
| 39 | func (c *Catalog) commentOnTable(stmt *ast.CommentOnTableStmt) error { |
| 40 | _, t, err := c.getTable(stmt.Table) |
Tested by
no test coverage detected