(pos Pos)
| 310 | } |
| 311 | |
| 312 | func (p *Parser) parseAlterTableDrop(pos Pos) (AlterTableClause, error) { |
| 313 | if err := p.expectKeyword(KeywordDrop); err != nil { |
| 314 | return nil, err |
| 315 | } |
| 316 | |
| 317 | switch { |
| 318 | case p.matchKeyword(KeywordColumn), p.matchKeyword(KeywordIndex), p.matchKeyword(KeywordProjection): |
| 319 | return p.parseAlterTableDropClause(pos) |
| 320 | case p.matchKeyword(KeywordDetached), p.matchKeyword(KeywordPartition): |
| 321 | return p.parseAlterTableDropPartition(pos) |
| 322 | default: |
| 323 | return nil, errors.New("expected keyword: COLUMN|INDEX|PROJECTION|DETACHED|PARTITION") |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | // Syntax: ALTER TABLE DETACH partitionClause |
| 328 | func (p *Parser) parseAlterTableDetachPartition(pos Pos) (AlterTableClause, error) { |
no test coverage detected