(node oracleast.Node)
| 323 | } |
| 324 | |
| 325 | func 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 | |
| 333 | func trimOracleLocSpace(sql string, loc oracleast.Loc) oracleast.Loc { |
| 334 | for loc.Start < loc.End && loc.Start < len(sql) && unicode.IsSpace(rune(sql[loc.Start])) { |
no outgoing calls
no test coverage detected