(aexpr *pg_query.A_Expr)
| 286 | } |
| 287 | |
| 288 | func operatorName(aexpr *pg_query.A_Expr) string { |
| 289 | if aexpr == nil || len(aexpr.Name) == 0 { |
| 290 | return "" |
| 291 | } |
| 292 | for i := len(aexpr.Name) - 1; i >= 0; i-- { |
| 293 | if str := aexpr.Name[i].GetString_(); str != nil { |
| 294 | return str.Sval |
| 295 | } |
| 296 | } |
| 297 | return "" |
| 298 | } |
| 299 | |
| 300 | func booleanComparisonArg(left, right *pg_query.Node) (bool, *pg_query.Node, bool) { |
| 301 | if value, ok := booleanLiteralValue(right); ok && !isBooleanLiteral(left) { |
no outgoing calls
no test coverage detected