@@ -346,22 +346,21 @@ cdef class ThickCursorImpl(BaseCursorImpl):
346346 if self .bind_vars is not None :
347347 self ._perform_binds(cursor.connection, num_execs_int)
348348
349- if num_execs_int > 0 :
350- with nogil:
351- status = dpiStmt_executeMany(self ._handle, mode, num_execs_int)
352- dpiContext_getError(driver_info.context, & error_info)
353- dpiStmt_getRowCount(self ._handle, & rowcount)
354- if not self ._stmt_info.isPLSQL:
355- self .rowcount = rowcount
356- if status < 0 :
357- error = _create_new_from_info(& error_info)
358- if self ._stmt_info.isPLSQL and error_info.offset == 0 :
359- error.offset = rowcount
360- raise error.exc_type(error)
361- elif error_info.isWarning:
362- self .warning = _create_new_from_info(& error_info)
363- if self ._stmt_info.isReturning or self ._stmt_info.isPLSQL:
364- self ._transform_binds()
349+ with nogil:
350+ status = dpiStmt_executeMany(self ._handle, mode, num_execs_int)
351+ dpiContext_getError(driver_info.context, & error_info)
352+ dpiStmt_getRowCount(self ._handle, & rowcount)
353+ if not self ._stmt_info.isPLSQL:
354+ self .rowcount = rowcount
355+ if status < 0 :
356+ error = _create_new_from_info(& error_info)
357+ if self ._stmt_info.isPLSQL and error_info.offset == 0 :
358+ error.offset = rowcount
359+ raise error.exc_type(error)
360+ elif error_info.isWarning:
361+ self .warning = _create_new_from_info(& error_info)
362+ if self ._stmt_info.isReturning or self ._stmt_info.isPLSQL:
363+ self ._transform_binds()
365364
366365 def get_array_dml_row_counts (self ):
367366 """
0 commit comments