MCPcopy
hub / github.com/sqlc-dev/sqlc / Release_stmt

Method Release_stmt

internal/engine/sqlite/parser/sqlite_parser.go:4167–4211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4165}
4166
4167func (p *SQLiteParser) Release_stmt() (localctx IRelease_stmtContext) {
4168 localctx = NewRelease_stmtContext(p, p.GetParserRuleContext(), p.GetState())
4169 p.EnterRule(localctx, 20, SQLiteParserRULE_release_stmt)
4170 p.EnterOuterAlt(localctx, 1)
4171 {
4172 p.SetState(373)
4173 p.Match(SQLiteParserRELEASE_)
4174 if p.HasError() {
4175 // Recognition error - abort rule
4176 goto errorExit
4177 }
4178 }
4179 p.SetState(375)
4180 p.GetErrorHandler().Sync(p)
4181
4182 if p.GetInterpreter().AdaptivePredict(p.BaseParser, p.GetTokenStream(), 24, p.GetParserRuleContext()) == 1 {
4183 {
4184 p.SetState(374)
4185 p.Match(SQLiteParserSAVEPOINT_)
4186 if p.HasError() {
4187 // Recognition error - abort rule
4188 goto errorExit
4189 }
4190 }
4191
4192 } else if p.HasError() { // JIM
4193 goto errorExit
4194 }
4195 {
4196 p.SetState(377)
4197 p.Savepoint_name()
4198 }
4199
4200errorExit:
4201 if p.HasError() {
4202 v := p.GetError()
4203 localctx.SetException(v)
4204 p.GetErrorHandler().ReportError(p, v)
4205 p.GetErrorHandler().Recover(p, v)
4206 p.SetError(nil)
4207 }
4208 p.ExitRule()
4209 return localctx
4210 goto errorExit // Trick to prevent compiler error if the label is not used
4211}
4212
4213// ICreate_index_stmtContext is an interface to support dynamic dispatch.
4214type ICreate_index_stmtContext interface {

Callers 1

Sql_stmtMethod · 0.95

Calls 4

Savepoint_nameMethod · 0.95
NewRelease_stmtContextFunction · 0.85
EnterRuleMethod · 0.45
ExitRuleMethod · 0.45

Tested by

no test coverage detected