@@ -38,7 +38,7 @@ cdef class ExecuteMessage(MessageWithData):
3838 Write the message for a full execute.
3939 """
4040 cdef:
41- uint32_t options, dml_options = 0 , num_params = 0 , num_iters = 1
41+ uint32_t options, exec_flags = 0 , num_params = 0 , num_iters = 1
4242 Statement stmt = self .cursor_impl._statement
4343 BaseThinCursorImpl cursor_impl = self .cursor_impl
4444 list params = stmt._bind_info_list
@@ -51,7 +51,7 @@ cdef class ExecuteMessage(MessageWithData):
5151 if stmt._requires_define:
5252 options |= TNS_EXEC_OPTION_DEFINE
5353 elif not self .parse_only and stmt._sql is not None :
54- dml_options = TNS_EXEC_OPTION_IMPLICIT_RESULTSET
54+ exec_flags = TNS_EXEC_FLAGS_IMPLICIT_RESULTSET
5555 options |= TNS_EXEC_OPTION_EXECUTE
5656 if stmt._cursor_id == 0 or stmt._is_ddl:
5757 options |= TNS_EXEC_OPTION_PARSE
@@ -75,7 +75,7 @@ cdef class ExecuteMessage(MessageWithData):
7575 if self .batcherrors:
7676 options |= TNS_EXEC_OPTION_BATCH_ERRORS
7777 if self .arraydmlrowcounts:
78- dml_options = TNS_EXEC_OPTION_DML_ROWCOUNTS
78+ exec_flags = TNS_EXEC_FLAGS_DML_ROWCOUNTS
7979 if self .conn_impl.autocommit and not self .parse_only:
8080 options |= TNS_EXEC_OPTION_COMMIT
8181
@@ -160,7 +160,7 @@ cdef class ExecuteMessage(MessageWithData):
160160 buf.write_ub4(0 ) # al8i4[6] SCN (part 2)
161161 buf.write_ub4(stmt._is_query) # al8i4[7] is query
162162 buf.write_ub4(0 ) # al8i4[8]
163- buf.write_ub4(dml_options ) # al8i4[9] DML row counts/implicit
163+ buf.write_ub4(exec_flags ) # al8i4[9] execute flags
164164 buf.write_ub4(0 ) # al8i4[10]
165165 buf.write_ub4(0 ) # al8i4[11]
166166 buf.write_ub4(0 ) # al8i4[12]
@@ -174,7 +174,7 @@ cdef class ExecuteMessage(MessageWithData):
174174 Write the message for a re-execute.
175175 """
176176 cdef:
177- uint32_t i, exec_flags_1 = 0 , exec_flags_2 = 0 , num_iters
177+ uint32_t i, options_1 = 0 , options_2 = 0 , num_iters
178178 Statement stmt = self .cursor_impl._statement
179179 list params = stmt._bind_info_list
180180 BindInfo info
@@ -188,19 +188,19 @@ cdef class ExecuteMessage(MessageWithData):
188188 if info.bind_dir != TNS_BIND_DIR_OUTPUT \
189189 and not info._is_return_bind]
190190 if self .function_code == TNS_FUNC_REEXECUTE_AND_FETCH:
191- exec_flags_1 |= TNS_EXEC_OPTION_EXECUTE
191+ options_1 |= TNS_EXEC_OPTION_EXECUTE
192192 num_iters = self .cursor_impl.prefetchrows
193193 self .cursor_impl._set_fetch_array_size(num_iters)
194194 else :
195195 if self .conn_impl.autocommit:
196- exec_flags_2 |= TNS_EXEC_OPTION_COMMIT_REEXECUTE
196+ options_2 |= TNS_EXEC_OPTION_COMMIT_REEXECUTE
197197 num_iters = self .num_execs
198198
199199 self ._write_function_code(buf)
200200 buf.write_ub4(stmt._cursor_id)
201201 buf.write_ub4(num_iters)
202- buf.write_ub4(exec_flags_1 )
203- buf.write_ub4(exec_flags_2 )
202+ buf.write_ub4(options_1 )
203+ buf.write_ub4(options_2 )
204204 if params:
205205 for i in range (self .num_execs):
206206 buf.write_uint8(TNS_MSG_TYPE_ROW_DATA)
0 commit comments