MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / checkStrictEmptySemicolon

Method checkStrictEmptySemicolon

pkg/sql/parser/parser.go:841–850  ·  view source on GitHub ↗

checkStrictEmptySemicolon returns an error if strict mode is enabled and a bare semicolon is encountered.

()

Source from the content-addressed store, hash-verified

839
840// checkStrictEmptySemicolon returns an error if strict mode is enabled and a bare semicolon is encountered.
841func (p *Parser) checkStrictEmptySemicolon() error {
842 if p.strict {
843 return goerrors.InvalidSyntaxError(
844 "empty statement not allowed in strict mode",
845 p.currentLocation(),
846 "remove extra semicolons or disable strict mode",
847 )
848 }
849 return nil
850}
851
852// advance moves to the next token
853func (p *Parser) advance() {

Callers 1

parseTokensMethod · 0.95

Calls 1

currentLocationMethod · 0.95

Tested by

no test coverage detected