GetArrayConstructor gets an ArrayConstructorExpression from the pool
()
| 1236 | |
| 1237 | // GetArrayConstructor gets an ArrayConstructorExpression from the pool |
| 1238 | func GetArrayConstructor() *ArrayConstructorExpression { |
| 1239 | ac := arrayConstructorPool.Get().(*ArrayConstructorExpression) |
| 1240 | ac.Elements = ac.Elements[:0] |
| 1241 | ac.Subquery = nil |
| 1242 | return ac |
| 1243 | } |
| 1244 | |
| 1245 | // PutArrayConstructor returns an ArrayConstructorExpression to the pool |
| 1246 | func PutArrayConstructor(ac *ArrayConstructorExpression) { |