GetSelectStatement gets a SelectStatement from the pool
()
| 652 | |
| 653 | // GetSelectStatement gets a SelectStatement from the pool |
| 654 | func GetSelectStatement() *SelectStatement { |
| 655 | stmt := selectStmtPool.Get().(*SelectStatement) |
| 656 | stmt.Columns = stmt.Columns[:0] |
| 657 | stmt.OrderBy = stmt.OrderBy[:0] |
| 658 | return stmt |
| 659 | } |
| 660 | |
| 661 | // PutSelectStatement returns a SelectStatement to the pool |
| 662 | // Uses iterative cleanup via PutExpression to handle deeply nested expressions |