Cursor select polymorphism