MCPcopy Create free account
hub / github.com/donatj/sqlread / parseShowCreateTable

Method parseShowCreateTable

query.go:126–140  ·  view source on GitHub ↗
(p *Parser)

Source from the content-addressed store, hash-verified

124}
125
126func (q *QueryParser) parseShowCreateTable(p *Parser) parseState {
127 y, ok := p.scan()
128 if !ok {
129 p.errorUnexpectedEOF()
130 return nil
131 }
132 if !isOfAny(y, TIdentifier) {
133 p.errorUnexpectedLex(y, TIdentifier)
134 return nil
135 }
136
137 q.Tree.ShowCreateTables = append(q.Tree.ShowCreateTables, identValue(y))
138
139 return q.ParseStart
140}
141
142func (q *QueryParser) parseSelect(p *Parser) parseState {
143 qry := &Query{

Callers

nothing calls this directly

Calls 5

isOfAnyFunction · 0.85
identValueFunction · 0.85
scanMethod · 0.80
errorUnexpectedEOFMethod · 0.80
errorUnexpectedLexMethod · 0.80

Tested by

no test coverage detected