Skip to content

Commit ae37b6e

Browse files
Add support for slices in FetchInfo.
1 parent 55432dd commit ae37b6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/oracledb/fetch_info.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def __getitem__(self, index):
7272
return self.scale
7373
elif index == 6 or index == -1:
7474
return self.null_ok
75+
elif isinstance(index, slice):
76+
return tuple(self).__getitem__(index)
7577
raise IndexError("list index out of range")
7678

7779
def __len__(self):

0 commit comments

Comments
 (0)