File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ oracledb 2.2.1 (TBD)
1717Thin Mode Changes
1818+++++++++++++++++
1919
20+ #) Fixed bug in statement cache when the maximum number of cursors is unknown
21+ due to the database not being open.
2022#) Fixed bug in handling redirect data with small SDU sizes.
2123
2224Thick Mode Changes
Original file line number Diff line number Diff line change @@ -132,13 +132,17 @@ cdef class StatementCache:
132132 """
133133 Initialize the statement cache.
134134 """
135- self ._max_size = max_size
136- self ._max_cursors = max_cursors
135+ if max_cursors == 0 :
136+ self ._max_size = 0
137+ self ._max_cursors = 1
138+ else :
139+ self ._max_size = max_size
140+ self ._max_cursors = max_cursors
137141 self ._cached_statements = collections.OrderedDict()
138142 self ._lock = threading.Lock()
139143 self ._open_cursors = set ()
140144 self ._cursors_to_close = array.array(' I' )
141- array.resize(self ._cursors_to_close, max_cursors )
145+ array.resize(self ._cursors_to_close, self ._max_cursors )
142146 self ._num_cursors_to_close = 0
143147
144148 cdef int resize(self , uint32_t new_size) except - 1 :
You can’t perform that action at this time.
0 commit comments