MCPcopy Create free account
hub / github.com/bytebase/bytebase / dmlEndOffset

Function dmlEndOffset

backend/plugin/parser/tsql/backup.go:544–549  ·  view source on GitHub ↗
(source string, loc ast.Loc)

Source from the content-addressed store, hash-verified

542}
543
544func dmlEndOffset(source string, loc ast.Loc) int {
545 if loc.End >= 0 && loc.End < len(source) && source[loc.End] == ';' {
546 return loc.End
547 }
548 return loc.End - 1
549}
550
551func listLoc(list *ast.List) ast.Loc {
552 if list == nil || len(list.Items) == 0 {

Callers 2

prepareTransformationFunction · 0.85
statementPositionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected