(name string)
| 87 | } |
| 88 | |
| 89 | func (c *Catalog) getSchema(name string) (*Schema, error) { |
| 90 | for i := range c.Schemas { |
| 91 | if c.Schemas[i].Name == name { |
| 92 | return c.Schemas[i], nil |
| 93 | } |
| 94 | } |
| 95 | return nil, sqlerr.SchemaNotFound(name) |
| 96 | } |
| 97 | |
| 98 | func (c *Catalog) createSchema(stmt *ast.CreateSchemaStmt) error { |
| 99 | if stmt.Name == nil { |
no test coverage detected