Addeds upport for QueryOptimizerCursor.