sql: Remove redundant enumerator allocation