PutFunctionCall returns a FunctionCall to the pool
(fc *FunctionCall)
| 1131 | |
| 1132 | // PutFunctionCall returns a FunctionCall to the pool |
| 1133 | func PutFunctionCall(fc *FunctionCall) { |
| 1134 | if fc == nil { |
| 1135 | return |
| 1136 | } |
| 1137 | for i := range fc.Arguments { |
| 1138 | PutExpression(fc.Arguments[i]) |
| 1139 | fc.Arguments[i] = nil |
| 1140 | } |
| 1141 | fc.Arguments = fc.Arguments[:0] |
| 1142 | fc.Name = "" |
| 1143 | fc.Over = nil |
| 1144 | fc.Distinct = false |
| 1145 | fc.Filter = nil |
| 1146 | functionCallPool.Put(fc) |
| 1147 | } |
| 1148 | |
| 1149 | // GetCaseExpression gets a CaseExpression from the pool |
| 1150 | func GetCaseExpression() *CaseExpression { |