MCPcopy Create free account
hub / github.com/AfterShip/clickhouse-sql-parser / tryParseHavingClause

Method tryParseHavingClause

parser/parser_query.go:934–939  ·  view source on GitHub ↗
(pos Pos)

Source from the content-addressed store, hash-verified

932}
933
934func (p *Parser) tryParseHavingClause(pos Pos) (*HavingClause, error) {
935 if !p.matchKeyword(KeywordHaving) {
936 return nil, nil
937 }
938 return p.parseHavingClause(pos)
939}
940
941func (p *Parser) parseHavingClause(pos Pos) (*HavingClause, error) {
942 if err := p.expectKeyword(KeywordHaving); err != nil {

Callers 1

parseSelectStmtMethod · 0.95

Calls 2

matchKeywordMethod · 0.95
parseHavingClauseMethod · 0.95

Tested by

no test coverage detected