getFuncCall extracts a FuncCall from a node if it is one
(node *pg_query.Node)
| 183 | |
| 184 | // getFuncCall extracts a FuncCall from a node if it is one |
| 185 | func (t *VersionTransform) getFuncCall(node *pg_query.Node) *pg_query.FuncCall { |
| 186 | if node == nil { |
| 187 | return nil |
| 188 | } |
| 189 | if fc := node.GetFuncCall(); fc != nil { |
| 190 | return fc |
| 191 | } |
| 192 | return nil |
| 193 | } |
| 194 | |
| 195 | // isVersionCall checks if a FuncCall is version() or pg_catalog.version() |
| 196 | func (t *VersionTransform) isVersionCall(fc *pg_query.FuncCall) bool { |