MCPcopy Index your code
hub / github.com/LissaGreense/GO4SQL / validateApostropheWrapping

Function validateApostropheWrapping

parser/parser.go:229–236  ·  view source on GitHub ↗
(startedWithApostrophe bool, finishedWithApostrophe bool, value token.Token)

Source from the content-addressed store, hash-verified

227}
228
229func validateApostropheWrapping(startedWithApostrophe bool, finishedWithApostrophe bool, value token.Token) error {
230 if startedWithApostrophe && !finishedWithApostrophe {
231 return &NoApostropheOnRightParserError{ident: value.Literal}
232 } else if !startedWithApostrophe && finishedWithApostrophe {
233 return &NoApostropheOnLeftParserError{ident: value.Literal}
234 }
235 return nil
236}
237
238// parseSelectCommand - Return ast.SelectCommand created from tokens and validate the syntax
239//

Callers 5

parseInsertCommandMethod · 0.85
parseUpdateCommandMethod · 0.85
getContainExpressionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected