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

Function literalLoc

backend/plugin/db/starrocks/query.go:242–248  ·  view source on GitHub ↗
(node ast.Node)

Source from the content-addressed store, hash-verified

240}
241
242func literalLoc(node ast.Node) ast.Loc {
243 lit, ok := node.(*ast.Literal)
244 if !ok {
245 return ast.Loc{Start: -1, End: -1}
246 }
247 return lit.Loc
248}
249
250func findCommaLimitCount(sql string, limitLoc ast.Loc) (countStart, countEnd int, found bool) {
251 pos := limitLoc.End

Callers 2

rewriteSelectLimitFunction · 0.85
rewriteSetOpLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected