@@ -38,7 +38,7 @@ cdef class ExecuteMessage(MessageWithData):
38
38
Write the message for a full execute.
39
39
"""
40
40
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
42
42
Statement stmt = self .cursor_impl._statement
43
43
BaseThinCursorImpl cursor_impl = self .cursor_impl
44
44
list params = stmt._bind_info_list
@@ -51,7 +51,7 @@ cdef class ExecuteMessage(MessageWithData):
51
51
if stmt._requires_define:
52
52
options |= TNS_EXEC_OPTION_DEFINE
53
53
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
55
55
options |= TNS_EXEC_OPTION_EXECUTE
56
56
if stmt._cursor_id == 0 or stmt._is_ddl:
57
57
options |= TNS_EXEC_OPTION_PARSE
@@ -75,7 +75,7 @@ cdef class ExecuteMessage(MessageWithData):
75
75
if self .batcherrors:
76
76
options |= TNS_EXEC_OPTION_BATCH_ERRORS
77
77
if self .arraydmlrowcounts:
78
- dml_options = TNS_EXEC_OPTION_DML_ROWCOUNTS
78
+ exec_flags = TNS_EXEC_FLAGS_DML_ROWCOUNTS
79
79
if self .conn_impl.autocommit and not self .parse_only:
80
80
options |= TNS_EXEC_OPTION_COMMIT
81
81
@@ -160,7 +160,7 @@ cdef class ExecuteMessage(MessageWithData):
160
160
buf.write_ub4(0 ) # al8i4[6] SCN (part 2)
161
161
buf.write_ub4(stmt._is_query) # al8i4[7] is query
162
162
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
164
164
buf.write_ub4(0 ) # al8i4[10]
165
165
buf.write_ub4(0 ) # al8i4[11]
166
166
buf.write_ub4(0 ) # al8i4[12]
@@ -174,7 +174,7 @@ cdef class ExecuteMessage(MessageWithData):
174
174
Write the message for a re-execute.
175
175
"""
176
176
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
178
178
Statement stmt = self .cursor_impl._statement
179
179
list params = stmt._bind_info_list
180
180
BindInfo info
@@ -188,19 +188,19 @@ cdef class ExecuteMessage(MessageWithData):
188
188
if info.bind_dir != TNS_BIND_DIR_OUTPUT \
189
189
and not info._is_return_bind]
190
190
if self .function_code == TNS_FUNC_REEXECUTE_AND_FETCH:
191
- exec_flags_1 |= TNS_EXEC_OPTION_EXECUTE
191
+ options_1 |= TNS_EXEC_OPTION_EXECUTE
192
192
num_iters = self .cursor_impl.prefetchrows
193
193
self .cursor_impl._set_fetch_array_size(num_iters)
194
194
else :
195
195
if self .conn_impl.autocommit:
196
- exec_flags_2 |= TNS_EXEC_OPTION_COMMIT_REEXECUTE
196
+ options_2 |= TNS_EXEC_OPTION_COMMIT_REEXECUTE
197
197
num_iters = self .num_execs
198
198
199
199
self ._write_function_code(buf)
200
200
buf.write_ub4(stmt._cursor_id)
201
201
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 )
204
204
if params:
205
205
for i in range (self .num_execs):
206
206
buf.write_uint8(TNS_MSG_TYPE_ROW_DATA)
0 commit comments