(sql string, list *oracleast.List)
| 325 | } |
| 326 | |
| 327 | func oracleListText(sql string, list *oracleast.List) (string, int, bool) { |
| 328 | if list == nil || list.Len() == 0 { |
| 329 | return "", 0, false |
| 330 | } |
| 331 | start, ok := oracleNodeLoc(list.Items[0]) |
| 332 | if !ok { |
| 333 | return "", 0, false |
| 334 | } |
| 335 | end, ok := oracleNodeLoc(list.Items[list.Len()-1]) |
| 336 | if !ok { |
| 337 | return "", 0, false |
| 338 | } |
| 339 | text := strings.TrimSpace(oracleLocText(sql, start.Start, end.End)) |
| 340 | if text == "" { |
| 341 | return "", 0, false |
| 342 | } |
| 343 | return text, end.End, true |
| 344 | } |
| 345 | |
| 346 | func oracleWhereSuffix(sql string, start int, where oracleast.ExprNode) string { |
| 347 | loc, ok := oracleNodeLoc(where) |
no test coverage detected