(rel *ast.TableName)
| 62 | } |
| 63 | |
| 64 | func (s *Schema) getTable(rel *ast.TableName) (*Table, int, error) { |
| 65 | for i := range s.Tables { |
| 66 | if s.Tables[i].Rel.Name == rel.Name { |
| 67 | return s.Tables[i], i, nil |
| 68 | } |
| 69 | } |
| 70 | return nil, -1, sqlerr.RelationNotFound(rel.Name) |
| 71 | } |
| 72 | |
| 73 | func (s *Schema) getType(rel *ast.TypeName) (Type, int, error) { |
| 74 | for i := range s.Types { |
no test coverage detected