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

Function extractOracleFetchCount

backend/plugin/db/oracle/query.go:325–331  ·  view source on GitHub ↗
(node oracleast.Node)

Source from the content-addressed store, hash-verified

323}
324
325func extractOracleFetchCount(node oracleast.Node) int {
326 limit, ok := node.(*oracleast.NumberLiteral)
327 if !ok || limit.IsFloat || limit.Ival <= 0 {
328 return 0
329 }
330 return int(limit.Ival)
331}
332
333func trimOracleLocSpace(sql string, loc oracleast.Loc) oracleast.Loc {
334 for loc.Start < loc.End && loc.Start < len(sql) && unicode.IsSpace(rune(sql[loc.Start])) {

Callers 1

rewriteOracleFetchClauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected