@@ -104,7 +104,6 @@ def __init__(self, connection, timeout: int = 0) -> None:
104104 self ._next_row_index = 0 # internal: index of the next row the driver will return (0-based)
105105 self ._has_result_set = False # Track if we have an active result set
106106 self ._skip_increment_for_next_fetch = False # Track if we need to skip incrementing the row index
107-
108107 self .messages = [] # Store diagnostic messages
109108
110109 def _is_unicode_string (self , param ):
@@ -2028,9 +2027,6 @@ def scroll(self, value: int, mode: str = 'relative') -> None:
20282027 - absolute(-1): before first (rownumber = -1), no data consumed.
20292028 - absolute(0): position so next fetch returns first row; rownumber stays 0 even after that fetch.
20302029 - absolute(k>0): next fetch returns row index k (0-based); rownumber == k after scroll.
2031-
2032- Note: Scrolling is not supported with fast forward-only cursors (default).
2033- To use scrolling, create connection with fast_forward_cursor=False.
20342030 """
20352031 self ._check_closed ()
20362032
@@ -2047,14 +2043,6 @@ def scroll(self, value: int, mode: str = 'relative') -> None:
20472043 raise ProgrammingError ("Invalid scroll value type" ,
20482044 f"scroll value must be an integer, got { type (value ).__name__ } " )
20492045
2050- # Check if cursor is configured for scrolling
2051- if not self ._is_scrollable :
2052- raise NotSupportedError (
2053- "Scrolling not supported with fast forward cursors" ,
2054- "To enable scrolling, create connection with fast_forward_cursor=False. "
2055- "Note: This will reduce performance for non-scrolling operations."
2056- )
2057-
20582046 # Relative backward not supported
20592047 if mode == 'relative' and value < 0 :
20602048 raise NotSupportedError ("Backward scrolling not supported" ,
0 commit comments